SPEECH (written by Rick Peterson) is a powerful speech synthesiser which requires no extra hardware whatsoever. It has an unlimited vocabulary, and is simplicity itself to use. For example, load in SPEECH by typing RUN "SPEECH" and then type in the following: a$ = "I am a talking computer, as easy to use as 1 2 3" and press RETURN. Then type |SAY,@a$ and the computer speaks. You can use the |SPEAK command to directly access the 49 individual phonemes. The |SAY Command This command enables your computer to say English sentences. Simply type a$= followed by the sentence to be spoken enclosed in quotation marks and then type SAY,@a$. SPEECH recognises both upper and lower case. Adding a question mark to the end of a word pushes the pitch up ("How are you?") whereas adding a full stop pushes it down ("I am so depressed."). Pauses can be included by using spaces, commas or hyphens. The computer can also say the figures 0 to 9. SPEECH can even handle the following: a$ = "Power mowers are thoroughly tough though." |SAY,@a$ SPEECH can be used indirectly. The following example illustrates how to do so: 10 a$="What is your name?" 20 |SAY,@a$ 30 INPUT NAMES 40 b$ = "Hello" + NAME$ 50 |SAY,@b$
Linguists say that the English language has approximately 200 rules for pronunciation and 2000 exceptions. Not surprisingly SPEECH cannot handle all these. To solve this, try altering the spelling of "difficult" words: e.g. chaos to cayos. The |SPEAK Command This command enables individual phonemes to be spoken. A list of the phonemes that may be used is included in these instructions. When a number is placed after a vowel sound (like "AE") the pitch of the phoneme will change. The number can be in the range 1 to 9, where 1 is the lowest pitch and 9 is the highest (try "WEH4LKAHM EH3VREEWON"). So stress and intonation can easily be added wherever desired. Again,pauses can be included by using spaces, commas or hyphens. Question marks and full stops can also be used. The |PITCH Command This command is used to change the overall pitch of the voice. The format ofthe command is IPITCH.number. The pitch is normally set to PITCH9. IPITCH,1 sets the lowest pitch, whereas |PITCH,20 sets the highest. The |CENTRE, |LEFT, |RIGHT Commands The sound channel through which SPEECH operates can be set by the commands: – |CENTRE – sound through both channels, |LEFT – sound through left channel only, |RIGHT – sound through right channel only. INTRODUCTIO TECHNICAL INFORMATION How to incorporate SPEECH into your own programs When you have written your BASIC program using the |SAY, |SPEAK, |PITCH commands as explained above, execute the following procedure: 1 Insert the SPEECH cassette into your Datacorder. 2. Type CHAIN "SPEECH"20000 and press ENTER. 3. After loading is complete, the computer will display the message:INSERT DESTINATION CASSETTE Press RECORD and PLAY then any key Remove the SPEECH cassette and insert a new cassette into the Datacorder to become the destination cassette. 4 After pressing a key the SPEECH loader program ("SPEECH") will be "SAVED" to the new cassette and then the following message will appear: "INSERT SPEECH CASSETTE Press PLAY then any key Remove the destination cassette and insert the SPEECH cassette into your Datacorder. 5. The above messages will-be displayed a further twice Follow all the instructions given by the computer until the message "SPEECH HAS BEEN SAVED" appears. 6. Next LOAD your own program ("OWNPROG") into your computer. 7. SAVE"OWNPROG" onto the destination cassette 8. Now turn your computer off and then on again. 9. To use your program, rewind the destination cassette to the beginning and type CHAIN "SPEECH". After this is complete then type CHAIN "OWNPROG" 10. Your program will now load and then run automatically and your computer will speak when the program reaches your ISAY and ISPEAK commands. Further technical information is available by loading the documentation file with CHAIN "NOTES".
★ AMSTRAD CPC ★ DOWNLOAD ★ |
CPCrulez[Content Management System] v8.7-desktop/c Page créée en 190 millisecondes et consultée 3045 foisL'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko. |
|
|
|