Commit Graph
12 Commits
Author SHA1 Message Date
Claude ada98a0504 mssam: clearer Sam with a formant postfilter; softer pauses and period ends
Sam gets a codec-style postfilter, A(z/0.5)/A(z/0.75) with its tilt taken
back out, which clears the haze between formants.  The filter now rings out
into pauses, a shortened pitch period fades over its last eighth, and the
compressor's level window is 40 ms so it does not ripple at pitch rate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVXG9MBYPxmcs9cFxs
2026-11-11 02:58:48 +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 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 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 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 ada00bab6c Add the PlainTalk voices to synth_voices.py
Victoria, Agnes, Bruce and Vicki (MacinTalk Pro) join the MacinTalk 3
voices, and a mac: voice the Mac doesn't have stops with a clear message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVXG9MBYPxmcs9cFxs
2026-11-11 00:26:21 +00:00
Claude 08aaae8304 Add the L&H Reed and Jane SAPI4 voices, and update the index
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVXG9MBYPxmcs9cFxs
2026-11-11 00:16:19 +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
Neo 2eb77a4e25 Merge pull request #1 from D-Modem/claude/project-thread-cuc3tg
Speaking clock for Asterisk and FreePBX, with 81 voices
2026-11-10 15:21:53 -08: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
Neo 8b117c27ce Initial commit 2026-11-10 09:25:20 -08:00