Agnes, Bruce and Victoria high quality now decode and speak: their units
are on 8-byte boundaries and their codebook has 2-sample vectors. The
fetch script keeps them (as agnes-hq.gtss and so on), with live voices
live-plaintalk-*-hq.
Unit offsets above 0xffff were skipped when counting units, which put
the period lists out of step with the units in every voice; fixing that
brings the recogniser's word error rate down from about 30% to 23%.
The base pitch is now the median recorded period, not header word 1
(70 in Victoria high quality, which is wrong).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRAKCKq1gSHpownvFE
The PlainTalk (MacinTalk Pro) voices are recorded diphones. plaintalk.c
reads a voice's 'gtss' 3 data: the two 50 x 50 diphone tables, the
period lengths, the codebook, and the coded periods, each the signal a
period plus a lag back plus gain times codebook vectors. It joins the
half-diphones with the text front end, timing and pitch macintalk already
has. docs/plaintalk-format.md describes the data; no Apple code is used.
tools/fetch-macintalk.py also fetches a Mac OS 8.6 disk image from the
Internet Archive (pinned by SHA-256; it needs unar or unrar to unpack) and
writes agnes.gtss, bruce.gtss and victoria.gtss. The high quality voices
are coded differently and are left out for now.
tools/synth_voices.py gets a plaintalk engine, and voices/ the three
live-plaintalk-* voices. Whisper (base.en) gets the clock sentence word
for word from all three; over ten test sentences about 30-40% of words
are wrong.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRAKCKq1gSHpownvFE
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