Commit Graph
16 Commits
Author SHA1 Message Date
Claude 5034ea7e4f macintalk: keep the release of b, d and g in the PlainTalk voices
In Victoria high quality (and others) a b before r has no burst, only a
quick start of voicing; stretching it with the rest of the sound made it
a glide, and "brown" was heard as "own". The voiced stops are now put
out as recorded, with their length made up in the closure. Word error
rate over the test sentences: 17.9% to 17.0%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRAKCKq1gSHpownvFE
2026-11-11 03:21:32 +00:00
Claude 9b385d477b macintalk: say ch and j in the PlainTalk voices
They had no wave-phoneme, so they came out as silence ("jumps" as
"umps"). The voices make them of t and sh, d and zh: the stop takes
the phoneme's closure segment and the hiss the rest. Word error rate
over the test sentences falls from 23% to 18%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRAKCKq1gSHpownvFE
2026-11-11 02:57:18 +00:00
Claude 4478561f81 Merge remote-tracking branch 'origin/claude/project-thread-cuc3tg' into claude/project-thread-wfvhny 2026-11-11 02:53:28 +00:00
Claude 3a0aad5e8b macintalk: PlainTalk high quality voices
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
2026-11-11 02:53:23 +00:00
Claude 4ac0a3a92f mssam: tone correction for Sam
Measured against Sam's own recordings of the clock's phrases, our Sam
was 3-6 dB too dark above 2.5 kHz (Mike and Mary were not). A
linear-phase correction for Sam only brings it within about 1 dB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVXG9MBYPxmcs9cFxs
2026-11-11 02:49:04 +00:00
Claude 04936f13a5 Merge remote-tracking branch 'origin/claude/project-thread-cuc3tg' into claude/project-thread-wfvhny 2026-11-11 02:44:04 +00:00
Claude 94b78e7944 plaintalk: join the recordings with PSOLA; less phrase-final slowing
A PlainTalk unit is one continuous stretch of sound cut into frames of N
samples, and the lag byte plus N - 1 is the pitch period (it matches the
recorded period lengths). The frames were being treated as one pitch
period each and resampled, which clicked at every frame: the crackle.
Units are now decoded as a signal (the short last frame too), the recorded
period lengths are its pitch marks, and TD-PSOLA sets each phoneme's
pitch and length. A 6 kHz low-pass takes off the hiss of the 2-bit coding.

The PlainTalk voices also slow down and fall much less at the end of a
phrase (final_k).

Whisper base.en word errors over ten sentences: 36% before, 28% now
(Agnes 17%, Bruce and Victoria 34%).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRAKCKq1gSHpownvFE
2026-11-11 02:44:04 +00:00
Claude fb22a2eb54 mssam: steadier pitch pulses, closer loudness
The stored pitch pulses vary much more from one to the next than Sam's
own speech (how alike neighbouring periods are: 0.41 against Sam's 0.62),
which sounds rough; each pulse is now blended with the one before (0.57).
The gap between loud vowels and quiet consonants is narrowed a little
(ours were about 4 dB quieter than Sam's). Speech recognition's
confidence on Sam's clock phrases goes from -0.83 to -0.69 (Sam's own
recordings: -0.66).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVXG9MBYPxmcs9cFxs
2026-11-11 02:41:50 +00:00
Claude 89539bd487 mssam: Sam's own pitch shape, smoother joins
The pitch now follows the shape of Sam's recordings: a phrase starts near
100 Hz, the first stressed word rises above it, and it sinks to about
73 Hz at the end, instead of stepping between fixed tones. A unit's first
frames lean toward the loudness of the unit before (joins jumped about
three times as much as frames inside a unit), and stored pitch periods
are resampled through their spectrum. Speech recognition is surer of the
result on Sam's clock phrases and on other sentences.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVXG9MBYPxmcs9cFxs
2026-11-11 02:10:30 +00:00
Claude 7608dfcede Merge remote-tracking branch 'origin/claude/project-thread-cuc3tg' into claude/project-thread-wfvhny 2026-11-11 01:58:09 +00:00
Claude 24d168474c macintalk: speak the PlainTalk voices Agnes, Bruce and Victoria
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
2026-11-11 01:58:08 +00:00
Claude 9f2ff99b11 mssam: sharper sound, and Mike and Mary for telephone
Our output had about 10 dB less treble than the voices' recordings, which
made S, F and T dull; a treble lift on the output now matches it. The
spectrum also glides between frames instead of jumping. Adds the 8 kHz
telephone voices (male8.vce and female8.vce) as mike-tel and mary-tel,
with live-mssam-mike-tel and live-mssam-mary-tel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVXG9MBYPxmcs9cFxs
2026-11-11 01:36:59 +00:00
Claude 3c82d468a4 Merge remote-tracking branch 'origin/claude/project-thread-cuc3tg' into claude/project-thread-wfvhny
# Conflicts:
#	.gitignore
#	tools/synth_voices.py
#	voices/INDEX.md
2026-11-11 01:23:20 +00:00
Claude 494ef8f23c Add mssam, our own synthesiser for the Microsoft Sam, Mike and Mary voices
synth/mssam reads the voice data of Microsoft's Speech API 4 voices and
speaks with it: the voice's context trees pick a recorded unit for each
sound, and the units are joined with new pitch (from the voice's tone
table) and timing. No Microsoft code is used or run. tools/fetch-mssam.py
downloads msttsl.exe at build time and keeps only the voice data.
docs/mssam-format.md describes the data. Adds live-mssam-sam, -mike and
-mary, and an mssam engine in tools/synth_voices.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVXG9MBYPxmcs9cFxs
2026-11-11 01:22:39 +00:00
Claude 2a318c3f12 macintalk: stronger sh, ch and stop bursts, reduce unstressed final EH
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRAKCKq1gSHpownvFE
2026-11-11 01:16:16 +00:00
Claude 9d410c9c6c 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
2026-11-11 01:10:13 +00:00