mirror of
https://github.com/D-Modem/speaking-clock.git
synced 2026-11-28 20:48:04 -08:00
Add our own MacInTalk 3 synthesiser and 19 live MacInTalk voices
synth/macintalk is a clean-room speech synthesiser for Linux that speaks
with the MacInTalk 3 voices of classic Mac OS (Fred, Ralph, Kathy, Zarvox,
the singing and novelty voices). It runs no Apple code. It reads only the
voices' data ('ttvd' parameters and 'ttvw' samples), which
tools/fetch-macintalk.py takes from a Mac OS 8.1 disk image on the
Internet Archive at build time, with its own small HFS reader. Apple's
files stay out of the repository.
The voice data gives the pitch, rate, glottal source spectra, formant
shifts and bandwidths, breathiness, chorus, tunes and sampled sounds
(docs/macintalk-format.md). The text front end (NRL letter-to-sound rules,
public domain), prosody and Klatt-style formant synthesis are ours.
tools/synth_voices.py gets a macintalk engine (clips and --live), and
voices/live-macintalk-* run it through mode=tts (tts_program_macintalk).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRAKCKq1gSHpownvFE
This commit is contained in:
31 files changed
+2764
-9
No files matched your search
@@ -1,3 +1,4 @@
|
||||
asterisk/app_speakingclock.so
|
||||
/sources/
|
||||
__pycache__/
|
||||
synth/macintalk/macintalk
|
||||
@@ -85,3 +85,12 @@ voices, belong to their owners:
|
||||
- **MacInTalk and PlainTalk** (`mac-*`): Apple's voices (MacinTalk 3, and
|
||||
the PlainTalk MacinTalk Pro voices Victoria, Agnes, Bruce and Vicki),
|
||||
spoken by macOS's `say`.
|
||||
- **MacInTalk 3, live** (`live-macintalk-*`): no recordings. Each sentence
|
||||
is spoken on the Asterisk machine by `synth/macintalk`, our own
|
||||
synthesiser (GPL-2.0-or-later, like the rest of this repository), which
|
||||
reads the voice data of Apple's MacInTalk 3 voices. That data is Apple's
|
||||
(© Apple Computer, Inc. 1992-1995) and is not in this repository:
|
||||
`tools/fetch-macintalk.py` downloads it from a Mac OS 8.1 disk image on
|
||||
the Internet Archive. MacInTalk and Macintosh are trademarks of Apple
|
||||
Inc. The letter-to-sound rules in `synth/macintalk/rules.h` are from NRL
|
||||
Report 7948 (1976), a US government work in the public domain.
|
||||
@@ -74,12 +74,17 @@ A voice with `mode=tts` has no clips. The module runs a synthesiser on the
|
||||
Asterisk machine for each announcement's whole sentence ("At the third
|
||||
stroke, it will be four fifteen and twenty seconds."), a little ahead of
|
||||
when it is needed, so the call never waits on it. The `live-dectalk-*` and
|
||||
`live-sam-*` voices run DECtalk's `say` and `sam`. Set where they are in
|
||||
`live-sam-*` voices run DECtalk's `say` and `sam`. The `live-macintalk-*`
|
||||
voices (Fred, Ralph, Kathy, Zarvox and the other 15 MacInTalk 3 voices) run
|
||||
[synth/macintalk](synth/macintalk), our own synthesiser, which reads
|
||||
Apple's voice data (`cd synth/macintalk && make && make voices && sudo make
|
||||
install` builds it and fetches the data). Set where they are in
|
||||
speakingclock.conf:
|
||||
|
||||
```
|
||||
tts_program_dectalk=/opt/dectalk/say
|
||||
tts_program_sam=/usr/local/bin/sam
|
||||
tts_program_macintalk=/usr/local/bin/macintalk
|
||||
```
|
||||
|
||||
See [docs/voice-format.md](docs/voice-format.md#live-voices-modetts).
|
||||
@@ -112,6 +117,8 @@ DECTALK_SAY=~/dectalk/dist/say tools/synth_voices.py voices dectalk:paul
|
||||
SAM=~/SAM/sam tools/synth_voices.py voices sam:sam
|
||||
tools/synth_voices.py voices mac:Fred # MacInTalk, on a Mac
|
||||
tools/synth_voices.py voices mac:Victoria # PlainTalk, on a Mac
|
||||
tools/synth_voices.py voices macintalk:fred # MacInTalk 3, synth/macintalk
|
||||
tools/synth_voices.py --live voices macintalk:zarvox # live-macintalk-zarvox
|
||||
```
|
||||
|
||||
## Licence
|
||||
|
||||
@@ -23,10 +23,12 @@
|
||||
; Hang up after this many seconds (0: never). The d() option overrides it.
|
||||
;maxduration=180
|
||||
|
||||
; The live DECtalk and SAM voices run the synthesiser on this machine, with
|
||||
; no server. Default: dectalk and sam, found on the PATH.
|
||||
; The live DECtalk, SAM and MacInTalk voices run the synthesiser on this
|
||||
; machine, with no server. Default: dectalk, sam and macintalk, found on
|
||||
; the PATH. macintalk is synth/macintalk in this repository.
|
||||
;tts_program_dectalk=/opt/dectalk/say
|
||||
;tts_program_sam=/usr/local/bin/sam
|
||||
;tts_program_macintalk=/usr/local/bin/macintalk
|
||||
|
||||
; Seconds a synthesiser program may take before it is stopped.
|
||||
;tts_timeout=15
|
||||
@@ -0,0 +1,161 @@
|
||||
# MacInTalk 3 voice files
|
||||
|
||||
What `synth/macintalk` knows about Apple's MacInTalk 3 voices. It was
|
||||
worked out by comparing the data of the 19 voices that come with Mac OS 8.1
|
||||
(MacInTalk 3 version 1.4, 1992-1995) with each other and with how the
|
||||
voices are known to sound. No Apple code was run, emulated, disassembled or
|
||||
read 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 holds one 1 GB HFS volume. The voices are in `System Folder:Extensions:
|
||||
Voices`. Each 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 Speech Manager's `VoiceDescription`, then MacInTalk 3's parameter block |
|
||||
| `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 each voice's `ttvd` and `ttvw` to `<voice>.ttvd` and
|
||||
`<voice>.ttvw` (the voice's name in lower case, spaces as `-`), which is
|
||||
what `synth/macintalk` reads. It doesn't extract the MacInTalk 3 extension
|
||||
(the synthesiser itself, 68k and PowerPC code); nothing here needs it.
|
||||
|
||||
Other files on the disk that are not used: `Speech Manager` (the system
|
||||
extension), `MacinTalk 3` (its resources are code, `ttvi` 8 to 10 and the
|
||||
PowerPC fragment in `ttvi` 11, and data: going by 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 Speech Manager
|
||||
phoneme table).
|
||||
|
||||
## `ttvd`
|
||||
|
||||
All big-endian. The first 362 bytes are the Speech Manager's
|
||||
`VoiceDescription` (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 the Speech control panel speaks |
|
||||
| 336 | 2 × 5 | gender, age, script, language, region (all 0) |
|
||||
| 346 | 16 | reserved |
|
||||
|
||||
Then the parameter block, 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" says whether `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. Perhaps 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 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 every voice | probably two fixed higher resonances | no |
|
||||
| 16, 17 | 330, 400 in every voice | 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 a guess) |
|
||||
| 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, else 0 | unknown | no |
|
||||
| 31 to 45 | the same in every voice (260, 29, −29, 29, −29, 1, 0, 51, 7200 ...) | engine constants | no |
|
||||
| 46 | 0, 1 or 2 | how the sampled sound is used: 0 none, 1 looped as the voice source, 2 one segment per 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 | which sampled sound the voice uses | no (there is one) |
|
||||
| 144 to 173 | mostly constant | unknown | no |
|
||||
| 174 | 1, or the number of notes | the tune's length | yes |
|
||||
| 175 ... | one word per 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. Fred's falls
|
||||
smoothly from 14636 to about 100 by the 36th harmonic. Kathy's falls much
|
||||
faster and stops at the 16th (a softer voice). Zarvox has only the odd
|
||||
harmonics, which is what gives it its hollow, buzzing sound. `synth/
|
||||
macintalk` builds the voice source from them, harmonic by harmonic, using
|
||||
spectrum B on stressed vowels and A elsewhere. Which of the two Apple used
|
||||
for what isn't known.
|
||||
|
||||
The tunes are recognisable 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 Chopin's funeral march (four notes on one pitch, then +3, +2, +2,
|
||||
0, 0, −1, 0). Good News is Pomp and Circumstance. Pipe Organ has a tune
|
||||
too.
|
||||
|
||||
## `ttvw`
|
||||
|
||||
A sampled sound, 8-bit unsigned (128 is silence), apparently at 11127 Hz.
|
||||
Either a 4-byte length and then the samples, or a 4-byte length, a 4-byte
|
||||
count *n*, *n* 4-byte offsets that cut the samples into *n* − 1 segments,
|
||||
and 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 isn't Apple's
|
||||
|
||||
The voice data sets how a voice sounds. How text becomes 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), and the synthesiser is
|
||||
a cascade formant synthesiser written for this repository. So the voices
|
||||
are in the style of MacInTalk 3 rather than copies of it: the pitch, speed,
|
||||
timbre, tunes and samples are Apple's, the pronunciation and rhythm are
|
||||
not. Apple's own rules and dictionary (`ttvi` 3 to 7) could be decoded the
|
||||
same way later.
|
||||
|
||||
The PlainTalk voices (MacInTalk Pro: Victoria, Agnes, Bruce) are recorded
|
||||
diphones, a different kind of synthesiser, and are not on this disk.
|
||||
@@ -0,0 +1,35 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# make build macintalk
|
||||
# make voices fetch Apple's MacInTalk 3 voice data (about 50 MB download)
|
||||
# make install install the program and the voices
|
||||
# make test speak a sentence with every voice
|
||||
PREFIX ?= /usr/local
|
||||
VOICEDIR ?= $(PREFIX)/share/macintalk
|
||||
CC ?= cc
|
||||
CFLAGS ?= -O2 -Wall -Wextra -Wno-missing-field-initializers
|
||||
SOURCES ?= ../../sources/macintalk
|
||||
|
||||
macintalk: macintalk.c rules.h
|
||||
$(CC) $(CFLAGS) -o $@ macintalk.c -lm
|
||||
|
||||
voices: $(SOURCES)/fred.ttvd
|
||||
|
||||
$(SOURCES)/fred.ttvd:
|
||||
python3 ../../tools/fetch-macintalk.py $(SOURCES)
|
||||
|
||||
install: macintalk voices
|
||||
install -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(VOICEDIR)
|
||||
install -m 755 macintalk $(DESTDIR)$(PREFIX)/bin/macintalk
|
||||
install -m 644 $(SOURCES)/*.ttvd $(SOURCES)/*.ttvw $(DESTDIR)$(VOICEDIR)/
|
||||
|
||||
test: macintalk voices
|
||||
@for v in $$(./macintalk -d $(SOURCES) -l | cut -d' ' -f1); do \
|
||||
./macintalk -d $(SOURCES) -v $$v -o /tmp/macintalk-$$v.wav \
|
||||
"At the third stroke, it will be ten oh five and twenty seconds." && \
|
||||
echo "/tmp/macintalk-$$v.wav"; \
|
||||
done
|
||||
|
||||
clean:
|
||||
rm -f macintalk
|
||||
|
||||
.PHONY: voices install test clean
|
||||
@@ -0,0 +1,70 @@
|
||||
# macintalk
|
||||
|
||||
A speech synthesiser for Linux that speaks with the MacInTalk 3 voices of
|
||||
classic Mac OS: Fred, Ralph, Kathy, Junior, Princess, Zarvox, Trinoids,
|
||||
Whisper, the singing voices (Cellos, Pipe Organ, Good News, Bad News) and
|
||||
the novelty ones (Bells, Boing, Bubbles, Albert, Bahh, Deranged,
|
||||
Hysterical).
|
||||
|
||||
It is a clean-room program. It has no Apple code and doesn't run, emulate or
|
||||
load any. It reads only the voices' data, which `tools/fetch-macintalk.py`
|
||||
takes from a Mac OS 8.1 disk image on the Internet Archive when you build
|
||||
it. Apple's files are not in this repository. See
|
||||
[docs/macintalk-format.md](../../docs/macintalk-format.md) for what the
|
||||
voice data holds and what is ours.
|
||||
|
||||
```
|
||||
make # build ./macintalk (C99, no dependencies but libm)
|
||||
make voices # download the voice data to ../../sources/macintalk
|
||||
sudo make install # /usr/local/bin/macintalk, /usr/local/share/macintalk
|
||||
|
||||
macintalk -l
|
||||
macintalk -v zarvox -o zarvox.wav "That looks like a peaceful planet."
|
||||
macintalk -v fred "At the third stroke, it will be ten oh five." | aplay
|
||||
```
|
||||
|
||||
Options: `-v voice` (default fred), `-d dir` (the voice folder; default
|
||||
`$MACINTALK_VOICES`, then `/usr/local/share/macintalk`,
|
||||
`/usr/share/macintalk`, `./sources/macintalk`), `-o file` (default: the
|
||||
WAV goes to standard output), `-r wpm` and `-p hz` (override the voice's
|
||||
rate and pitch), `-x` (print the phonemes instead). The WAV is 22050 Hz,
|
||||
16-bit mono.
|
||||
|
||||
The text can carry Speech Manager commands: `[[inpt PHON]]` switches to
|
||||
Apple's phoneme symbols (`1EHkspIHrIHmEHnt`), `[[inpt TEXT]]` back,
|
||||
`[[rate 200]]`, `[[pbas 50]]` (base pitch, as a MIDI note), `[[slnc 500]]`
|
||||
(silence, ms).
|
||||
|
||||
## For the speaking clock
|
||||
|
||||
The `live-macintalk-*` voices in `voices/` run this program for each
|
||||
sentence (docs/voice-format.md, mode=tts). Install it, then, if it isn't on
|
||||
Asterisk's PATH, tell speakingclock.conf where it is:
|
||||
|
||||
```
|
||||
tts_program_macintalk=/usr/local/bin/macintalk
|
||||
```
|
||||
|
||||
The voice data must be in one of the default folders (or set
|
||||
`MACINTALK_VOICES` in Asterisk's environment).
|
||||
|
||||
## How it works
|
||||
|
||||
1. Text to phonemes: numbers and times ("10:05") to words, a short word
|
||||
list for the clock's words and common ones, and the NRL letter-to-sound
|
||||
rules (Elovitz et al. 1976, public domain) for everything else.
|
||||
2. Timing: each phoneme's length from Klatt's rules (shorter when
|
||||
unstressed, longer at the end of a phrase), scaled to the voice's rate.
|
||||
Stops get a closure, a burst and, before a vowel, aspiration.
|
||||
3. Pitch: a falling line per phrase with a rise on each stressed syllable
|
||||
and a fall (or a question's rise) at the end, scaled by the voice's pitch
|
||||
and modulation. The singing voices put each vowel on the next note of
|
||||
their tune.
|
||||
4. Sound: the voice source is built harmonic by harmonic from the voice's
|
||||
own glottal spectra (or from its sampled sound), mixed with breath noise,
|
||||
and shaped by a cascade of five formant resonators and a nasal pole and
|
||||
zero, with the voice's formant shifts and bandwidths; fricatives and
|
||||
bursts are noise through their own band.
|
||||
|
||||
Pronunciation and rhythm are ours, so the voices sound like MacInTalk 3's
|
||||
voices rather than exactly like them.
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,497 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*
|
||||
* English letter-to-sound rules. These are the rules of H. S. Elovitz,
|
||||
* R. Johnson, A. McHugh and J. E. Shore, "Letter-to-Sound Rules for
|
||||
* Automatic Translation of English Text to Phonetics", NRL Report 7948
|
||||
* (US Naval Research Laboratory, 1976), a US government work in the public
|
||||
* domain, written out again here. Nothing in this file comes from Apple.
|
||||
*
|
||||
* Each rule is { left context, letters, right context, phonemes }. Context
|
||||
* symbols: ' ' a word boundary, '#' one or more vowels, ':' zero or more
|
||||
* consonants, '^' one consonant, '.' a voiced consonant (B D G J L M N R V
|
||||
* W Z), '+' a front vowel (E I Y), '%' a suffix (ER E ES ED ING ELY), '&' a
|
||||
* sibilant (S C G Z X J CH SH), '@' T S R D L Z N J TH CH SH. The rules
|
||||
* for a letter are tried in order and the first that fits is used.
|
||||
*/
|
||||
|
||||
struct rule { const char *left, *match, *right, *out; };
|
||||
|
||||
static const struct rule rules_punct[] = {
|
||||
{ "", "'", "", "" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_a[] = {
|
||||
{ "", "A", " ", "AX" },
|
||||
{ " ", "ARE", " ", "AA r" },
|
||||
{ " ", "AR", "O", "AX r" },
|
||||
{ "", "AR", "#", "EH r" },
|
||||
{ " ^", "AS", "#", "EY s" },
|
||||
{ "", "A", "WA", "AX" },
|
||||
{ "", "AW", "", "AO" },
|
||||
{ " :", "ANY", "", "EH n IY" },
|
||||
{ "", "A", "^+#", "EY" },
|
||||
{ "#:", "ALLY", "", "AX l IY" },
|
||||
{ " ", "AL", "#", "AX l" },
|
||||
{ "", "AGAIN", "", "AX g EH n" },
|
||||
{ "#:", "AG", "E", "IH J" },
|
||||
{ "", "A", "^+:#", "AE" },
|
||||
{ " :", "A", "^+ ", "EY" },
|
||||
{ "", "A", "^%", "EY" },
|
||||
{ " ", "ARR", "", "AX r" },
|
||||
{ "", "ARR", "", "AE r" },
|
||||
{ " :", "AR", " ", "AA r" },
|
||||
{ "", "AR", " ", "ER" },
|
||||
{ "", "AR", "", "AA r" },
|
||||
{ "", "AIR", "", "EH r" },
|
||||
{ "", "AI", "", "EY" },
|
||||
{ "", "AY", "", "EY" },
|
||||
{ "", "AU", "", "AO" },
|
||||
{ "#:", "AL", " ", "AX l" },
|
||||
{ "#:", "ALS", " ", "AX l z" },
|
||||
{ "", "ALK", "", "AO k" },
|
||||
{ "", "AL", "^", "AO l" },
|
||||
{ " :", "ABLE", "", "EY b AX l" },
|
||||
{ "", "ABLE", "", "AX b AX l" },
|
||||
{ "", "ANG", "+", "EY n J" },
|
||||
{ "", "A", "", "AE" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_b[] = {
|
||||
{ " ", "BE", "^#", "b IH" },
|
||||
{ "", "BEING", "", "b IY IH N" },
|
||||
{ " ", "BOTH", " ", "b OW T" },
|
||||
{ " ", "BUS", "#", "b IH z" },
|
||||
{ "", "BUIL", "", "b IH l" },
|
||||
{ "", "B", "", "b" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_c[] = {
|
||||
{ " ", "CH", "^", "k" },
|
||||
{ "^E", "CH", "", "k" },
|
||||
{ "", "CH", "", "C" },
|
||||
{ " S", "CI", "#", "s AY" },
|
||||
{ "", "CI", "A", "S" },
|
||||
{ "", "CI", "O", "S" },
|
||||
{ "", "CI", "EN", "S" },
|
||||
{ "", "C", "+", "s" },
|
||||
{ "", "CK", "", "k" },
|
||||
{ "", "COM", "%", "k AH m" },
|
||||
{ "", "C", "", "k" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_d[] = {
|
||||
{ "#:", "DED", " ", "d IH d" },
|
||||
{ ".E", "D", " ", "d" },
|
||||
{ "#^:E", "D", " ", "t" },
|
||||
{ " ", "DE", "^#", "d IH" },
|
||||
{ " ", "DO", " ", "d UW" },
|
||||
{ " ", "DOES", "", "d AH z" },
|
||||
{ " ", "DOING", "", "d UW IH N" },
|
||||
{ " ", "DOW", "", "d AW" },
|
||||
{ "", "DU", "A", "J UW" },
|
||||
{ "", "D", "", "d" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_e[] = {
|
||||
{ "#:", "E", " ", "" },
|
||||
{ "'^:", "E", " ", "" },
|
||||
{ " :", "E", " ", "IY" },
|
||||
{ "#", "ED", " ", "d" },
|
||||
{ "#:", "E", "D ", "" },
|
||||
{ "", "EV", "ER", "EH v" },
|
||||
{ "", "E", "^%", "IY" },
|
||||
{ "", "ERI", "#", "IY r IY" },
|
||||
{ "", "ERI", "", "EH r IH" },
|
||||
{ "#:", "ER", "#", "ER" },
|
||||
{ "", "ER", "#", "EH r" },
|
||||
{ "", "ER", "", "ER" },
|
||||
{ " ", "EVEN", "", "IY v EH n" },
|
||||
{ "#:", "E", "W", "" },
|
||||
{ "@", "EW", "", "UW" },
|
||||
{ "", "EW", "", "y UW" },
|
||||
{ "", "E", "O", "IY" },
|
||||
{ "#:&", "ES", " ", "IH z" },
|
||||
{ "#:", "E", "S ", "" },
|
||||
{ "#:", "ELY", " ", "l IY" },
|
||||
{ "#:", "EMENT", "", "m EH n t" },
|
||||
{ "", "EFUL", "", "f UH l" },
|
||||
{ "", "EE", "", "IY" },
|
||||
{ "", "EARN", "", "ER n" },
|
||||
{ " ", "EAR", "^", "ER" },
|
||||
{ "", "EAD", "", "EH d" },
|
||||
{ "#:", "EA", " ", "IY AX" },
|
||||
{ "", "EA", "SU", "EH" },
|
||||
{ "", "EA", "", "IY" },
|
||||
{ "", "EIGH", "", "EY" },
|
||||
{ "", "EI", "", "IY" },
|
||||
{ " ", "EYE", "", "AY" },
|
||||
{ "", "EY", "", "IY" },
|
||||
{ "", "EU", "", "y UW" },
|
||||
{ "", "E", "", "EH" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_f[] = {
|
||||
{ "", "FUL", "", "f UH l" },
|
||||
{ "", "F", "", "f" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_g[] = {
|
||||
{ "", "GIV", "", "g IH v" },
|
||||
{ " ", "G", "I^", "g" },
|
||||
{ "", "GE", "T", "g EH" },
|
||||
{ "SU", "GGES", "", "g J EH s" },
|
||||
{ "", "GG", "", "g" },
|
||||
{ " B#", "G", "", "g" },
|
||||
{ "", "G", "+", "J" },
|
||||
{ "", "GREAT", "", "g r EY t" },
|
||||
{ "#", "GH", "", "" },
|
||||
{ "", "G", "", "g" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_h[] = {
|
||||
{ " ", "HAV", "", "h AE v" },
|
||||
{ " ", "HERE", "", "h IY r" },
|
||||
{ " ", "HOUR", "", "AW ER" },
|
||||
{ "", "HOW", "", "h AW" },
|
||||
{ "", "H", "#", "h" },
|
||||
{ "", "H", "", "" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_i[] = {
|
||||
{ " ", "IN", "", "IH n" },
|
||||
{ " ", "I", " ", "AY" },
|
||||
{ "", "IN", "D", "AY n" },
|
||||
{ "", "IER", "", "IY ER" },
|
||||
{ "#:R", "IED", "", "IY d" },
|
||||
{ "", "IED", " ", "AY d" },
|
||||
{ "", "IEN", "", "IY EH n" },
|
||||
{ "", "IE", "T", "AY EH" },
|
||||
{ " :", "I", "%", "AY" },
|
||||
{ "", "I", "%", "IY" },
|
||||
{ "", "IE", "", "IY" },
|
||||
{ "", "I", "^+:#", "IH" },
|
||||
{ "", "IR", "#", "AY r" },
|
||||
{ "", "IZ", "%", "AY z" },
|
||||
{ "", "IS", "%", "AY z" },
|
||||
{ "", "I", "D%", "AY" },
|
||||
{ "+^", "I", "^+", "IH" },
|
||||
{ "", "I", "T%", "AY" },
|
||||
{ "#:^", "I", "^+", "IH" },
|
||||
{ "", "I", "^+", "AY" },
|
||||
{ "", "IR", "", "ER" },
|
||||
{ "", "IGH", "", "AY" },
|
||||
{ "", "ILD", "", "AY l d" },
|
||||
{ "", "IGN", " ", "AY n" },
|
||||
{ "", "IGN", "^", "AY n" },
|
||||
{ "", "IGN", "%", "AY n" },
|
||||
{ "", "IQUE", "", "IY k" },
|
||||
{ "", "I", "", "IH" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_j[] = {
|
||||
{ "", "J", "", "J" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_k[] = {
|
||||
{ " ", "K", "N", "" },
|
||||
{ "", "K", "", "k" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_l[] = {
|
||||
{ "", "LO", "C#", "l OW" },
|
||||
{ "L", "L", "", "" },
|
||||
{ "#:^", "L", "%", "AX l" },
|
||||
{ "", "LEAD", "", "l IY d" },
|
||||
{ "", "L", "", "l" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_m[] = {
|
||||
{ "", "MOV", "", "m UW v" },
|
||||
{ "", "M", "", "m" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_n[] = {
|
||||
{ "E", "NG", "+", "n J" },
|
||||
{ "", "NG", "R", "N g" },
|
||||
{ "", "NG", "#", "N g" },
|
||||
{ "", "NGL", "%", "N g AX l" },
|
||||
{ "", "NG", "", "N" },
|
||||
{ "", "NK", "", "N k" },
|
||||
{ " ", "NOW", " ", "n AW" },
|
||||
{ "", "N", "", "n" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_o[] = {
|
||||
{ "", "OF", " ", "AX v" },
|
||||
{ "", "OROUGH", "", "ER OW" },
|
||||
{ "#:", "OR", " ", "ER" },
|
||||
{ "#:", "ORS", " ", "ER z" },
|
||||
{ "", "OR", "", "AO r" },
|
||||
{ " ", "ONE", "", "w AH n" },
|
||||
{ "", "OW", "", "OW" },
|
||||
{ " ", "OVER", "", "OW v ER" },
|
||||
{ "", "OV", "", "AH v" },
|
||||
{ "", "O", "^%", "OW" },
|
||||
{ "", "O", "^EN", "OW" },
|
||||
{ "", "O", "^I#", "OW" },
|
||||
{ "", "OL", "D", "OW l" },
|
||||
{ "", "OUGHT", "", "AO t" },
|
||||
{ "", "OUGH", "", "AH f" },
|
||||
{ " ", "OU", "", "AW" },
|
||||
{ "H", "OU", "S#", "AW" },
|
||||
{ "", "OUS", "", "AX s" },
|
||||
{ "", "OUR", "", "AO r" },
|
||||
{ "", "OULD", "", "UH d" },
|
||||
{ "^", "OU", "^L", "AH" },
|
||||
{ "", "OUP", "", "UW p" },
|
||||
{ "", "OU", "", "AW" },
|
||||
{ "", "OY", "", "OY" },
|
||||
{ "", "OING", "", "OW IH N" },
|
||||
{ "", "OI", "", "OY" },
|
||||
{ "", "OOR", "", "AO r" },
|
||||
{ "", "OOK", "", "UH k" },
|
||||
{ "", "OOD", "", "UH d" },
|
||||
{ "", "OO", "", "UW" },
|
||||
{ "", "O", "E", "OW" },
|
||||
{ "", "O", " ", "OW" },
|
||||
{ "", "OA", "", "OW" },
|
||||
{ " ", "ONLY", "", "OW n l IY" },
|
||||
{ " ", "ONCE", "", "w AH n s" },
|
||||
{ "", "ON'T", "", "OW n t" },
|
||||
{ "C", "O", "N", "AA" },
|
||||
{ "", "O", "NG", "AO" },
|
||||
{ " :^", "O", "N", "AH" },
|
||||
{ "I", "ON", "", "AX n" },
|
||||
{ "#:", "ON", " ", "AX n" },
|
||||
{ "#^", "ON", "", "AX n" },
|
||||
{ "", "O", "ST ", "OW" },
|
||||
{ "", "OF", "^", "AO f" },
|
||||
{ "", "OTHER", "", "AH D ER" },
|
||||
{ "", "OSS", " ", "AO s" },
|
||||
{ "#:^", "OM", "", "AH m" },
|
||||
{ "", "O", "", "AA" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_p[] = {
|
||||
{ "", "PH", "", "f" },
|
||||
{ "", "PEOP", "", "p IY p" },
|
||||
{ "", "POW", "", "p AW" },
|
||||
{ "", "PUT", " ", "p UH t" },
|
||||
{ "", "P", "", "p" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_q[] = {
|
||||
{ "", "QUAR", "", "k w AO r" },
|
||||
{ "", "QU", "", "k w" },
|
||||
{ "", "Q", "", "k" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_r[] = {
|
||||
{ " ", "RE", "^#", "r IY" },
|
||||
{ "", "R", "", "r" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_s[] = {
|
||||
{ "", "SH", "", "S" },
|
||||
{ "#", "SION", "", "Z AX n" },
|
||||
{ "", "SOME", "", "s AH m" },
|
||||
{ "#", "SUR", "#", "Z ER" },
|
||||
{ "", "SUR", "#", "S ER" },
|
||||
{ "#", "SU", "#", "Z UW" },
|
||||
{ "#", "SSU", "#", "S UW" },
|
||||
{ "#", "SED", " ", "z d" },
|
||||
{ "#", "S", "#", "z" },
|
||||
{ "", "SAID", "", "s EH d" },
|
||||
{ "^", "SION", "", "S AX n" },
|
||||
{ "", "S", "S", "" },
|
||||
{ ".", "S", " ", "z" },
|
||||
{ "#:.E", "S", " ", "z" },
|
||||
{ "#:^##", "S", " ", "z" },
|
||||
{ "#:^#", "S", " ", "s" },
|
||||
{ "U", "S", " ", "s" },
|
||||
{ " :#", "S", " ", "z" },
|
||||
{ " ", "SCH", "", "s k" },
|
||||
{ "", "S", "C+", "" },
|
||||
{ "#", "SM", "", "z m" },
|
||||
{ "#", "SN", "'", "z AX n" },
|
||||
{ "", "S", "", "s" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_t[] = {
|
||||
{ " ", "THE", " ", "D AX" },
|
||||
{ "", "TO", " ", "t UW" },
|
||||
{ "", "THAT", " ", "D AE t" },
|
||||
{ " ", "THIS", " ", "D IH s" },
|
||||
{ " ", "THEY", "", "D EY" },
|
||||
{ " ", "THERE", "", "D EH r" },
|
||||
{ "", "THER", "", "D ER" },
|
||||
{ "", "THEIR", "", "D EH r" },
|
||||
{ " ", "THAN", " ", "D AE n" },
|
||||
{ " ", "THEM", " ", "D EH m" },
|
||||
{ "", "THESE", " ", "D IY z" },
|
||||
{ " ", "THEN", "", "D EH n" },
|
||||
{ "", "THROUGH", "", "T r UW" },
|
||||
{ "", "THOSE", "", "D OW z" },
|
||||
{ "", "THOUGH", " ", "D OW" },
|
||||
{ " ", "THUS", "", "D AH s" },
|
||||
{ "", "TH", "", "T" },
|
||||
{ "#:", "TED", " ", "t IH d" },
|
||||
{ "S", "TI", "#N", "C" },
|
||||
{ "", "TI", "O", "S" },
|
||||
{ "", "TI", "A", "S" },
|
||||
{ "", "TIEN", "", "S AX n" },
|
||||
{ "", "TUR", "#", "C ER" },
|
||||
{ "", "TU", "A", "C UW" },
|
||||
{ " ", "TWO", "", "t UW" },
|
||||
{ "", "T", "", "t" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_u[] = {
|
||||
{ " ", "UN", "I", "y UW n" },
|
||||
{ " ", "UN", "", "AH n" },
|
||||
{ " ", "UPON", "", "AX p AO n" },
|
||||
{ "@", "UR", "#", "UH r" },
|
||||
{ "", "UR", "#", "y UH r" },
|
||||
{ "", "UR", "", "ER" },
|
||||
{ "", "U", "^ ", "AH" },
|
||||
{ "", "U", "^^", "AH" },
|
||||
{ "", "UY", "", "AY" },
|
||||
{ " G", "U", "#", "" },
|
||||
{ "G", "U", "%", "" },
|
||||
{ "G", "U", "#", "w" },
|
||||
{ "#N", "U", "", "y UW" },
|
||||
{ "@", "U", "", "UW" },
|
||||
{ "", "U", "", "y UW" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_v[] = {
|
||||
{ "", "VIEW", "", "v y UW" },
|
||||
{ "", "V", "", "v" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_w[] = {
|
||||
{ " ", "WERE", "", "w ER" },
|
||||
{ "", "WA", "S", "w AA" },
|
||||
{ "", "WA", "T", "w AA" },
|
||||
{ "", "WHERE", "", "w EH r" },
|
||||
{ "", "WHAT", "", "w AA t" },
|
||||
{ "", "WHOL", "", "h OW l" },
|
||||
{ "", "WHO", "", "h UW" },
|
||||
{ "", "WH", "", "w" },
|
||||
{ "", "WAR", "", "w AO r" },
|
||||
{ "", "WOR", "^", "w ER" },
|
||||
{ "", "WR", "", "r" },
|
||||
{ "", "W", "", "w" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_x[] = {
|
||||
{ "", "X", "", "k s" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_y[] = {
|
||||
{ "", "YOUNG", "", "y AH N" },
|
||||
{ " ", "YOU", "", "y UW" },
|
||||
{ " ", "YES", "", "y EH s" },
|
||||
{ " ", "Y", "", "y" },
|
||||
{ "#:^", "Y", " ", "IY" },
|
||||
{ "#:^", "Y", "I", "IY" },
|
||||
{ " :", "Y", " ", "AY" },
|
||||
{ " :", "Y", "#", "AY" },
|
||||
{ " :", "Y", "^+:#", "IH" },
|
||||
{ " :", "Y", "^#", "AY" },
|
||||
{ "", "Y", "", "IH" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule rules_z[] = {
|
||||
{ "", "Z", "", "z" },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
static const struct rule *const rules[26] = {
|
||||
rules_a, rules_b, rules_c, rules_d, rules_e, rules_f, rules_g,
|
||||
rules_h, rules_i, rules_j, rules_k, rules_l, rules_m, rules_n,
|
||||
rules_o, rules_p, rules_q, rules_r, rules_s, rules_t, rules_u,
|
||||
rules_v, rules_w, rules_x, rules_y, rules_z,
|
||||
};
|
||||
|
||||
/* Words the rules get wrong, and the words a clock says, with their
|
||||
* stress: a 1 before a vowel is the main stress. Function words have
|
||||
* none. */
|
||||
static const struct { const char *word, *ph; } lexicon[] = {
|
||||
{ "a", "AX" }, { "an", "AX n" }, { "and", "AE n d" }, { "at", "AE t" },
|
||||
{ "the", "D AX" }, { "of", "AX v" }, { "to", "t UW" }, { "it", "IH t" },
|
||||
{ "is", "IH z" }, { "be", "b IY" }, { "will", "w IH l" }, { "in", "IH n" },
|
||||
{ "i", "1AY" }, { "you", "y UW" }, { "are", "AA r" }, { "was", "w AH z" },
|
||||
{ "it's", "IH t s" }, { "its", "IH t s" }, { "from", "f r AH m" },
|
||||
{ "for", "f AO r" }, { "this", "D IH s" }, { "with", "w IH T" },
|
||||
{ "have", "h AE v" }, { "has", "h AE z" }, { "do", "d UW" },
|
||||
{ "hello", "h EH l 1OW" }, { "computer", "k AX m p y 1UW t ER" },
|
||||
{ "zero", "z 1IY r OW" }, { "oh", "1OW" }, { "one", "w 1AH n" },
|
||||
{ "two", "t 1UW" }, { "three", "T r 1IY" }, { "four", "f 1AO r" },
|
||||
{ "five", "f 1AY v" }, { "six", "s 1IH k s" }, { "seven", "s 1EH v AX n" },
|
||||
{ "eight", "1EY t" }, { "nine", "n 1AY n" }, { "ten", "t 1EH n" },
|
||||
{ "eleven", "IH l 1EH v AX n" }, { "twelve", "t w 1EH l v" },
|
||||
{ "thirteen", "T ER t 1IY n" }, { "fourteen", "f AO r t 1IY n" },
|
||||
{ "fifteen", "f IH f t 1IY n" }, { "sixteen", "s IH k s t 1IY n" },
|
||||
{ "seventeen", "s EH v AX n t 1IY n" }, { "eighteen", "EY t 1IY n" },
|
||||
{ "nineteen", "n AY n t 1IY n" }, { "twenty", "t w 1EH n t IY" },
|
||||
{ "thirty", "T 1ER t IY" }, { "forty", "f 1AO r t IY" },
|
||||
{ "fifty", "f 1IH f t IY" }, { "sixty", "s 1IH k s t IY" },
|
||||
{ "seventy", "s 1EH v AX n t IY" }, { "eighty", "1EY t IY" },
|
||||
{ "ninety", "n 1AY n t IY" }, { "hundred", "h 1AH n d r IX d" },
|
||||
{ "thousand", "T 1AW z AX n d" },
|
||||
{ "third", "T 1ER d" }, { "stroke", "s t r 1OW k" },
|
||||
{ "second", "s 1EH k AX n d" }, { "seconds", "s 1EH k AX n d z" },
|
||||
{ "precisely", "p r IY s 1AY s l IY" }, { "exactly", "IH g z 1AE k t l IY" },
|
||||
{ "o'clock", "AX k l 1AA k" }, { "oclock", "AX k l 1AA k" },
|
||||
{ "noon", "n 1UW n" }, { "midnight", "m 1IH d n AY t" },
|
||||
{ "good", "g 1UH d" }, { "morning", "m 1AO r n IH N" },
|
||||
{ "afternoon", "AE f t ER n 1UW n" }, { "evening", "1IY v n IH N" },
|
||||
{ "time", "t 1AY m" }, { "minute", "m 1IH n IX t" },
|
||||
{ "minutes", "m 1IH n IX t s" }, { "hour", "1AW ER" }, { "hours", "1AW ER z" },
|
||||
{ "a.m.", "1EY EH m" }, { "p.m.", "p 1IY EH m" }, { "am", "1EY EH m" },
|
||||
{ "pm", "p 1IY EH m" }, { "tone", "t 1OW n" }, { "beep", "b 1IY p" },
|
||||
{ "clock", "k l 1AA k" }, { "talking", "t 1AO k IH N" },
|
||||
{ "speaking", "s p 1IY k IH N" }, { "macintalk", "m 1AE k IH n t AO k" },
|
||||
{ "macintosh", "m 1AE k IH n t AA S" }, { "mac", "m 1AE k" },
|
||||
{ "apple", "1AE p AX l" }, { "pizza", "p 1IY t s AX" },
|
||||
{ "favorite", "f 1EY v r IX t" }, { "food", "f 1UW d" },
|
||||
{ "voice", "v 1OY s" }, { "phone", "f 1OW n" }, { "modem", "m 1OW d EH m" },
|
||||
{ "said", "s 1EH d" }, { "says", "s 1EH z" }, { "people", "p 1IY p AX l" },
|
||||
{ "there", "D EH r" }, { "their", "D EH r" }, { "what", "w 1AH t" },
|
||||
{ "where", "w 1EH r" }, { "who", "h 1UW" }, { "why", "w 1AY" },
|
||||
{ "they", "D EY" }, { "we", "w IY" }, { "me", "m IY" }, { "my", "m AY" },
|
||||
{ "he", "h IY" }, { "she", "S IY" }, { "or", "AO r" }, { "but", "b AH t" },
|
||||
{ "not", "n 1AA t" }, { "no", "n 1OW" }, { "yes", "y 1EH s" },
|
||||
{ "welcome", "w 1EH l k AX m" }, { "please", "p l 1IY z" },
|
||||
{ "thank", "T 1AE N k" }, { "thanks", "T 1AE N k s" },
|
||||
{ "sure", "S 1UH r" }, { "like", "l 1AY k" }, { "being", "b 1IY IH N" },
|
||||
{ "inside", "IH n s 1AY d" }, { "fancy", "f 1AE n s IY" },
|
||||
{ NULL, NULL },
|
||||
};
|
||||
@@ -0,0 +1,189 @@
|
||||
#!/usr/bin/env python3
|
||||
"""SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
Fetch the MacInTalk 3 voice files for synth/macintalk at build time.
|
||||
|
||||
Apple's files are not in this repository. This script downloads a Mac OS
|
||||
8.1 hard disk image from the Internet Archive, checks its SHA-256, finds
|
||||
the voice files in System Folder:Extensions:Voices on the disk's HFS
|
||||
volume, and writes each voice's two resources as plain files:
|
||||
|
||||
OUT/<voice>.ttvd the voice description (parameters, see
|
||||
docs/macintalk-format.md)
|
||||
OUT/<voice>.ttvw the voice's sampled sound, for the voices that
|
||||
have one (Bells, Boing, Cellos ...)
|
||||
|
||||
Only data is read. Nothing from the disk is run, and the MacinTalk 3
|
||||
extension itself (Apple's code) is not extracted.
|
||||
|
||||
Usage: tools/fetch-macintalk.py [OUT] (default: sources/macintalk)
|
||||
tools/fetch-macintalk.py --image FILE.hda|FILE.zip [OUT]
|
||||
|
||||
Needs only Python 3 (and about 1.1 GB of free disk while it runs).
|
||||
"""
|
||||
import hashlib
|
||||
import os
|
||||
import struct
|
||||
import sys
|
||||
import tempfile
|
||||
import urllib.request
|
||||
import zipfile
|
||||
|
||||
URL = ("https://archive.org/download/macos-8.1-basilisk-ii/"
|
||||
"macos-8.1-basilisk-ii-2026.10.1.zip")
|
||||
SHA256 = "ce6ee4ba5294182535d20bf6639f64415376e4420b3473167803315e615c97fa"
|
||||
VOICE_DIR = ("System Folder", "Extensions", "Voices")
|
||||
|
||||
|
||||
class HFS:
|
||||
"""Just enough of an HFS (Mac OS Standard) reader to get files out."""
|
||||
|
||||
def __init__(self, f, base=0):
|
||||
self.f, self.base = f, base
|
||||
mdb = self.read(base + 1024, 162)
|
||||
if mdb[:2] != b"BD":
|
||||
raise ValueError("not an HFS volume")
|
||||
self.blk = struct.unpack(">I", mdb[20:24])[0]
|
||||
self.start = struct.unpack(">H", mdb[28:30])[0] * 512
|
||||
size = struct.unpack(">I", mdb[146:150])[0]
|
||||
self.catalog = self.fork(struct.unpack(">6H", mdb[150:162]), size)
|
||||
|
||||
def read(self, off, n):
|
||||
self.f.seek(off)
|
||||
return self.f.read(n)
|
||||
|
||||
def fork(self, ext, size):
|
||||
out = b""
|
||||
for i in range(0, 6, 2):
|
||||
first, count = ext[i], ext[i + 1]
|
||||
if count:
|
||||
out += self.read(self.base + self.start + first * self.blk, count * self.blk)
|
||||
if len(out) < size:
|
||||
raise ValueError("fragmented fork (extents overflow) is not supported")
|
||||
return out[:size]
|
||||
|
||||
def records(self):
|
||||
"""Every leaf record of the catalog B-tree: (parent, name, data)."""
|
||||
cat = self.catalog
|
||||
node_size = struct.unpack(">H", cat[32:34])[0]
|
||||
node = struct.unpack(">I", cat[24:28])[0] # first leaf
|
||||
while node:
|
||||
n = cat[node * node_size:(node + 1) * node_size]
|
||||
flink = struct.unpack(">I", n[0:4])[0]
|
||||
nrec = struct.unpack(">H", n[10:12])[0]
|
||||
offs = [struct.unpack(">H", n[node_size - 2 * (i + 1):node_size - 2 * i])[0]
|
||||
for i in range(nrec)]
|
||||
for o in offs:
|
||||
klen = n[o]
|
||||
if klen == 0:
|
||||
continue
|
||||
parent = struct.unpack(">I", n[o + 2:o + 6])[0]
|
||||
name = n[o + 7:o + 7 + n[o + 6]].decode("mac_roman")
|
||||
d = o + 1 + klen
|
||||
d += d & 1
|
||||
yield parent, name, n[d:]
|
||||
node = flink
|
||||
|
||||
def find(self, path):
|
||||
"""{name: (type, creator, data fork, resource fork)} of a folder."""
|
||||
dirs, files = {}, {}
|
||||
for parent, name, d in self.records():
|
||||
if d[0] == 1:
|
||||
dirs[(parent, name)] = struct.unpack(">I", d[6:10])[0]
|
||||
elif d[0] == 2:
|
||||
files.setdefault(parent, {})[name] = d
|
||||
cur = 2 # the root folder
|
||||
for comp in path:
|
||||
match = [k for k in dirs if k[0] == cur and k[1] == comp]
|
||||
if not match:
|
||||
raise KeyError(":".join(path))
|
||||
cur = dirs[match[0]]
|
||||
out = {}
|
||||
for name, d in files.get(cur, {}).items():
|
||||
ftype, creator = d[4:8], d[8:12]
|
||||
dsize = struct.unpack(">I", d[26:30])[0]
|
||||
rsize = struct.unpack(">I", d[36:40])[0]
|
||||
dext = struct.unpack(">6H", d[74:86])
|
||||
rext = struct.unpack(">6H", d[86:98])
|
||||
out[name] = (ftype, creator, self.fork(dext, dsize), self.fork(rext, rsize))
|
||||
return out
|
||||
|
||||
|
||||
def resources(fork):
|
||||
"""{(type, id): (name, data)} from a resource fork."""
|
||||
if len(fork) < 16:
|
||||
return {}
|
||||
doff, moff = struct.unpack(">II", fork[:8])
|
||||
m = fork[moff:]
|
||||
tlo, nlo = struct.unpack(">HH", m[24:28])
|
||||
tl = m[tlo:]
|
||||
out = {}
|
||||
for i in range(struct.unpack(">H", tl[:2])[0] + 1):
|
||||
rtype, cnt, rlo = struct.unpack(">4sHH", tl[2 + 8 * i:10 + 8 * i])
|
||||
for j in range(cnt + 1):
|
||||
r = tl[rlo + 12 * j:rlo + 12 * j + 12]
|
||||
rid, noff = struct.unpack(">hH", r[:4])
|
||||
off = struct.unpack(">I", b"\0" + r[5:8])[0]
|
||||
size = struct.unpack(">I", fork[doff + off:doff + off + 4])[0]
|
||||
name = None
|
||||
if noff != 0xFFFF:
|
||||
p = m[nlo + noff:]
|
||||
name = p[1:1 + p[0]].decode("mac_roman")
|
||||
out[(rtype.decode("mac_roman"), rid)] = (name, fork[doff + off + 4:doff + off + 4 + size])
|
||||
return out
|
||||
|
||||
|
||||
def voice_id(name):
|
||||
return name.lower().replace(" ", "-")
|
||||
|
||||
|
||||
def extract(hda, out):
|
||||
with open(hda, "rb") as f:
|
||||
vol = HFS(f)
|
||||
voices = vol.find(VOICE_DIR)
|
||||
os.makedirs(out, exist_ok=True)
|
||||
n = 0
|
||||
for name, (ftype, creator, _, rsrc) in sorted(voices.items()):
|
||||
if ftype != b"ttvf" or creator != b"mtk3":
|
||||
continue # only MacinTalk 3 voices
|
||||
res = resources(rsrc)
|
||||
for (rtype, _), (_, data) in res.items():
|
||||
if rtype in ("ttvd", "ttvw"):
|
||||
with open(os.path.join(out, voice_id(name) + "." + rtype), "wb") as o:
|
||||
o.write(data)
|
||||
n += 1
|
||||
print("voice", name)
|
||||
return n
|
||||
|
||||
|
||||
def main(argv):
|
||||
image = None
|
||||
if argv[:1] == ["--image"]:
|
||||
image, argv = argv[1], argv[2:]
|
||||
out = argv[0] if argv else os.path.join("sources", "macintalk")
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
if image is None:
|
||||
image = os.path.join(out, "macos-8.1.zip")
|
||||
os.makedirs(out, exist_ok=True)
|
||||
if not os.path.exists(image):
|
||||
print("fetch", URL)
|
||||
urllib.request.urlretrieve(URL, image + ".part")
|
||||
os.rename(image + ".part", image)
|
||||
h = hashlib.sha256()
|
||||
with open(image, "rb") as f:
|
||||
for b in iter(lambda: f.read(1 << 20), b""):
|
||||
h.update(b)
|
||||
if h.hexdigest() != SHA256:
|
||||
sys.exit("%s: SHA-256 mismatch" % image)
|
||||
if zipfile.is_zipfile(image):
|
||||
with zipfile.ZipFile(image) as z:
|
||||
member = [i for i in z.namelist() if i.endswith((".hda", ".dsk", ".img"))][0]
|
||||
print("unpack", member)
|
||||
image = z.extract(member, tmp)
|
||||
if not extract(image, out):
|
||||
sys.exit("no MacinTalk 3 voices found")
|
||||
print("voices in", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main(sys.argv[1:])
|
||||
+56
-6
@@ -12,8 +12,9 @@ Usage: tools/synth_voices.py OUT VOICE... (OUT is normally ./voices)
|
||||
|
||||
--live writes a live voice instead (mode=tts, live-<engine>-<voice>): no
|
||||
clips, the module runs the synthesiser on the Asterisk machine for each
|
||||
sentence as it is needed (dectalk and sam only; tts_program_dectalk and
|
||||
tts_program_sam in speakingclock.conf say where they are).
|
||||
sentence as it is needed (dectalk, sam and macintalk only;
|
||||
tts_program_dectalk, tts_program_sam and tts_program_macintalk in
|
||||
speakingclock.conf say where they are).
|
||||
|
||||
Engines (a VOICE is engine:name, see --list):
|
||||
sapi4 Microsoft Speech API 4 voices (Microsoft Sam, Mike, Mary,
|
||||
@@ -26,6 +27,10 @@ Engines (a VOICE is engine:name, see --list):
|
||||
https://github.com/s-macke/SAM. $SAM is its `sam` program.
|
||||
mac MacInTalk / PlainTalk voices, with macOS's own `say` (run this
|
||||
on a Mac).
|
||||
macintalk The MacInTalk 3 voices (Fred, Ralph, Kathy, Zarvox ...) spoken
|
||||
by our own synthesiser, synth/macintalk, from Apple's voice data
|
||||
(tools/fetch-macintalk.py gets it). $MACINTALK is its program,
|
||||
$MACINTALK_VOICES the voice folder. Works with --live.
|
||||
|
||||
Needs ffmpeg and sox.
|
||||
"""
|
||||
@@ -133,6 +138,30 @@ MAC_FAMILY = {
|
||||
}
|
||||
MAC = {v: f for f, vs in MAC_FAMILY.items() for v in vs}
|
||||
|
||||
# The MacInTalk 3 voices of Mac OS 8.1, spoken by synth/macintalk.
|
||||
# id: (name, what the voice is like)
|
||||
MACINTALK = {
|
||||
"fred": ("Fred", "the standard male voice"),
|
||||
"ralph": ("Ralph", "a deep male voice"),
|
||||
"kathy": ("Kathy", "the standard female voice"),
|
||||
"junior": ("Junior", "a boy's voice"),
|
||||
"princess": ("Princess", "a girl's voice"),
|
||||
"zarvox": ("Zarvox", "a robot"),
|
||||
"trinoids": ("Trinoids", "aliens speaking together"),
|
||||
"whisper": ("Whisper", "a whisper"),
|
||||
"albert": ("Albert", "a frog in the throat"),
|
||||
"bahh": ("Bahh", "a bleating lamb"),
|
||||
"bells": ("Bells", "spoken by bells"),
|
||||
"boing": ("Boing", "spoken by a spring"),
|
||||
"bubbles": ("Bubbles", "speaking under water"),
|
||||
"cellos": ("Cellos", "sung by cellos, to In the Hall of the Mountain King"),
|
||||
"pipe-organ": ("Pipe Organ", "sung by a pipe organ"),
|
||||
"good-news": ("Good News", "sung to Pomp and Circumstance"),
|
||||
"bad-news": ("Bad News", "sung to Chopin's funeral march"),
|
||||
"deranged": ("Deranged", "an unhinged voice"),
|
||||
"hysterical": ("Hysterical", "speaking through laughter"),
|
||||
}
|
||||
|
||||
last_request = [0.0]
|
||||
|
||||
|
||||
@@ -194,6 +223,15 @@ def mac(vid, text, out):
|
||||
os.unlink(aiff)
|
||||
|
||||
|
||||
def macintalk(vid, text, out):
|
||||
prog = os.environ.get("MACINTALK", os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__)), "..", "synth", "macintalk", "macintalk"))
|
||||
cmd = [prog, "-v", vid, "-o", out, text]
|
||||
if os.environ.get("MACINTALK_VOICES"):
|
||||
cmd[1:1] = ["-d", os.environ["MACINTALK_VOICES"]]
|
||||
subprocess.run(cmd, check=True)
|
||||
|
||||
|
||||
ENGINES = {
|
||||
"sapi4": (sapi4, SAPI4, lambda v: (SAPI4[v][3], SAPI4[v][4]),
|
||||
"Microsoft Speech API 4 runtime and voices, spoken by https://www.tetyys.com/SAPI4/"),
|
||||
@@ -205,6 +243,11 @@ ENGINES = {
|
||||
"Apple PlainTalk (MacinTalk Pro) voice" if MAC[v] == "PlainTalk"
|
||||
else "Apple MacInTalk 3 voice"),
|
||||
"Apple MacInTalk / PlainTalk, spoken by macOS's say"),
|
||||
"macintalk": (macintalk, MACINTALK,
|
||||
lambda v: ("MacInTalk %s" % MACINTALK[v][0],
|
||||
"MacInTalk 3 voice (%s)" % MACINTALK[v][1]),
|
||||
"synth/macintalk (this repository, clean-room) reading Apple's "
|
||||
"MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py"),
|
||||
}
|
||||
|
||||
|
||||
@@ -245,11 +288,18 @@ def build_live(out_dir, engine, vid):
|
||||
if engine == "dectalk":
|
||||
how = 'command={program:dectalk} -fo {out} -a "[:%s] {text}"' % DECTALK[vid][0]
|
||||
by = "DECtalk's say, run here (tts_program_dectalk)"
|
||||
elif engine == "macintalk":
|
||||
how = 'command={program:macintalk} -v %s -o {out} "{text}"' % vid
|
||||
by = "synth/macintalk, run here (tts_program_macintalk)"
|
||||
else:
|
||||
speed, pitch, mouth, throat = SAM[vid][:4]
|
||||
how = ("command={program:sam} -wav {out} -speed %d -pitch %d -mouth %d -throat %d \"{text}\""
|
||||
% (speed, pitch, mouth, throat))
|
||||
by = "SAM, run here (tts_program_sam)"
|
||||
owners = "The synthesiser belongs to its owners"
|
||||
if engine == "macintalk":
|
||||
owners = ("The synthesiser is ours; the voice data it reads is Apple's and is\n"
|
||||
"; not in this repository (tools/fetch-macintalk.py downloads it)")
|
||||
text = "At the third stroke, it will be {hour} {minute} {seconds}."
|
||||
d = os.path.join(out_dir, "live-%s-%s" % (engine, vid.lower().replace(" ", "-")))
|
||||
os.makedirs(d, exist_ok=True)
|
||||
@@ -257,11 +307,11 @@ def build_live(out_dir, engine, vid):
|
||||
f.write("; Live voice for app_speakingclock (docs/voice-format.md), made by\n"
|
||||
"; tools/synth_voices.py --live %s:%s. Each sentence is spoken when\n"
|
||||
"; it is needed, by %s.\n"
|
||||
"; The synthesiser belongs to its owners; see NOTICE.md.\n\n"
|
||||
"; %s; see NOTICE.md.\n\n"
|
||||
"[voice]\nname=%s, live\ndescription=%s, spoken live\n"
|
||||
"mode=tts\nsequence=speech+pips\nperiod=10\n\n[tts]\n%s\ntext=%s\n"
|
||||
"\n[source]\nengine=%s\nvoice=%s\nsynthesiser=%s\n"
|
||||
% (engine, vid, by, name, desc, how, text, engine, vid, ENGINES[engine][3]))
|
||||
% (engine, vid, by, owners, name, desc, how, text, engine, vid, ENGINES[engine][3]))
|
||||
assert vid in table
|
||||
print(d)
|
||||
|
||||
@@ -270,8 +320,8 @@ def main():
|
||||
if len(sys.argv) > 2 and sys.argv[1] == "--live":
|
||||
for spec in sys.argv[3:]:
|
||||
engine, _, vid = spec.partition(":")
|
||||
if engine not in ("dectalk", "sam") or vid not in ENGINES[engine][1]:
|
||||
sys.exit("--live takes dectalk and sam voices (see --list)")
|
||||
if engine not in ("dectalk", "sam", "macintalk") or vid not in ENGINES[engine][1]:
|
||||
sys.exit("--live takes dectalk, sam and macintalk voices (see --list)")
|
||||
build_live(sys.argv[2], engine, vid)
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
from voice_index import write_index
|
||||
|
||||
@@ -50,6 +50,25 @@ Written by tools/voice_index.py. Every recording belongs to its original owner (
|
||||
| `live-dectalk-rita` | DECtalk Rough Rita, live | tts | dectalk synthesiser |
|
||||
| `live-dectalk-ursula` | DECtalk Uppity Ursula, live | tts | dectalk synthesiser |
|
||||
| `live-dectalk-wendy` | DECtalk Whispering Wendy, live | tts | dectalk synthesiser |
|
||||
| `live-macintalk-albert` | MacInTalk Albert, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-bad-news` | MacInTalk Bad News, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-bahh` | MacInTalk Bahh, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-bells` | MacInTalk Bells, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-boing` | MacInTalk Boing, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-bubbles` | MacInTalk Bubbles, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-cellos` | MacInTalk Cellos, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-deranged` | MacInTalk Deranged, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-fred` | MacInTalk Fred, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-good-news` | MacInTalk Good News, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-hysterical` | MacInTalk Hysterical, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-junior` | MacInTalk Junior, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-kathy` | MacInTalk Kathy, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-pipe-organ` | MacInTalk Pipe Organ, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-princess` | MacInTalk Princess, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-ralph` | MacInTalk Ralph, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-trinoids` | MacInTalk Trinoids, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-whisper` | MacInTalk Whisper, live | tts | macintalk synthesiser |
|
||||
| `live-macintalk-zarvox` | MacInTalk Zarvox, live | tts | macintalk synthesiser |
|
||||
| `live-sam-elf` | SAM Elf, live | tts | sam synthesiser |
|
||||
| `live-sam-extra-terrestrial` | SAM Extra-Terrestrial, live | tts | sam synthesiser |
|
||||
| `live-sam-little-old-lady` | SAM Little Old Lady, live | tts | sam synthesiser |
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:albert. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Albert, live
|
||||
description=MacInTalk 3 voice (a frog in the throat), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v albert -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=albert
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:bad-news. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Bad News, live
|
||||
description=MacInTalk 3 voice (sung to Chopin's funeral march), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v bad-news -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=bad-news
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:bahh. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Bahh, live
|
||||
description=MacInTalk 3 voice (a bleating lamb), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v bahh -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=bahh
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:bells. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Bells, live
|
||||
description=MacInTalk 3 voice (spoken by bells), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v bells -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=bells
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:boing. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Boing, live
|
||||
description=MacInTalk 3 voice (spoken by a spring), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v boing -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=boing
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:bubbles. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Bubbles, live
|
||||
description=MacInTalk 3 voice (speaking under water), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v bubbles -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=bubbles
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:cellos. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Cellos, live
|
||||
description=MacInTalk 3 voice (sung by cellos, to In the Hall of the Mountain King), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v cellos -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=cellos
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:deranged. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Deranged, live
|
||||
description=MacInTalk 3 voice (an unhinged voice), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v deranged -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=deranged
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:fred. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Fred, live
|
||||
description=MacInTalk 3 voice (the standard male voice), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v fred -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=fred
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:good-news. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Good News, live
|
||||
description=MacInTalk 3 voice (sung to Pomp and Circumstance), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v good-news -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=good-news
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:hysterical. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Hysterical, live
|
||||
description=MacInTalk 3 voice (speaking through laughter), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v hysterical -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=hysterical
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:junior. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Junior, live
|
||||
description=MacInTalk 3 voice (a boy's voice), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v junior -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=junior
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:kathy. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Kathy, live
|
||||
description=MacInTalk 3 voice (the standard female voice), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v kathy -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=kathy
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:pipe-organ. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Pipe Organ, live
|
||||
description=MacInTalk 3 voice (sung by a pipe organ), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v pipe-organ -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=pipe-organ
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:princess. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Princess, live
|
||||
description=MacInTalk 3 voice (a girl's voice), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v princess -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=princess
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:ralph. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Ralph, live
|
||||
description=MacInTalk 3 voice (a deep male voice), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v ralph -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=ralph
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:trinoids. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Trinoids, live
|
||||
description=MacInTalk 3 voice (aliens speaking together), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v trinoids -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=trinoids
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:whisper. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Whisper, live
|
||||
description=MacInTalk 3 voice (a whisper), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v whisper -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=whisper
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
@@ -0,0 +1,21 @@
|
||||
; Live voice for app_speakingclock (docs/voice-format.md), made by
|
||||
; tools/synth_voices.py --live macintalk:zarvox. Each sentence is spoken when
|
||||
; it is needed, by synth/macintalk, run here (tts_program_macintalk).
|
||||
; The synthesiser is ours; the voice data it reads is Apple's and is
|
||||
; not in this repository (tools/fetch-macintalk.py downloads it); see NOTICE.md.
|
||||
|
||||
[voice]
|
||||
name=MacInTalk Zarvox, live
|
||||
description=MacInTalk 3 voice (a robot), spoken live
|
||||
mode=tts
|
||||
sequence=speech+pips
|
||||
period=10
|
||||
|
||||
[tts]
|
||||
command={program:macintalk} -v zarvox -o {out} "{text}"
|
||||
text=At the third stroke, it will be {hour} {minute} {seconds}.
|
||||
|
||||
[source]
|
||||
engine=macintalk
|
||||
voice=zarvox
|
||||
synthesiser=synth/macintalk (this repository, clean-room) reading Apple's MacInTalk 3 voice data (Mac OS 8.1), fetched by tools/fetch-macintalk.py
|
||||
Reference in new issue
Block a user