Files
Claude 4b672939d6 Add mod_speakingclock for FreeSWITCH
The speakingclock dialplan application: the same voices, options and
second-accurate timing as Asterisk's SpeakingClock(), including the live
synthesiser voices (mode=tts).

- core/: the clock itself, ported from app_speakingclock with Asterisk's
  APIs taken out (libc, libm and pthreads only), and sclock-render, which
  writes what a caller would hear without a PBX.  Its output matches
  Asterisk's "speakingclock render" sample for sample.
- freeswitch/: mod_speakingclock, its Makefile, speakingclock.conf.xml
  and a dialplan example.  API: speakingclock voices | render | reload.
- test/render_test.py runs against FreeSWITCH with PBX=freeswitch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRNr2N8eMYr1uzZqwk
2026-11-11 04:21:38 +00:00

35 lines
1.4 KiB
XML

<!-- Speaking clocks for FreeSWITCH's dialplan: put these in a context,
e.g. as dialplan/default/00_speakingclock.xml for the default context. -->
<include>
<!-- the UK's TIM: "At the third stroke it will be ..." -->
<extension name="speakingclock_tim">
<condition field="destination_number" expression="^123$">
<action application="speakingclock" data="tim-pat-simmons t(Europe/London)"/>
</condition>
</extension>
<!-- Australia's Gordon Gow -->
<extension name="speakingclock_gordon_gow">
<condition field="destination_number" expression="^1194$">
<action application="speakingclock" data="tim-gordon-gow t(Australia/Sydney)"/>
</condition>
</extension>
<!-- POPCORN: five minutes, then hang up -->
<extension name="speakingclock_popcorn">
<condition field="destination_number" expression="^767$">
<action application="speakingclock" data="atandt-mike t(America/Los_Angeles)d(300)"/>
</condition>
</extension>
<!-- Microsoft Sam, spoken live by synth/mssam. A key press ends it and
the dialplan goes on (the channel variable speakingclock_key holds
the key). -->
<extension name="speakingclock_sam">
<condition field="destination_number" expression="^1236$">
<action application="speakingclock" data="live-mssam-sam t(Europe/London)x"/>
<action application="hangup"/>
</condition>
</extension>
</include>