home *** CD-ROM | disk | FTP | other *** search
- STOS SYNTHESISED SPEECH ROUTINE
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- There is a routine available to STOS which can speak text back to you
- at a set tempo and pitch. The program comes from Issue 1 of ST
- Programmer (Riverdene PDL).
-
- First, BLOAD "SPEAK.BIN" into a memory bank. Then you need to set the
- tempo and pitch:
-
- loke start(bnk)+$752A,pitch ($10=high - $40=low)
- poke start(bnk)+$6D02,tempo ($10=fast - $80=slow)
-
- Then, you write out what you want spoken:
-
- SP$="I wish you would just shut up!"+chr$(0)
- areg(1)=varptr(SP$)
- dreg(0)=0
-
- And call the routine:
-
- call start(bnk)+$752E
-
- Unfortunately, the speech routine does not play on interrupt, and so
- the system freezes while the speech is working. Also, moving the mouse
- around causes the voice to slow and become distorted, so be sure to
- switch it off first (either by using MOUSE OFF from the MISTY EXTENSION
- or by typing this in:)
-
- trap 14,25,0,chr$($12) : switches mouse off
- trap 14,25,0,chr$(8) : switches mouse back on
-
- Article: BLACK EAGLE 2/7/93
-