mirror of
https://github.com/D-Modem/speaking-clock.git
synced 2026-11-28 12:38:05 -08:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6 Signed-off-by: Claude <noreply@anthropic.com>
178 lines
8.9 KiB
Markdown
178 lines
8.9 KiB
Markdown
# MacInTalk 3 voice files
|
||
|
||
This page gives the data about the MacInTalk 3 voices of Apple that
|
||
`synth/macintalk` uses. We found this data by comparison. We compared
|
||
the data of the 19 voices that come with Mac OS 8.1 (MacInTalk 3
|
||
version 1.4, 1992-1995) with each other. We also compared the data with
|
||
the known sound of the voices. We did not run, emulate, disassemble or
|
||
read Apple code to find it.
|
||
|
||
## Where the files are
|
||
|
||
`tools/fetch-macintalk.py` downloads a Mac OS 8.1 hard disk image (for the
|
||
Basilisk II emulator) from the Internet Archive:
|
||
<https://archive.org/details/macos-8.1-basilisk-ii>, file
|
||
`macos-8.1-basilisk-ii-2026.10.1.zip` (SHA-256
|
||
`ce6ee4ba5294182535d20bf6639f64415376e4420b3473167803315e615c97fa`). The
|
||
zip contains one 1 GB HFS volume. The voices are in `System Folder:Extensions:
|
||
Voices`. Each voice is a file of type `ttvf`, creator `mtk3`, with an
|
||
empty data fork and these resources:
|
||
|
||
| Resource | What it is |
|
||
|---|---|
|
||
| `ttvd` | the voice description: the `VoiceDescription` of the Speech Manager, then the parameter block of MacInTalk 3 |
|
||
| `ttvw` | a sampled sound, in 9 of the 19 voices |
|
||
| `vers` 1, 2 | "1.4, © Apple Computer, Inc 1992-1995", "Mac OS 8.0" |
|
||
|
||
The script writes the `ttvd` and `ttvw` of each voice to `<voice>.ttvd`
|
||
and `<voice>.ttvw`. The file name is the name of the voice in lower
|
||
case, with `-` in place of spaces. `synth/macintalk` reads these files.
|
||
The script does not extract the MacInTalk 3 extension (the synthesiser
|
||
itself, 68k and PowerPC code). Nothing here uses it.
|
||
|
||
We do not use these other files on the disk:
|
||
|
||
- `Speech Manager` (the system extension).
|
||
- `MacinTalk 3`. Some of its resources are code: `ttvi` 8 to 10 and the
|
||
PowerPC fragment in `ttvi` 11. The other resources are data. From the
|
||
text in them, `ttvi` 3 to 7 hold the phoneme names, suffix lists,
|
||
letter-to-sound rules and probably the pronunciation dictionary.
|
||
`ttss` 0 is the phoneme table of the Speech Manager.
|
||
|
||
## `ttvd`
|
||
|
||
All values are big-endian. The first 362 bytes are the
|
||
`VoiceDescription` of the Speech Manager (Inside Macintosh: Sound):
|
||
|
||
| Offset | Size | Field |
|
||
|---|---|---|
|
||
| 0 | 4 | length (362) |
|
||
| 4 | 4 | creator, `mtk3` |
|
||
| 8 | 4 | voice id (Fred 1, Kathy 2, Princess 3, Junior 4, Ralph 5, Whisper 6, Zarvox 8, Trinoids 9 ...) |
|
||
| 12 | 4 | version (0x104) |
|
||
| 16 | 64 | name (Pascal string) |
|
||
| 80 | 256 | comment: the sample sentence that the Speech control panel speaks |
|
||
| 336 | 2 × 5 | gender, age, script, language, region (all 0) |
|
||
| 346 | 16 | reserved |
|
||
|
||
Then the parameter block follows. It has signed 16-bit words, numbered
|
||
from 0 at offset 362. Most voices have 176 words. The singing voices add
|
||
a tune at the end. "Used" tells if `synth/macintalk` uses the word, and
|
||
how.
|
||
|
||
| Word | Values (Fred, Ralph, Kathy, Zarvox, Whisper) | What it is | Used |
|
||
|---|---|---|---|
|
||
| 0 | 97, 65, 200, 90, 110 | base pitch, Hz | yes |
|
||
| 1 | 100, 100, 80, 0, 100 | pitch modulation, % (0 for the monotone and singing voices) | yes |
|
||
| 2 | 60, 50, 40, 70, 70 | 0 for the singing voices, 100 for Albert and Bahh. Possibly pitch wobble | no |
|
||
| 3 | 160, 150, 150, 160, 140 | speaking rate, words per minute | yes |
|
||
| 4 | 0, 0, 1, 0, 0 | a flag, set for Kathy, Princess, Boing, Trinoids | no |
|
||
| 5 | 100, 125, 55, 40, 0 | unknown (0 for the sampled voices) | no |
|
||
| 6 | 0, 60, 30, 0, 400 | breathiness (aspiration that is mixed with the voice) | yes |
|
||
| 7 | 192, 192, 200, 192, 16 | voicing amplitude (Whisper 16, Bubbles 32) | yes |
|
||
| 8, 9 | 3000/200, 2800/350, 3000/300, 3500/50, 3500/50 | fourth formant: frequency, bandwidth (Hz) | yes |
|
||
| 10, 11 | 3600/150, 3500/150, 3600/150, 4500/150, 4500/150 | fifth formant: frequency, bandwidth | yes |
|
||
| 12 to 15 | 3750, 100, 4500, 150 in all voices | probably two fixed higher resonances | no |
|
||
| 16, 17 | 330, 400 in all voices | nasal pole and zero, Hz | yes |
|
||
| 18 | 60 (Kathy 250, Princess 260) | unknown | no |
|
||
| 19 | 100 (0 for Kathy, Junior, Princess, Good News) | unknown | no |
|
||
| 20 to 22 | 150/100/100, 100/100/50, 200/100/100, 100/50/50, 100/100/50 | bandwidths of formants 1 to 3, % | yes |
|
||
| 23 to 25 | 0/0/0, −80/−40/−70, −40/−10/−10, 0/0/0, 0/0/0 | shifts of formants 1 to 3, Hz (Junior +50/+70/+70) | yes |
|
||
| 26 | 0 (Zarvox 3, Trinoids −32) | a second voice, at this % of the pitch above or below | yes (as an estimate) |
|
||
| 27 | 100, 100, 140, 250, 200 | output gain, % | yes |
|
||
| 28, 29 | 0, 0 (sampled voices: 47 to 54, 70 to 250) | settings for the sampled sound | no |
|
||
| 30 | 2 for Fred and Whisper, 0 for the other voices | unknown | no |
|
||
| 31 to 45 | the same in all voices (260, 29, −29, 29, −29, 1, 0, 51, 7200 ...) | engine constants | no |
|
||
| 46 | 0, 1 or 2 | how the voice uses the sampled sound: 0 none, 1 looped as the voice source, 2 one segment for each syllable (Bells, Hysterical) | yes |
|
||
| 47 | 0 | | |
|
||
| 48 to 94 | 47 values | glottal source spectrum A: the amplitude of harmonics 1 to 47 | yes |
|
||
| 95 | 0 | | |
|
||
| 96 to 142 | 47 values | glottal source spectrum B | yes |
|
||
| 143 | 1, or the `ttvw` resource id | the sampled sound that the voice uses | no (there is only one) |
|
||
| 144 to 173 | mostly constant | unknown | no |
|
||
| 174 | 1, or the number of notes | the length of the tune | yes |
|
||
| 175 ... | one word for each note | high byte: length (in about eighths), low byte: semitones from the base pitch, signed | yes |
|
||
|
||
The two source spectra are the clearest part of the format. The
|
||
spectrum of Fred decreases smoothly from 14636 to about 100 at the 36th
|
||
harmonic. The spectrum of Kathy decreases much faster and stops at the
|
||
16th harmonic (a softer voice). Zarvox has only the odd harmonics. This
|
||
gives it its hollow, buzzing sound. `synth/
|
||
macintalk` builds the voice source from the spectra, harmonic by
|
||
harmonic. It uses spectrum B on stressed vowels and spectrum A on all
|
||
other sounds. It is not known how Apple used the two spectra.
|
||
|
||
You can identify the tunes from their intervals. Cellos is In the Hall
|
||
of the Mountain King (0, 2, 3, 5, 7, 3, 7, 6, 2, 6, 5, 1, 5 semitones).
|
||
Bad News is the funeral march of Chopin (four notes on one pitch, then
|
||
+3, +2, +2, 0, 0, −1, 0). Good News is Pomp and Circumstance. Pipe Organ
|
||
also has a tune.
|
||
|
||
## `ttvw`
|
||
|
||
A sampled sound, 8-bit unsigned (128 is silence), probably at
|
||
11127 Hz. The resource has one of these two layouts:
|
||
|
||
- A 4-byte length, then the samples.
|
||
- A 4-byte length, a 4-byte count *n*, *n* 4-byte offsets that divide
|
||
the samples into *n* − 1 segments, then the samples.
|
||
|
||
| Voice | Name | Length | Segments |
|
||
|---|---|---|---|
|
||
| Albert | Crow | 4407 | 1 |
|
||
| Bahh | Lamb | 4900 | 1 |
|
||
| Bells | Clock | 33820 | 4 |
|
||
| Boing | Boing | 6528 | 1 |
|
||
| Bubbles | Bubbles | 7222 | 1 |
|
||
| Cellos | BowedStr | 11854 | 1 |
|
||
| Deranged | Insane | 17244 | 1 |
|
||
| Hysterical | Male Laugh | 40194 | 5 |
|
||
| Pipe Organ | PipeOrgan | 9908 | 1 |
|
||
|
||
## The voices
|
||
|
||
| Voice | Sample sentence |
|
||
|---|---|
|
||
| Albert | I have a frog in my throat. No, I mean a real frog! |
|
||
| Bad News | The light you see at the end of the tunnel is the headlamp of a fast approaching train. |
|
||
| Bahh | Do not pull the wool over my eyes. |
|
||
| Bells | Time flies when you are having fun. |
|
||
| Boing | Spring has sprung, fall has fell, winter's here and it's colder than usual. |
|
||
| Bubbles | Pull the plug! I'm drowning! |
|
||
| Cellos | Doo da doo da dum dee dee doodly doo dum dum dum doo da doo da doo da doo da doo da doo da doo |
|
||
| Deranged | I need to go on a really long vacation. |
|
||
| Fred | I sure like being inside this fancy computer |
|
||
| Good News | Congratulations you just won the sweepstakes and you don't have to pay income tax again. |
|
||
| Hysterical | Please stop tickling me! |
|
||
| Junior | My favorite food is pizza. |
|
||
| Kathy | Isn't it nice to have a computer that will talk to you? |
|
||
| Pipe Organ | We must rejoice in this morbid voice. |
|
||
| Princess | When I grow up I'm going to be a scientist. |
|
||
| Ralph | The sum of the squares of the legs of a right triangle is equal to the square of the hypotenuse. |
|
||
| Trinoids | We cannot communicate with these carbon units. |
|
||
| Whisper | Pssssst, hey you, Yeah you, Who do ya think I'm talking to, the mouse? |
|
||
| Zarvox | That looks like a peaceful planet. |
|
||
|
||
## What is not Apple's
|
||
|
||
The voice data sets the sound of a voice. The conversion from text to
|
||
speech is ours:
|
||
|
||
- The pronunciation comes from the NRL letter-to-sound rules (a 1976 US
|
||
Navy report, public domain) and a small word list.
|
||
- The phoneme targets and durations are textbook values (Klatt 1979 and
|
||
1980).
|
||
- The synthesiser is a cascade formant synthesiser that we wrote for this
|
||
repository.
|
||
|
||
Thus the voices are in the style of MacInTalk 3, but they are not copies
|
||
of it. The pitch, speed, timbre, tunes and samples are from Apple. The
|
||
pronunciation and rhythm are not from Apple. In the future, it is
|
||
possible to decode the rules and dictionary of Apple (`ttvi` 3 to 7) in
|
||
the same way.
|
||
|
||
The PlainTalk voices (MacInTalk Pro: Victoria, Agnes, Bruce) are
|
||
recorded diphones. This is a different type of synthesiser, and these
|
||
voices are not on this disk. They come from a Mac OS 8.6 disk image.
|
||
Refer to [plaintalk-format.md](plaintalk-format.md).
|