6 Commits
Author SHA1 Message Date
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 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 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
Claude 77f1e53aaf Add synthesiser voices and a live speech mode
- tools/synth_voices.py makes clip voices from speech synthesisers
  (SAPI4 via tetyys.com, DECtalk, SAM, MacInTalk), and live voices.
- Eight SAPI4 clip voices: Microsoft Sam, Mike, Mary, Mike for
  Telephone, BonziBUDDY, TruVoice male and female, RoboSoft One.
- mode=tts: the module runs a synthesiser program on the Asterisk
  machine for each announcement's whole sentence, in a worker thread
  and ahead of time, so a call never waits on it. live-dectalk-* and
  live-sam-* voices; tts_program_* and tts_timeout settings, also in
  the FreePBX module.
- module reload now rereads the voices even when speakingclock.conf
  is unchanged.
- tools/voice_index.py writes voices/INDEX.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVXG9MBYPxmcs9cFxs
2026-11-11 00:07:15 +00:00
Claude ea49d36dad Speaking clock for Asterisk and FreePBX, with 81 voices
app_speakingclock adds SpeakingClock(), which places each announcement by
sample against the system clock, so the time mark (the third pip) lands on
the second it announces, as on the real machines. Voices are folders of
8 kHz WAV clips with a voice.conf; the module supports TIM-style
(phrase, hour, minute, seconds, pips), talking-clock, chime and hourly
voices.

voices/ holds the asterisk-tim pair (Pat Simmons, Gordon Gow), garrysblog's
Amy and Celine, and the Steve's Talking Clock library, converted by
tools/build_voices.py from what tools/fetch-sources.sh downloads. The
recordings belong to their original owners (NOTICE.md); the code is
GPL-2.0-or-later.

freepbx/speakingclock is a FreePBX module: clocks as destinations, with
optional numbers to dial, and speakingclock.conf from its settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVXG9MBYPxmcs9cFxs
2026-11-10 17:41:05 +00:00