How a Computer Learns to Talk
"Turn left in two hundred metres." Anyone who rode with an old car navigator knows that voice. Every word is clear, every word is equally flat, and the numbers sound as if they came from a slightly different mood than the rest of the sentence. This note is about how machines talked before AI got involved.
Gluing recordings together
For a long time the most common method was cut and paste. A company hired a voice actor to read for many hours, then chopped the recordings into tiny pieces, single sounds or pairs of sounds. To say a new sentence, the program looked up the pieces it needed and glued them in a row. That is why those voices were clear but slightly stitched, and why a phone line could say "your balance is" in one tone and then read out your number in another.
Later versions stopped storing the recordings and kept only the average of how each sound is usually spoken, then rebuilt speech from the averages. The result was smoother and cheaper to change, but a bit buzzy, like talking through a thin blanket.
Three jobs, all with hand-written rules
Any voice machine has three jobs. First, work out what the text says out loud: is "2/3" two thirds or the second of March? Second, decide the tune: which words get stress, where a pause goes, how a question rises at the end. Third, make the actual sound.
Before AI, people wrote rules for the first two jobs. Linguists kept long lists on how to read abbreviations, where a comma means a pause, and how a question should sound. For the third job there were two options. One was the cut and paste above. The other was electronic circuits that imitate the throat and mouth, which gave the classic robot voice. The idea is old: in the late 1700s someone built a machine with bellows and a reed that could imitate speech, and at a world's fair in 1939 a trained operator played a keyboard to make a machine say words.
Why it never had feelings
A rule can say "raise your voice at a question mark". Nobody can write the rule for a voice that is disappointed but trying to be polite. The old machines had a few knobs, speed, pitch and volume, and that was their whole emotional range. If a company wanted another style, it hired the actor back and recorded again.
My reading is that the flat tune bothered listeners more than the sound quality did. A crisp voice reading with the wrong tune still sounds like a machine, because people hear the tune first and the voice second. I haven't checked that against any study.
Author: Ope Tags: #speech Links: [[Giving a Voice Feelings]], [[Becoming Interactive]]