Last spring, you might recall that Harvey Taylor demonstrated a Text-to-Speech chip, the CTS256-AL2 working in conjunction with the good old SP0256 Speech Synthesizer chip and his QL. The ease with which he could punch-in English spellings and have them spoken by the voice box amazed everyone, including yours truly. Up to the time of Harvey’s demonstration, I was relatively satisfied that my students could, in a reasonable amount of time, synthesize acceptable speech by using the simplified allophone chart they were given. Harvey’s Text-to-Speech demo made the old allophone chart look archaic!!
This is what the situation boiled down to: do I abandon the unwritten ZX81 User Code of Ethics which implicitly prohibits users from spending large sums of money (over ten bucks), in order to purchase a chip that costs more than a ZX81? Sadly, I put my wallet back into my pocket, and resigned myself to the fate of all loyal ZX81 users: “If I wait a couple of years, I’ll get it for $5 or else somthing better will come along.”
This rationalization stuck in my craw for most of the summer, until a sudden flash of inspiration arced across my depressed synapses! Why not try text-to-speech in software? My pulse quickened as one trembling hand reached for the old allophone chart and the other hand plugged in the ZX81 power pack. Somehow I would translate the essential allophone values into phonetic letter equivalents.
To my utter amazement, the implementation of a workable phonetic spelling system was actually very trivial! All one had to do was to define 52 simple variables that were spelled like phonetic sounds, using the numeric value for that particular allophone sound. For example, the sound for long “E” could be spelled as “EE”, “IE”, or “EA” in the most common English spellings. The allophone value for the long “E” sound is 19. Why not define three variables and set them equal to 19 (LET EE=19, LET IE=19, and LET EA=19)? When this is done, it does not matter whether you enter 19 when you are synthesizing speech, or whether you enter EE, or IE, or EA. All of these symbols now look like 19 to the computer and are processed as long “E” by the speech processor.
If you have written your own ZSPEAK [pr]ograms, or if you are playing with Karl [Br]own’s original programs, or the 2K [ve]rsion shown in the July/August’86 [ne]wsletter, you can easily modify your program to accept phonetic spelling input just by defining these 52 variables near the beginning of your program. Of course, the phonetic symbols are up to you, but the closer you keep them to English spellings, the closer you will simulate text-to-speech. I say “simulate” because true text-to-speech involves the use of about 500 spelling and pronunciation rules and these don’t cover all of the exceptions or irregularities of the tortuous English language.
Here is a simple list of phonetic variables with their defined allophone values. Just add these to your favorite ZSPEAK program and from now on you can enter either phonetic spellings or allophone numbers — whichever method you prefer to use at the moment.
PHONETIC VARIABLES
1 LET A=26
2 LET AY=20
3 LET AI=20
4 LET AIR=47
5 LET AR=59
6 LET AW=23
7 LET AU=24
8 LET E=7
9 LET EA=19
10 LET EE=19
11 LET EAR=60
12 LET EI=20
13 LET ER=52
14 LET I=6
15 LET II=12
16 LET IE=19
17 LET O=53
18 LET OO=30
19 LET OOO=31
20 LET OR=56
21 LET OU=32
22 LET OW=32
23 LET OY=5
24 LET OI=5
25 LET OA=53
26 LET U=15
27 LET Y=25
28 LET B=28
29 LET C=41
30 LET CH=50
31 LET D=33
32 LET F=40
33 LET G=34
34 LET H=27
35 LET J=10
36 LET K=41
37 LET L=45
38 LET M=16
39 LET N=11
40 LET NG=44
41 LET P=9
42 LET R=51
43 LET S=55
44 LET SH=37
45 LET T=13
46 LET TH=18
47 LET TTH=29
48 LET V=35
49 LET W=46
50 LET WH=48
51 LET Z=43
52 LET ZSH=38
You will, no doubt, notice that there are three phonetic symbols in the variables list that do not appear in English spelling. These were invented to circumvent the difficulty of two identical visual symbols having completely different sounds when they are used in different words. For example, the “OO” sound in “LOOK” and in “LOOSE”, or the “TH” sound in “THOSE” and in “THICK”. The “TH” in “THOSE” or in “THE” has been assigned the “TH” spelling, and the hard, less common “TH” as in “THICK” was assigned the “TTH” phonetic symbol. Similarly, the longer “OO” sound in “LOOSE” has been assigned the strange looking “OOO” spelling. Also, “I” is long “I”, and “II” is the short “I” sound as in “HIT”. If you don’t like these symbols, feel free to invent your own.
There you have it. No look-up tables, no hardware modifications, just five minutes worth of programming! To coin another ZX81 expression: “SIMPLICITY IS BEAUTIFUL…but it took all summer.”
An erratum in ZX-Appeal November 1986 corrects line 20.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.