Speak Out and Be Counted: dKTronics Speech Synthesizer

Author(s): Michael Carver
Pub Details: Time Designs Magazine v2 n1 (Volume 2, Issue 1)
Date: November/December 1985
Pages: 22-24

You have your computer hooked up to your CRT, your line printer plugged in, and the computer is emitting beeps or, perhaps, even music, but…if only it could speak. Oh, the stories it would tell. Thanks to Dk’tronics, your computer can keep you up all night with amazing tales.

Dk’tronics Speech Synthesizer for the Sinclair Spectrum is available in the U.S. from DAMCO. If you have a T/S 2068 and a “twister” allowing Spectrum hardware to be plugged onto your edge connector, Dk’tronics synthesizer can make your computer speak up. The voice produced is mechanical, more like a Buck Rogers robot or a Dalek (for you Dr. Who fans), and not lyrical or as human as HAL’s in 2001: A Space Odyssey.

This package consists of hardware and software. Included is an interface containing the synthesizer and an amplifier, plus an external 4-inch speaker. The interface is 4″ x 2 1/4″ x 3/4″ and is enclosed in a black plastic case with full through-buss connector out the rear. The interface case also has a volume control knob and a standard earphone jack for hooking the interface to the speaker, or an audio system/tape recorder.

The brain (or voice) of this interface is General Instrument’s SP-256 synthesizer, which contains an allophone library in ROM. There are 59 different speech patterns (or allophones) and 5 set pauses stored in this library. Words are created by combining these allophones into specified patterns (see table 1).

The synthesizer can be operated in four different modes. The first requires no special software. The interface is accessed through BASIC, using the OUT command to send an allophone code to port 127 (see listing 1).

To use the remaining modes, the accompanying software must be loaded. This software is approximately 4.7k of machine code and can be located anywhere in RAM. The positioning of this software is done by the loading routine, after specifying the desired location. The second mode is similar to the first in that you must look up each allophone, but is sent to the synthesizer in an LPRINT statement (see listing 2).

Modes three and four are the easiest to use as they are text-to-speech modes. About 3.5k of the program contains a table of English rules along with some of the many exceptions (see listing 3 & 4). Modes 3 and 4 are “interrupt driven”, returning control back to the computer while the synthesizer continues to speak. Mode three’s text buffer will only hold 100 characters. Any LPRINT statement with more than 100 characters will be truncated, loosing extra text. I was unable to cause any lost text in mode four.

Since there are more exceptions than rules in the English language, at times it will be necessary to mispell a word to achieve a recognizable pronunciation, (i.e. silicon = silickon). It is not possible to produce inflection patterns with this synthesizer, but there are sixteen speeds for speech output. There are a few “bugs” in this part of the software which cause some awkward pronunciations. The text-to-speech software changes the “ahh” sound to “or”, giving the computer a strange Bostonian accent. Also, the “a” in such words as “cat” is pronounced like “caught”. It is sometimes neccesary to combine the “feed” feature with either modes three or four to produce acceptable speech. (NOTE: Modes 1-3 will work with your computer in Timex ROM select)

The manual, accompanying the unit, is very helpful in getting one started. There is a section on accessing the software via calls to its various routines, to help those who enjoy writing machine code. Anyone should be able to teach their computer to speak with this unit, by simply following the easy steps laid out in the manual.

If you are interested in speech synthesis and will settle for a “mechanical voice”, I feel that Dk’tronics unit is a good buy for the price. It was very easy for me to add speech to a BASIC Star Trek game, with only minor changes to PRINT commands. With a little effort, a talking machine could be constructed for those with physical disabilities.

You can order your unit from DAMCO ENTERPRISES, 67 Bradley Ct., Fall River, MA 02720, phone (617) 678-2110, for $34.95 + $2.50 S & H. (For you Dr. Who fans, your computer can now faithfully reproduce that spine-chilling word “EXTERMINATE”!)

  10 REM Listing 1 - Will output "Time Designs"
20 FOR x=1 TO 13
30 IF IN 127<>127 THEN GO TO 30: REM wait for chip ready signal
40 READ a: OUT 127,a: NEXT x: STOP
50 DATA 13,24,6,16,2,33,19,2,43,6,44,55,0
  10 REM Listing 2 - Will output "computer"
20 LPRINT "!feed,42,15,16,9,49,22,13,51"
  10 REM Listing 3
20 LPRINT "!spon": REM turns on speech to text
30 LPRINT "\Welcome to the machine"
  10 REM Listing 4: REM will speak any LPRINT statement or even LLIST - does not require "\" (backslash) to signal speech to text software
20 LPRINT "!outm,2": REM turns on mode four
30 LPRINT "Timex Sinclair"
40 INPUT a$: LPRINT a$: REM Will output user's INPUT to synthesizer
50 LLIST : REM Will "speak" listing

ALLOPHONE TABLE

Pauses

0   PA1  (10 mS)  use before voiced
                  stops & afficates
1   PA2  (30 mS)  use before voiced
                  stops & afficates
2   PA3  (50 mS)  before voiceless
                  stops & voiced
                  fricatives
3   PA4  (100mS)  between clauses &
                  sentences
4   PA5  (200mS)  between clauses &
                  sentences

Short vowels - can be repeated

7   EH   E    bend
12  IH   I    fitting
15  AX   U    succeed
23  AO   AU   aught
24  AA   O    cot
26  AE   A    fat
30  UH   OO   cook

Long vowels

5   OY   OY   toy
6   AY   Y    sky
19  IY   E    see
20  EY   EA   great
22  UW1  O    to
31  UW2  OO   food
32  AW   OU   out
53  OW   OW   snow
62  EL   L    angle

R-Colored vowels

47  XR   AI   hair
51  ER   ER   computer
52  ER2  IR   bird
58  OR   OR   store
59  AR   AR   farm
60  YR   R    clear

Affricates

10  JH   J    jury
50  CH   CH   church

Resonants

14  RR1  R    read
39  RR2  R    brain
49  YY1  U    computer
25  YY2  Y    yes
45  LL   L    luck
46  WW   W    wool

Vocied Fricatives

18  DH1  TH   they
54  DH2  TH   bathe
35  VV   V    even
42  ZZ   Z    zoo
38  ZH   GE   beige

Voiceless Fricatives

29  TH   TH   thin
40  FF   F    fire
55  SS   S    sat
(29, 40, 55, double for
initial position)
27  HH1  H    he
57  HH2  H    hoe
37  SH   SH   shirt
48  WH   WH   whig

Voiced Stops

28  BB1  B    rib
63  BB2  B    big
21  DD1  D    could
33  DD2  D    do
36  GG1  GU   guest
61  GG2  G    go
34  GG3  IG   wig

Voiceless Stops

17  TT1  T    its
13  TT2  T    to
42  KK1  C    computer
41  KK2  K    sky
9   PP   P    pub

Nasal

16  MM   M    milk
11  NN1  N    earn
56  NN2  N    no
44  NG   NG   bans