<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


SAY Search:

In Speech Words in TurboForth Kernal

Word Name: SAY
Type: Standard word
Data Stack Signature: address count --
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Says count words from the speech synthesizer's resident vocabulary, from the list at address address.

Example:

: ILF-DATA ( -- addr count )
  DATA 3 $3793 $3F2F $2D19 ;

: SPEAK ( -- ) ILF-DATA SAY ;

SPEAK

(says "I like Forth")

Comment:

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.

See Also: STREAM  TALKING? 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>