Files
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

33 lines
1.6 KiB
PHP

<?php
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2026 D-Modem Authors
//
// views/settings.php - speakingclock.conf's settings. Given $s, $errors,
// $voices.
if (!defined('FREEPBX_IS_AUTH')) {
die('No direct script access allowed');
}
use FreePBX\modules\Speakingclock as S;
include __DIR__ . '/_form.php';
?>
<form class="fpbx-submit" name="speakingclock_settings" method="post"
action="config.php?display=speakingclock&amp;view=settings">
<input type="hidden" name="action" value="save_settings">
<?php
$row('voicedir', _('Voice folder'), $text('voicedir', $s['voicedir']),
_('Where the voice folders are: Asterisk\'s sounds/speaking-clock once make install has run.'));
$row('default_voice', _('Default voice'), $select('default_voice', $s['default_voice'], $voiceOptions($voices, $s['default_voice'])),
_('For SpeakingClock() with no voice, and for new clocks.'));
$row('timezone', _('Default time zone'), $zone('timezone', $s['timezone'], _('The system\'s')),
_('For clocks without one of their own.'));
$row('maxduration', _('Hang up after (seconds)'), $text('maxduration', $s['maxduration']),
_('How long a call may listen, 0 for no limit.'));
$row('tts_program_dectalk', _('DECtalk program'), $text('tts_program_dectalk', $s['tts_program_dectalk']),
_('For the live DECtalk voices (live-dectalk-*): DECtalk\'s say, run on this machine. Blank: dectalk on the PATH.'));
$row('tts_program_sam', _('SAM program'), $text('tts_program_sam', $s['tts_program_sam']),
_('For the live SAM voices (live-sam-*): the sam program, run on this machine. Blank: sam on the PATH.'));
?>
</form>