Page 1 of 1

Speak error 6005

Posted: Sun Aug 18, 2013 9:28 am
by ellano
When using the Speak program the following error occurs:

Application Internal Error - d:\fwh\samples\speak.exe
Terminated at: 2013.08.18 11:19:49
Unrecoverable error 6005: Exception error:

Windows 7 64 bits, FWH 13.07, Borland C 582, Harbour_bcc582_20130617

Code: Select all

#include "FiveWin.ch"
function Main()

   local oVoice := TOleAuto():New( "Sapi.SPVoice" )

   oVoice:Speak( "Hi there!" ) 
*   oVoice:Speak( "texto.txt", 4 ) // 4 significa que es un fichero externo
   oVoice= nil

return nil

Re: Speak error 6005

Posted: Sun Aug 18, 2013 9:59 am
by Antonio Linares
Here it errors:

Error description: (DOS Error -2147352567) WINOLE/1007 (0x800C000D): SPEAK
Args:
[ 1] = C test.txt
[ 2] = N 4

I am going to review the Speak() method

Re: Speak error 6005

Posted: Sun Aug 18, 2013 10:01 am
by Antonio Linares

Re: Speak error 6005

Posted: Sun Aug 18, 2013 10:06 am
by Antonio Linares
If you specify the path name of the file then it works fine :-)

Code: Select all

#include "FiveWin.ch"

function Main()

   local oVoice := TOleAuto():New( "Sapi.SPVoice" )

   oVoice:Speak( "Hi there!" ) 
   oVoice:Speak( "c:\fwh\samples\test.txt", 4 ) // 4 significa que es un fichero externo

return nil
 

Re: Speak error 6005

Posted: Thu Aug 22, 2013 6:08 pm
by ellano
Thanks for your kind help , but I'm not even using a file for the time being (as you can see in my code the line has been commented out with an asterisk)