Le dimanche 26 mai 2002, à 09:57 PM, Alain Pastor a écrit : > <snip> > > 2 - How do you set properly a SpeechDone callback Proc with the Speech > Manager? > Caution: the prog below crashes with a hard reboot required. > <snip> I have discovered that the piece of code I have posted crashed in Carbon OS X event without installing the callback procedure. I managed to fix this new problem changing the Tlbx SpeechSynthesis.Incl header file, replacing the current SpeakText toolbox declaration with the one below extracted from my personal header: Toolbox Fn SpeakText( SpeechChannel chan, Ptr * textBuf, unsigned long textBytes ) = OSErr `0x203C, 0x0624, 0x000C, 0xA800 Not only that, to run the piece of code I sent, you need to declare a new RAM variable in Fn IntroduceCharacter, let's say something like: Dim @ textBuffer As Ptr Change the call to SpeakText with the following: textBuffer = [spokenTextH] err = Fn SpeakText( gSpeechChannel, ¬ textBuffer, ¬ Fn GetHandleSize( spokenTextH ) ) You should start to hear something in OS X. Cheers Alain