Speak error 6005

Post Reply
ellano
Posts: 107
Joined: Tue Sep 15, 2009 7:52 am

Speak error 6005

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Speak error 6005

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Speak error 6005

Post 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
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
ellano
Posts: 107
Joined: Tue Sep 15, 2009 7:52 am

Re: Speak error 6005

Post 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)
Post Reply