SOFTALK II - SPACEGAMES ----------------------- 'SOFTALK' provides a very simple method of getting your Spectrum to speak. Single words, phrases and even simple sentences can be called up in your own program from the sixty or so words in each Softalk program. There is a demonstration program on each cassette which produces the Softalk vocabulary and a phrase through the Spectrum's speaker. To use the demonstration program put the cassette in the tape recorder/player, type. LOAD"", start tape and press ENTER. The demonstration program loads first followed by the machine code speech program. Once correctly loaded press ENTER, as instructed on the screen, to get the speech. At this point it should be noted that the sound quality from the Spectrum's speaker leaves much to be desired and that the sound quality can be significantly improved by using an external amplifier and loudspeaker. This amplifier can be connected via the Spectrum's cassette port EAR socket using a lead with a 3.5mm jack plug, just like those on your cassette leads. See also chapter 19, page 138 of the Spectrum manual. Some cassette players can be used to amplify the sound, in doing so it may be necessary to press the play button, after removing the tape. Some portable radios that allow external inputs, often labelled auxiliary, can be used and most hi-fi amplifiers with an auxiliary input will give excellent results. If the recorder, radio or amplifier has tone controls the best results will be achieved with the treble set at minimum and the bass at maximum. To include speech from 'SOFTALK' in your own programs is very simple. First either load both the demonstration and speech programs and then break out of the demonstration program and type NEW to clear it. To break out start the program by pressing ENTER and then press the Break (shifted space) key. At this point It is possible to list the demonstration program. Or load only the machine code 'SOFTALK'. as follows:- CLEAR 32767 (to reset ramtop) LOAD"data" CODE 32768,32512 Once in the machine any of the listed words can be produced from the Spectrum's speaker, or external amplifier if connected, using only two command (either direct or with line numbers):- POKE 64525, n where n is the word numter of the LET a=USR 64526 required word - see the WORD LIST The word will be spoken immediately the ENTER key is pressed after the LET instruction. Phrases and simple sentences can be contracted using READ and DATA in a FOR - NEXT loop. Experiment with using a PAUSE to give expression to the phrase. The word numbers in the DATA statement must be ordered the same way as the phrase is required to be spoken. The following examples will make this point clear. 1. From SOFTALK I 'Multiwords' for the phrase 'plus twelve is greater that minus two thousand' The data statement should read:- DATA 62,12,45,43,70,57,2,29 2. From SOFTALK II 'Spacegames' for the phrase 'red alert, enemies bearing zero point three one' The data statement should read:- DATA 67,31,47,38,0,63,21,1 and the rountine to produce these phrases:- 10 For n=1 to 8 20 Read D 30 Poke 64525, D 40 Data (see 1. and 2. above) 50 Let a=USR 64526 60 Pause 10 70 Next n The above and similar routines can be used in your own programs to produce speech at any required point. More space for programming can be made available by cutting the top of the word list and resetting Ramtop at some other address. See the address/part list for the start and end address for each word/part. When you want to Save a program containing specch it is better to save both it and the Softalk program as follows:- SAVE "program name" SAVE "data" CODE 32768,32512 Loading will be simplified if your program contains instructions to set ramtop i.e. clear 32767, and Load "data" Code 32768,32512. If yOu list the demonstration program this gives an example. See also the Spectrum Manual Chapter 20. ---o0o--- The material on this tape and documentation, or any Part thereof, shall not be copied for use by any other person or organization, neither shall it be loaned nor hired. CP SOFTWARE (C) Copyright 1982. NO part of this program shall be reproduced without prior permission in writing. While every effort has been made in the production of this program the publisher undertakes no responsibility for errors or liability for damage arising from its use. CP SOFTWARE, 17 Orchard Lane, Prestwood, Great Missenden, BUCKS, HP16 0NN SOFTALK II 'SPACEGAMES' - WORD LIST Some of the words are composed of two parts, ie Eighteen is made up from EIGHT and TEEN, as will be seen by comparing the Word and Address/Parts lists. WORD WORD NO. PART NOS. WORD WORD NO. PART NOS. ------------------------------------------------------------ ZERO 0 0 DAMAGE 42 29 ONE 1 1 DANGER 43 31 TWO 2 2 DOWN 44 50 THREE 3 3 EAST 45 47 FOUR 4 4 ENEMY 46 33 FIVE 5 5 ENEMIES 47 33,44 SIX 6 6 ENGINE 48 37 SEVEN 7 7 ENGINES 49 37,44 EIGHT 8 8 FIRE 50 25 NINE 9 9 FIRES 51 25,44 TEN 10 10 GREEN 52 34 ELEVEN 11 11 GO 53 54 TWELVE 12 12 GOES 54 54,44 THIRTEEN 13 13,15 LEFT 55 51 FOURTEEN 14 4,15 METEOR 56 36 FIFTEEN 15 14,15 METEORS 57 36,44 SIXTEEN 16 6,15 NORTH 58 45 SEVENTEEN 17 7,15 PHASOR 59 27 EIGHTEEN 18 8,15 PHASORS 60 27,44 NINETEEN 19 9,15 PHOTON 61 28 TWENTY 20 16,17 PHOTONS 62 28,44 THIRTY 21 13,17 POINT 63 21 FORTY 22 4,17 POINTS 64 21,44 FIFTY 23 14,17 RANGE 65 23 SIXTY 24 6,17 RANGES 66 23,44 SEVENTY 25 7,17 RED 67 53 EIGHTY 26 8,17 RIGHT 68 52 NINETY 27 9,17 SHIELD 69 38 HUNDRED 28 18 SHIELDS 70 38,44 THOUSAND 29 19 SOUTH 71 46 MILLION 30 20 STAR 72 39 ALERT 31 35 STARS 73 39,44 ALERTS 32 35,44 STARBASE 74 41 AND 33 56 STARBASES 75 42 ATTACK 34 24 STOP 76 55 ATTACKS 35 24,44 STOPS 77 55,44 BASE 36 40 TORPEDO 78 26 BASES 37 40,44 TORPEDOES 79 25,44 BEARING 38 22 UP 80 49 BEARINGS 39 22,44 WEST 81 48 CONTROL 40 30 YELLOW 82 32 CONTROLS 41 30,44 SOFTALK II 'SPACEGAMES' - ADDRESS/PART LIST WORD PART PART NUMBER LOCATION ADDRESS IN MEMORY START END ----------------------------------------------------- ZERO 0 32768 33250 ONE 1 33250 33900 TWO 2 33900 34450 THREE 3 34450 35000 FOUR 4 35050 35600 FIVE 5 35600 36400 SIX 6 36500 37000 SEVEN 7 37000 37700 EIGHT 8 37700 38100 NINE 9 38200 38800 TEN 10 38800 39300 ELEVEN 11 39300 39900 TWELVE 12 39900 40700 THIR 13 40700 41200 FIF 14 41300 41950 TEEN 15 42000 42576 TWEN 16 42800 43300 TY 17 43400 43950 HUNDRED 18 44000 44700 THOUSAND 19 44800 45500 MILLION 20 45500 46016 POINT 21 46017 46500 BEARING 22 46550 47200 RANGE 23 47250 47700 ATTACK 24 47750 48200 FIRE 25 48250 48800 TORPEDO 26 48850 49700 PHASOR 27 49750 50400 PHOTON 28 50450 51000 DAMAGE 29 51100 51650 CONTROL 30 51600 52300 DANGER 31 52350 52900 YELLOW 32 52900 53400 ENEMY 33 53400 53949 GREEN 34 53950 54550 ALERT 35 54550 55100 METEOR 36 55150 55850 ENGINE 37 55900 56500 SHIELD 38 56550 57100 STAR 39 57150 57500 BASE 40 57575 57900 STARBASE 41 57150 57900 STARBASES 42 57150 58100 BASES 43 57575 58100 SS 44 57950 58100 NORTH 45 58200 58300 SOUTH 46 58850 59500 EAST 47 59500 60000 WEST 48 60050 60550 UP 49 60600 61100 DOWN 50 61100 61700 LEFT 51 61750 62241 RIGHT 52 62243 62690 RED 53 63525 63877 GO 54 62691 63075 STOP 55 63076 63524 AND 56 63878 64478