S.A.M. – The Software Automatic Mouth
- Medium
- Disk
- Year
- 1982
- Publisher
- Don't Ask Computer Software (later Tronix Software)
- Type
- Application
- Category
- Software speech synthesizer
- Developer
- Mark Barton
- Language
- 6502 machine language (BASIC demo and support programs)
- Requirements
- Atari 400/800/XL/XE with 32K RAM and disk drive; Atari BASIC for the support programs
Overview
S.A.M., the Software Automatic Mouth, made an unmodified Atari talk. Other speech add-ons of the early 1980s were hardware boxes costing $170 to $300. S.A.M. was a disk at about $60, and it used nothing but the computer's own POKEY sound chip. Mark Barton wrote it for Don't Ask Computer Software of Los Angeles, which released it in 1982. Tronix later took over distribution, still at $59.95.
The speech is odd but surprisingly clear. John Anderson compared it with the Echo and Votrax-based Voice Box hardware synthesizers in Creative Computing and found POKEY "at least as intelligible" as either chip. His colleagues needed no practice to understand the demo programs. A reviewer in Antic was less charmed by the voice in Tronix's talking spelling game Chatterbee: he compared it to "a robot trying to imitate Bela Lugosi with a bad cold". Even so, he called intelligible software-only speech "one of the great programming feats of the decade".
What's on the disk
- S.A.M. itself, a machine-language program that boots from the master disk and stays resident at
$2000. - RECITER, a translator that turns ordinary English text into S.A.M.'s phonetic code.
- SAYIT, a short BASIC program for typing phrases and hearing them.
- DEMO and SPEECHES, long demonstration programs.
- GUESSNUM, a talking number-guessing game. Its listing is printed in the manual as a worked example.
- An RS-232 handler so that S.A.M. can read incoming text from a modem aloud.
Copy the BASIC programs to a separate, unprotected disk. They rely on a MEM.SAV file, so running them from the write-protected master produces errors. The manual covers the phonetic alphabet, stress, punctuation and pitch/speed control. It also includes an 18-page English-to-phonetic dictionary.
Making it talk
S.A.M. links into Atari BASIC through a reserved string variable, SAM$. You put phonemes in the string and call the routine:
10 DIM SAM$(255)
100 SAM$="AY4 AEM AH KUMPYUW3TER."
110 A=USR(8192)
The digits are stress marks. Punctuation shapes the delivery: a hyphen is a short pause, a comma a longer one, a question mark raises the pitch and a full stop lowers it. One utterance lasts about 2.5 seconds at most, and longer strings get short automatic breaks. To speak plain English instead, load RECITER and call USR(8199). Machine-language programs use entry points at 8196 and 8203.
Speed is at 8208 and pitch at 8209. Jerry White suggested POKEing values of roughly 40–100 for speed and 30–90 for pitch. Phoneme spelling errors are reported like BASIC syntax errors, and location 8211 holds the error position when a program is running. The manual asks you to leave LOMEM alone. S.A.M. uses only POKEY's first sound channel ($D201), so the other three are free for music or effects.
The blank screen
S.A.M. needs every CPU cycle it can get. While it speaks it switches off interrupts and ANTIC's screen DMA, so the display goes black and the BREAK key stops working. Jerry White, who used S.A.M. in his game PokerSAM and in Chatterbee, explained the trick for keeping the picture on in Antic (November 1983). It needs three POKEs (POKE 8550,234:POKE 8551,234:POKE 8552,234), a short display list without text-mode lines, and Player/Missile graphics for anything that moves. Text has to be drawn as graphics. The later manual makes this official, with a DMA-enable flag at 8210 and separate "lights on" speed and pitch locations at 8206 and 8207. Leaving the screen on slows the speech down, and S.A.M. starts to "growl".
Behind the scenes
Don't Ask offered a run-time licence, so commercial programs could include the speech engine. Talking products followed, including PokerSAM, Chatterbee (a 25-level spelling game) and Playground Software's light-pen storybook Little Red Riding Hood. Later boxes advertised KNOBS, a routine for adjusting the character of the voice. The Tronix release of the disk also added a splash screen and rearranged the files. Readers wrote add-ons as well. In February 1985 Antic published Chris Bone's S.A.M. Handler, which added a V: device. After loading it you could OPEN #1,8,0,"V:" and PRINT to the voice, or LIST "V:" to have a program read aloud while you checked a typed-in listing against the magazine.
Using it today
S.A.M. runs well in Altirra or atari800 with a 48K or larger machine, Atari BASIC and DOS 2.0S. Boot the S.A.M. disk with BASIC enabled, then run SAYIT, DEMO or GUESSNUM. For SAYIT, first go to DOS, binary-load (L) RECITER, return to BASIC and RUN "D:SAYIT". A blank screen during speech is normal. If the voice sounds harsh or slow, check that the emulator is running at normal speed (turbo/warp off) and that sound is enabled.
Credits
- Picture: The Don't Ask Computer Software box, which advertises the RECITER text-to-speech program and the KNOBS voice controls. — Don't Ask Computer Software box scan from AtariMania (Box art © Don't Ask Computer Software 1982 — used for identification/commentary)
- AtariMania — SAM - The Software Automatic Mouth (Don't Ask Computer Software) — Don't Ask Computer Software box scan from AtariMania (Box art © Don't Ask Computer Software 1982 — used for identification/commentary)
- AtariMania — SAM - The Software Automatic Mouth (Tronix release) — AtariMania
- S.A.M. Owner's Manual (Don't Ask Computer Software) — page scans on AtariMania (pp. 2-4, 7, 35) — Don't Ask Computer Software box scan from AtariMania (Box art © Don't Ask Computer Software 1982 — used for identification/commentary)
- The Creative Atari — Talk is Getting Cheaper (John Anderson) — AtariArchives.org
- Antic Vol. 2 No. 8 (Nov 1983) — Here's Looking at You, S.A.M.! (Jerry White) — Jerry White; AtariMagazines.com (Kevin Savetz), 1983
- Antic Vol. 3 No. 10 (Feb 1985) — S.A.M. Handler (Chris Bone) — AtariMagazines.com (Kevin Savetz), 1985
- Antic Vol. 3 No. 6 — Product reviews (Chatterbee, Little Red Riding Hood) — AtariMagazines.com (Kevin Savetz)
