<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Speech Words in TurboForth Kernal
Says count words from the speech synthesizer's resident vocabulary, from the list at address address.
: ILF-DATA ( -- addr count )
DATA 3 $3793 $3F2F $2D19 ;
: SPEAK ( -- ) ILF-DATA SAY ;
(says "I like Forth")
The address list consists of addresses from the speech synthesizer's resident speech ROM.
Note: The speech synthesizer FIFO queue is serviced when VDP accessed. Therefore, to ensure smooth access, it is advisable to perform some VDP access periodically. The example given here works okay because the code immediately returns to the command line, where the cursor is flashing on/off, meaning VDP is being written to regularly.
Note: It is not neccessary to determine if a user's machine has a speech synthesizer fitted or not; if the speech synthesizer is not fitted then all speech related words silently exit with no error.