ok a few things to ask
ive limited the code down to this:
ptr=make memory(1024)
print "INIT:";SpeechInit()
x=getVoices(ptr,0)
print "Number of Voices:";peekL(ptr,0)
x=getVoices(ptr,1)
print "Total size:";peekL(ptr,0)
x=getVoices(ptr,2)
print "Voices:";peekString$(ptr,0,63,0)
sync
print SetVoice(1)
print say("hello",0)
rem Wait while speech gets ready
x=IsSpeaking(ptr)
while peekB(ptr,0)=SPEECH_ABOUTTOSTART
sync
x=IsSpeaking(ptr)
endwhile
x=IsSpeaking(ptr)
while peekB(ptr,0)=SPEECH_CONTINUING
print "Its talking!"
x=IsSpeaking(ptr)
sync
endwhile
sync
print WaitUntilDone(2000)
print "DeInit:";SpeechDeInit()
delete memory (ptr)
end
there are no help files with this (cus its a beta
)
so...
i have 3 voices..
how would i go about finding which is which...
for t=1 to max voicesfound
if t= "Microsoft Sam" then voice = t
next t
set voice t
how would that be written
soz i just ... have a rough idea... ut every time i take the word print out it says could not unerstand command so i dont want to fiddle and mess it all up.
Also is it possible to have it chatting away while other things are being done. i.e. in a 3d scene could you still move around whilst its chatting. or does everything have to stop.
Lets say i want to sort everything out at the start sort the mem out.. establish which voices are which....
then half way through the code i put SAY "hello world"
is there anything else i need after that r each time i say somthing...e.g do i need to clear memory afterwards?
then lets say i make a tidy job of closing the application:
if escapekey()=1 then end
is there anything that has to go before end to make it all nice and tidy e.g. delete memory (ptr) and SpeechDeInit().
It works ... i just want to know what does what thats all.... thanks alot
:
(hope that made some sense)
>>TerraByte. Putting the Byte back into Terragramming<< If my post has less than 20 typos then it wasnt me who wrote it!