mirror of
https://github.com/D-Modem/speaking-clock.git
synced 2026-11-28 20:48:04 -08:00
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
35 lines
1023 B
PHP
35 lines
1023 B
PHP
<?php
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
// Copyright (C) 2026 D-Modem Authors
|
|
//
|
|
// views/voices.php - the voices in the voice folder. Given $voices, $dir.
|
|
|
|
if (!defined('FREEPBX_IS_AUTH')) {
|
|
die('No direct script access allowed');
|
|
}
|
|
use FreePBX\modules\Speakingclock as S;
|
|
?>
|
|
<p class="text-muted">
|
|
<?php echo _('The recordings belong to their original owners and are not covered by the module\'s licence: see NOTICE.md in the voice folder.'); ?>
|
|
</p>
|
|
<table class="table table-striped" id="speakingclock-voices">
|
|
<thead>
|
|
<tr>
|
|
<th><?php echo _('Voice'); ?></th>
|
|
<th><?php echo _('Name'); ?></th>
|
|
<th><?php echo _('Kind'); ?></th>
|
|
<th><?php echo _('Description'); ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($voices as $id => $v): ?>
|
|
<tr>
|
|
<td><code><?php echo S::h($id); ?></code></td>
|
|
<td><?php echo S::h($v['name']); ?></td>
|
|
<td><?php echo S::h($v['mode']); ?></td>
|
|
<td><?php echo S::h($v['description']); ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|