Copyright ©2001-2003 SmallBASIC Project
This paper are a purpose for integrate a speach synthesizer to SB
There are several GPL / PD speech synthesizer engines. SB can include one of those engines to produce speech.
OPTION PREDEF SPDICT language-dictionary
This declaration, it must be used to redefine the default phonetic-dictionary. The default, if we can't determinate it from locale, it is the English one.
retstr = SPGET(lingtext [, dict])
The SPGET function returns the speach pattern that corresponds to lingtext.
SPOUT text [{;|,} text [...]]
The SPOUT command causes the computer to speak the parameters. The parameters are results of SPGET() function (that means the parameters are phonetic strings).
Its syntax is similar to PRINT command. The ';' separator meaning a comma pause. The ',' separator meaning a period pause.
SPEAK text [{;|,} text [...]]
The SPEAK command causes the computer to speak the parameters. The parameters will replaced by SPGET() to phonetic-equals strings and then a call to SPOUT will produce the sounds.
Its syntax is similar to PRINT command. The ';' separator meaning a comma pause. The ',' separator meaning a period pause.