To get text to speech in your game without stopping the actual game:
Put the attached speech.dll in your compiler\plugins-user directory,
i dont remember where i found this dll, but it is written in the dll list above.
set these constants before your loop
REM These are for finding out the progress of speech
#CONSTANT SPEECH_ERROR 256
#CONSTANT SPEECH_ABOUTTOSTART 0
#CONSTANT SPEECH_CONTINUING 1
#CONSTANT SPEECH_FINISHED 2
then put the following code in your loop, to hear a speech
`------------------
REM IF F11 IS PRESSED
x = IsSpeaking()
if x = SPEECH_FINISHED
READ_INFO = OFF
`------------------
if scancode() = 87 and READ_INFO = 0 then READ_INFO = 1 : `(0)
if READ_INFO = 1
READ_INFO = 2
inc SPEAK, 1
if SPEAK > 1 then SPEAK = 0
endif
if keystate(87) = 0 then READ_INFO = 0
endif
`------------------
REM READ THE INFO ON SCREEN
if SPEAK = 1
SPEAK = 0
`------------------
print setVoice(1), setRate(2)
Print say("i can speak.",1)
endif
`------------------