mirror of
https://github.com/D-Modem/speaking-clock.git
synced 2026-11-28 12:38:05 -08:00
e83492942feefd28157731d0879b01682d9d59ff
Claude-Session: https://claude.ai/code/session_01B82eRREcvJwy7FPyndjKhK Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
speaking-clock
This is a telephone speaking clock for Asterisk, FreePBX and FreeSWITCH. It has these voices, and each voice can give the time to the second:
- TIM of the UK (Pat Simmons).
- Gordon Gow of Australia.
- All of the Steve's Talking Clock library of talking clocks and watches.
- Classic speech synthesisers: Microsoft Sam and the other SAPI4 voices, DECtalk, SAM, MacInTalk and PlainTalk.
The repository has these parts:
asterisk/:app_speakingclock, theSpeakingClock()dialplan application, written in C.freepbx/speakingclock/: a FreePBX module. Clocks are destinations, with optional numbers to dial.freeswitch/:mod_speakingclock, thespeakingclockdialplan application for FreeSWITCH, the same clock asSpeakingClock().core/: the clock itself, without a PBX (mod_speakingclock is built on it), andsclock-render, which writes the audio that a caller hears.voices/: the voices (INDEX, format).tools/: tools that download the original recordings and buildvoices/again.
The recordings in voices/ belong to their original owners, and are not
covered by the code's licence. Refer to NOTICE.md.
Quick start
make # the modules for the PBXs on this machine, the synthesisers and sclock-render
sudo make install # the modules, the configuration and the voices
make test # render 30 seconds of Pat Simmons with sclock-render
Then dial the clock from the dialplan:
exten => 123,1,SpeakingClock(tim-pat-simmons,t(Europe/London))
The clock keeps to the system clock to the sample. Thus, keep the system clock on NTP (How it keeps time).
Documentation
- Building and installing: the options of
make, and the voice data that it downloads - Asterisk:
SpeakingClock(), its options and the CLI commands - FreeSWITCH:
mod_speakingclockand its API - FreePBX: the module, and clocks as destinations
- Live voices: DECtalk, SAM, MacInTalk, PlainTalk and Microsoft Sam, spoken at each announcement
- Rebuilding the voices: the source recordings and the synthesiser voices
- Voice format, MacInTalk format, PlainTalk format, Microsoft Sam format
- Documentation style: the rules for ASD-STE100 Simplified Technical English
Licence
The code is under the GPL, version 2 or (at your option) any later version, so that Asterisk (GPL-2.0) can load the module. Refer to LICENSE. The recordings are not covered by it. Refer to NOTICE.md.
Languages
C
66.7%
Python
16.9%
PHP
12.4%
Makefile
3.4%
Shell
0.4%
Other
0.2%