diff --git a/.gitignore b/.gitignore
index bb2eb1c..354318b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
asterisk/app_speakingclock.so
/sources/
__pycache__/
+synth/mssam/mssam
diff --git a/NOTICE.md b/NOTICE.md
index 114f6e0..d7f46e4 100644
--- a/NOTICE.md
+++ b/NOTICE.md
@@ -63,3 +63,36 @@ subject to the terms of the engines that produced them.
From [garrysblog/Speaking-Clock-MP3-Files](https://github.com/garrysblog/Speaking-Clock-MP3-Files),
made with an online text-to-speech service for an Arduino clock. Its README
says the files are "free to download and use in your own projects".
+
+### Speech synthesisers (`voices/sapi4-*`, `voices/dectalk-*`, `voices/sam-*`, `voices/mac-*`)
+Made by `tools/synth_voices.py`, which has each synthesiser speak every
+phrase and number the clock needs. The synthesisers, and the sound of their
+voices, belong to their owners:
+
+- **SAPI4 voices** (`sapi4-*`): Microsoft Sam, Mike and Mary (Microsoft
+ Speech API 4.0), Lernout & Hauspie TruVoice and TTS3000, and RoboSoft.
+ They were spoken by the public SAPI4 service at ,
+ which runs Microsoft's SAPI4 runtime and voices. Microsoft, Lernout &
+ Hauspie and BonziBUDDY are trademarks of their owners. The `bonzibuddy`
+ voice is TruVoice Adult Male #2 at the pitch and speed BonziBUDDY used.
+ The live voices (`live-*`) hold no recordings: each sentence is spoken
+ when it is needed, by DECtalk or SAM on the Asterisk machine.
+- **Microsoft Sam, Mike and Mary (and for telephone), live** (`live-mssam-*`): no recordings.
+ Each sentence is spoken on the Asterisk machine by `synth/mssam`, our own
+ synthesiser (GPL-2.0-or-later, like the rest of this repository), which
+ reads the voice data of Microsoft's Speech API 4 voices. That data is
+ Microsoft's and is not in this repository: `tools/fetch-mssam.py`
+ downloads Microsoft's package (msttsl.exe) from the Internet Archive and
+ keeps only the voice data, none of Microsoft's programs. Microsoft is a
+ trademark of Microsoft Corporation. The word list in
+ `synth/mssam/lexicon.h`, and the `cmudict.dict` the fetch script
+ downloads, are from the CMU Pronouncing Dictionary, © 1993-2015 Carnegie
+ Mellon University, under its BSD-style licence (in `lexicon.h`).
+- **DECtalk** (`dectalk-*`): DECtalk 4.x, made by Digital Equipment
+ Corporation and later Fonix. Built from the source at
+ .
+- **SAM** (`sam-*`): Software Automatic Mouth, Don't Ask Software, 1982 (now
+ SoftVoice, Inc.). Built from the C port at .
+- **MacInTalk and PlainTalk** (`mac-*`): Apple's voices (MacinTalk 3, and
+ the PlainTalk MacinTalk Pro voices Victoria, Agnes, Bruce and Vicki),
+ spoken by macOS's `say`.
diff --git a/README.md b/README.md
index fdaa71e..868bf3f 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,10 @@
# speaking-clock
-A telephone speaking clock for Asterisk and FreePBX, with 81 voices: the UK's
-TIM (Pat Simmons), Australia's Gordon Gow, and the whole Steve's Talking
-Clock library of talking clocks, watches and speech synthesisers.
+A telephone speaking clock for Asterisk and FreePBX. Its voices include the
+UK's TIM (Pat Simmons), Australia's Gordon Gow, the whole Steve's Talking
+Clock library of talking clocks and watches, and classic speech synthesisers
+(Microsoft Sam and the other SAPI4 voices, DECtalk, SAM, MacInTalk, PlainTalk), each
+able to give the time to the second.
- **`asterisk/`**: `app_speakingclock`, the `SpeakingClock()` dialplan
application, written in C.
@@ -66,6 +68,28 @@ Asterisk logs "Couldn't find application SpeakingClock in XML
documentation" because a module built outside Asterisk's tree has no XML
docs installed. The warning does no harm.
+## Live voices
+
+A voice with `mode=tts` has no clips. The module runs a synthesiser on the
+Asterisk machine for each announcement's whole sentence ("At the third
+stroke, it will be four fifteen and twenty seconds."), a little ahead of
+when it is needed, so the call never waits on it. The `live-dectalk-*` and
+`live-sam-*` voices run DECtalk's `say` and `sam`. Set where they are in
+speakingclock.conf:
+
+```
+tts_program_dectalk=/opt/dectalk/say
+tts_program_sam=/usr/local/bin/sam
+```
+
+The `live-mssam-*` voices (Microsoft Sam, Mike and Mary, and Mike and Mary
+for telephone) run
+[synth/mssam](synth/mssam), our own synthesiser, which reads Microsoft's
+voice data (`cd synth/mssam && make && make voices && sudo make install`
+builds it and fetches the data). Its setting is `tts_program_mssam`.
+
+See [docs/voice-format.md](docs/voice-format.md#live-voices-modetts).
+
## FreePBX
Pack `freepbx/speakingclock` into a tarball and install it with Module Admin
@@ -82,6 +106,21 @@ tools/fetch-sources.sh sources # curl, git, unzip, 7z or innoextract
tools/build_voices.py sources voices # ffmpeg
```
+The synthesiser voices come from `tools/synth_voices.py`. It has the
+synthesiser speak every clip on its own (a whole number, "and twenty
+seconds", "At the third stroke, it will be"), so they are `tim` voices that
+give the time to the second, with the module making the pips:
+
+```sh
+tools/synth_voices.py --list # the voices it knows
+tools/synth_voices.py voices sapi4:microsoft-sam # SAPI4, via tetyys.com
+DECTALK_SAY=~/dectalk/dist/say tools/synth_voices.py voices dectalk:paul
+SAM=~/SAM/sam tools/synth_voices.py voices sam:sam
+MSSAM=synth/mssam/mssam tools/synth_voices.py --live voices mssam:sam # live-mssam-sam
+tools/synth_voices.py voices mac:Fred # MacInTalk, on a Mac
+tools/synth_voices.py voices mac:Victoria # PlainTalk, on a Mac
+```
+
## Licence
The code is licensed under the GPL, version 2 or (at your option) any later
diff --git a/asterisk/app_speakingclock.c b/asterisk/app_speakingclock.c
index 54600c9..c9514f1 100644
--- a/asterisk/app_speakingclock.c
+++ b/asterisk/app_speakingclock.c
@@ -25,6 +25,10 @@
#include "asterisk.h"
#include
+#include
+#include
+#include
+#include
#include
#include
@@ -101,7 +105,7 @@
static const char app[] = "SpeakingClock";
-enum mode { MODE_TALKING, MODE_TIM, MODE_CHIME, MODE_HOURLY };
+enum mode { MODE_TALKING, MODE_TIM, MODE_CHIME, MODE_HOURLY, MODE_TTS };
struct clip {
char name[48];
@@ -117,6 +121,8 @@ struct voice {
int period; /* seconds */
double marker; /* seconds into the pips of the time mark, <0: none */
int int24; /* 24-hour clock */
+ char tts_command[512]; /* mode=tts: the program that speaks it */
+ char tts_text[512]; /* mode=tts: what to say */
size_t nclips;
struct clip clips[];
};
@@ -228,13 +234,15 @@ static enum mode mode_parse(const char *s)
return MODE_CHIME;
} else if (!strcasecmp(s, "hourly")) {
return MODE_HOURLY;
+ } else if (!strcasecmp(s, "tts")) {
+ return MODE_TTS;
}
return MODE_TALKING;
}
static const char *mode_name(enum mode m)
{
- static const char *names[] = { "talking", "tim", "chime", "hourly" };
+ static const char *names[] = { "talking", "tim", "chime", "hourly", "tts" };
return names[m];
}
@@ -296,6 +304,13 @@ static struct voice *voice_load(const char *dir, const char *id)
v->int24 = atoi(var->value) == 24;
}
}
+ for (var = ast_variable_browse(cfg, "tts"); var; var = var->next) {
+ if (!strcasecmp(var->name, "command")) {
+ ast_copy_string(v->tts_command, var->value, sizeof(v->tts_command));
+ } else if (!strcasecmp(var->name, "text")) {
+ ast_copy_string(v->tts_text, var->value, sizeof(v->tts_text));
+ }
+ }
ast_config_destroy(cfg);
}
@@ -319,13 +334,24 @@ static struct voice *voice_load(const char *dir, const char *id)
[MODE_TIM] = "phrase+hour+minute+seconds+pips",
[MODE_CHIME] = "quarter+strikes",
[MODE_HOURLY] = "hourly",
+ [MODE_TTS] = "speech+pips",
};
ast_copy_string(v->sequence, seq[v->mode], sizeof(v->sequence));
}
if (v->period <= 0) {
v->period = v->mode == MODE_CHIME ? 30 : 10;
}
- if (!v->nclips) {
+ if (v->mode == MODE_TTS) {
+ if (ast_strlen_zero(v->tts_text)) {
+ ast_copy_string(v->tts_text, "At the third stroke, it will be {hour} {minute} {seconds}.",
+ sizeof(v->tts_text));
+ }
+ if (ast_strlen_zero(v->tts_command)) {
+ ast_log(LOG_WARNING, "SpeakingClock: tts voice '%s' has no [tts] command=\n", id);
+ ao2_ref(v, -1);
+ return NULL;
+ }
+ } else if (!v->nclips) {
ast_log(LOG_WARNING, "SpeakingClock: voice '%s' has no usable clips\n", id);
ao2_ref(v, -1);
return NULL;
@@ -357,6 +383,499 @@ static struct voice *voice_get(const char *id)
return v;
}
+/* ---- live speech (mode=tts) -------------------------------------------- *
+ * A tts voice has no number clips. Each announcement's sentence is spoken
+ * whole by a synthesiser program on this machine (DECtalk, SAM), converted
+ * to 8 kHz, and cached. A worker thread runs the program, so a call never
+ * waits on it: the clock asks for an announcement two periods before it is
+ * due, and one whose speech isn't ready in time plays without it (pips
+ * only). */
+
+#define SPEECH_SLOTS 128
+#define SPEECH_RETRY 30 /* seconds before a failed fetch is tried again */
+#define SPEECH_MAX (8 << 20) /* largest WAV accepted */
+
+enum speech_state { SP_EMPTY, SP_WANTED, SP_FETCHING, SP_READY, SP_FAILED };
+
+struct speech {
+ char *key;
+ enum speech_state state;
+ int16_t *s;
+ size_t n;
+ time_t used, failed;
+ unsigned long seq; /* order asked for */
+};
+
+AST_MUTEX_DEFINE_STATIC(speech_lock);
+static ast_cond_t speech_cond; /* work for the fetcher, or a fetch done */
+static struct speech speech[SPEECH_SLOTS];
+static unsigned long speech_seq;
+static pthread_t speech_thread = AST_PTHREADT_NULL;
+static int speech_quit;
+#define TTS_PROGRAMS 32
+/* tts_program_ from speakingclock.conf */
+static struct { char name[48]; char path[256]; } tts_programs[TTS_PROGRAMS];
+static int ntts_programs;
+
+/* The tts__ setting, else def. */
+static void tts_setting(const char *kind, const char *name, size_t nlen, const char *def,
+ char *out, size_t len)
+{
+ char key[48];
+ int i;
+ snprintf(key, sizeof(key), "%s_%.*s", kind, (int) MIN(nlen, 30), name);
+ ast_copy_string(out, def, len);
+ ast_mutex_lock(&conf_lock);
+ for (i = 0; i < ntts_programs; i++) {
+ if (!strcasecmp(tts_programs[i].name, key)) {
+ ast_copy_string(out, tts_programs[i].path, len);
+ }
+ }
+ ast_mutex_unlock(&conf_lock);
+}
+static int tts_timeout = 15;
+
+/* Windowed-sinc resampling to 8 kHz, with the cut-off below both Nyquists. */
+static int16_t *resample(const float *x, size_t n, unsigned rate, size_t *out_n)
+{
+ double ratio = (double) rate / RATE, fc = 0.45 * MIN(1.0, 1.0 / ratio);
+ int w = (int) ceil(12 / fc);
+ size_t k, m = (size_t) (n / ratio);
+ int16_t *y = ast_malloc((m ? m : 1) * sizeof(int16_t));
+
+ if (!y) {
+ return NULL;
+ }
+ for (k = 0; k < m; k++) {
+ double t = k * ratio, acc = 0;
+ long i, c = (long) floor(t);
+ for (i = c - w + 1; i <= c + w; i++) {
+ double d = t - i, h;
+ if (i < 0 || i >= (long) n) {
+ continue;
+ }
+ h = d == 0 ? 2 * fc : sin(2 * M_PI * fc * d) / (M_PI * d);
+ acc += x[i] * h * (0.5 + 0.5 * cos(M_PI * d / w));
+ }
+ acc = acc > 32767 ? 32767 : acc < -32768 ? -32768 : acc;
+ y[k] = (int16_t) lrint(acc);
+ }
+ *out_n = m;
+ return y;
+}
+
+/* A PCM WAV of any rate, 8 or 16 bits, mono or stereo: to 8 kHz mono,
+ * with the silence around it trimmed (40 ms left each side) and its peak
+ * brought to -3 dBFS, the way tools/synth_voices.py makes clips. */
+static int16_t *speech_decode(const unsigned char *d, size_t len, size_t *out_n)
+{
+ const unsigned char *fmt = NULL, *data = NULL;
+ size_t dlen = 0, pos = 12, i, frames, a, b, n;
+ unsigned ch, rate, bits;
+ float *x;
+ int16_t *y;
+ int peak = 0;
+
+ if (len < 12 || memcmp(d, "RIFF", 4) || memcmp(d + 8, "WAVE", 4)) {
+ return NULL;
+ }
+ while (pos + 8 <= len) {
+ size_t clen = le32(d + pos + 4);
+ if (!memcmp(d + pos, "fmt ", 4) && clen >= 16 && pos + 8 + 16 <= len) {
+ fmt = d + pos + 8;
+ } else if (!memcmp(d + pos, "data", 4)) {
+ data = d + pos + 8;
+ dlen = MIN(clen, len - pos - 8); /* streamed WAVs give no length */
+ break;
+ }
+ pos += 8 + clen + (clen & 1);
+ }
+ if (!fmt || !data) {
+ return NULL;
+ }
+ ch = fmt[2] | fmt[3] << 8;
+ rate = le32(fmt + 4);
+ bits = fmt[14] | fmt[15] << 8;
+ if (!((fmt[0] == 1 && !fmt[1]) || (fmt[0] == 0xfe && fmt[1] == 0xff)) ||
+ ch < 1 || ch > 2 || (bits != 8 && bits != 16) || rate < 4000 || rate > 96000) {
+ return NULL;
+ }
+ frames = dlen / (ch * bits / 8);
+ if (!(x = ast_malloc((frames ? frames : 1) * sizeof(float)))) {
+ return NULL;
+ }
+ for (i = 0; i < frames; i++) {
+ float v = 0;
+ unsigned c;
+ for (c = 0; c < ch; c++) {
+ const unsigned char *p = data + (i * ch + c) * (bits / 8);
+ v += bits == 8 ? (p[0] - 128) * 256 : (int16_t) (p[0] | p[1] << 8);
+ }
+ x[i] = v / ch;
+ }
+ if (rate == RATE) {
+ n = frames;
+ y = ast_malloc((n ? n : 1) * sizeof(int16_t));
+ for (i = 0; y && i < n; i++) {
+ y[i] = (int16_t) x[i];
+ }
+ } else {
+ y = resample(x, frames, rate, &n);
+ }
+ ast_free(x);
+ if (!y) {
+ return NULL;
+ }
+ for (i = 0; i < n; i++) {
+ peak = MAX(peak, abs(y[i]));
+ }
+ if (peak < 100) {
+ ast_free(y);
+ return NULL; /* silence */
+ }
+ for (a = 0; a < n && abs(y[a]) < peak / 30; a++) {
+ }
+ for (b = n; b > a && abs(y[b - 1]) < peak / 30; b--) {
+ }
+ a = a > RATE / 25 ? a - RATE / 25 : 0;
+ b = MIN(n, b + RATE / 25);
+ for (i = a; i < b; i++) {
+ y[i - a] = (int16_t) (y[i] * 23197.0 / peak);
+ }
+ *out_n = b - a;
+ return y;
+}
+
+/* Run a speech program: key is "exec:" and its arguments, split by \x1f.
+ * It writes the WAV to the file named by the argument "{out}", or else to
+ * its standard output. No shell: the text is one argument. */
+static int16_t *speech_exec(const char *key, size_t *n)
+{
+ char tmpl[] = "/tmp/speakingclock-XXXXXX.wav", *args, *argv[64], *a;
+ int fd, argc = 0, status = -1, to_file = 0;
+ posix_spawn_file_actions_t fa;
+ unsigned char *d = NULL;
+ int16_t *s = NULL;
+ struct stat sb;
+ time_t until;
+ pid_t pid;
+
+ if ((fd = mkstemps(tmpl, 4)) < 0) {
+ return NULL;
+ }
+ args = ast_strdupa(key + 5);
+ while ((a = strsep(&args, "\x1f")) && argc < 63) {
+ if (!strcmp(a, "{out}")) {
+ argv[argc++] = tmpl;
+ to_file = 1;
+ } else {
+ argv[argc++] = a;
+ }
+ }
+ argv[argc] = NULL;
+ posix_spawn_file_actions_init(&fa);
+ posix_spawn_file_actions_addopen(&fa, 0, "/dev/null", O_RDONLY, 0);
+ if (to_file) {
+ posix_spawn_file_actions_addopen(&fa, 1, "/dev/null", O_WRONLY, 0);
+ } else {
+ posix_spawn_file_actions_adddup2(&fa, fd, 1);
+ }
+ posix_spawn_file_actions_addopen(&fa, 2, "/dev/null", O_WRONLY, 0);
+ /* Asterisk ignores SIGCHLD; it must not, to wait for the child */
+ ast_replace_sigchld();
+ if (argc && !posix_spawnp(&pid, argv[0], &fa, NULL, argv, environ)) {
+ pid_t w;
+ until = time(NULL) + tts_timeout;
+ while ((w = waitpid(pid, &status, WNOHANG)) == 0) {
+ if (time(NULL) > until) {
+ kill(pid, SIGKILL);
+ waitpid(pid, &status, 0);
+ ast_log(LOG_WARNING, "SpeakingClock: %s took too long\n", argv[0]);
+ status = -1;
+ break;
+ }
+ usleep(20000);
+ }
+ if (w < 0) {
+ status = -1;
+ }
+ } else {
+ ast_log(LOG_WARNING, "SpeakingClock: can't run %s\n", argc ? argv[0] : "(nothing)");
+ }
+ ast_unreplace_sigchld();
+ posix_spawn_file_actions_destroy(&fa);
+ if (status == 0 && !stat(tmpl, &sb) && sb.st_size > 0 && sb.st_size < SPEECH_MAX &&
+ (d = ast_malloc(sb.st_size))) {
+ FILE *f = fopen(tmpl, "rb");
+ if (f && fread(d, 1, sb.st_size, f) == (size_t) sb.st_size &&
+ !(s = speech_decode(d, sb.st_size, n))) {
+ ast_log(LOG_WARNING, "SpeakingClock: %s: not a WAV file it can read\n", argv[0]);
+ }
+ if (f) {
+ fclose(f);
+ }
+ } else if (status > 0) {
+ ast_log(LOG_WARNING, "SpeakingClock: %s failed (%d)\n", argv[0], status);
+ }
+ ast_free(d);
+ close(fd);
+ unlink(tmpl);
+ return s;
+}
+
+static void *speech_worker(void *unused)
+{
+ ast_mutex_lock(&speech_lock);
+ while (!speech_quit) {
+ struct speech *e = NULL;
+ char *key;
+ int16_t *s;
+ size_t i, n = 0;
+
+ for (i = 0; i < SPEECH_SLOTS; i++) {
+ if (speech[i].state == SP_WANTED && (!e || speech[i].seq < e->seq)) {
+ e = &speech[i];
+ }
+ }
+ if (!e) {
+ ast_cond_wait(&speech_cond, &speech_lock);
+ continue;
+ }
+ e->state = SP_FETCHING;
+ key = ast_strdup(e->key);
+ ast_mutex_unlock(&speech_lock);
+ s = key ? speech_exec(key, &n) : NULL;
+ ast_mutex_lock(&speech_lock);
+ /* the slot is never reused while it is fetching */
+ e->s = s;
+ e->n = n;
+ e->state = s ? SP_READY : SP_FAILED;
+ e->failed = time(NULL);
+ ast_free(key);
+ ast_cond_broadcast(&speech_cond);
+ }
+ ast_mutex_unlock(&speech_lock);
+ return NULL;
+}
+
+enum { SPEECH_PEEK, SPEECH_ASK, SPEECH_WAIT };
+
+/* The speech for key, copied into *s (the caller frees it): 0 when it's
+ * here, -1 when it isn't (yet). SPEECH_ASK asks for it if it hasn't been
+ * asked for, SPEECH_WAIT also waits up to the fetch timeout for it, and
+ * SPEECH_PEEK only looks. */
+static int speech_get(const char *key, int16_t **s, size_t *n, int how)
+{
+ struct speech *e = NULL, *victim = NULL;
+ time_t now = time(NULL);
+ struct timeval until = ast_tvadd(ast_tvnow(), ast_samp2tv(tts_timeout + 5, 1));
+ size_t i;
+ int res = -1;
+
+ ast_mutex_lock(&speech_lock);
+ for (i = 0; i < SPEECH_SLOTS && !e; i++) {
+ if (speech[i].state != SP_EMPTY && !strcmp(speech[i].key, key)) {
+ e = &speech[i];
+ }
+ }
+ if (!e && how != SPEECH_PEEK) {
+ /* an empty slot, else the one least recently used */
+ for (i = 0; i < SPEECH_SLOTS; i++) {
+ struct speech *c = &speech[i];
+ if (c->state == SP_FETCHING) {
+ continue;
+ }
+ if (c->state == SP_EMPTY) {
+ victim = c;
+ break;
+ }
+ if (!victim || c->used < victim->used) {
+ victim = c;
+ }
+ }
+ if (victim) {
+ ast_free(victim->key);
+ ast_free(victim->s);
+ memset(victim, 0, sizeof(*victim));
+ if ((victim->key = ast_strdup(key))) {
+ e = victim;
+ e->state = SP_WANTED;
+ e->seq = ++speech_seq;
+ ast_cond_broadcast(&speech_cond);
+ }
+ }
+ } else if (e && how != SPEECH_PEEK && e->state == SP_FAILED && now - e->failed >= SPEECH_RETRY) {
+ e->state = SP_WANTED;
+ e->seq = ++speech_seq;
+ ast_cond_broadcast(&speech_cond);
+ }
+ while (e && how == SPEECH_WAIT && (e->state == SP_WANTED || e->state == SP_FETCHING)) {
+ struct timespec ts = { .tv_sec = until.tv_sec, .tv_nsec = until.tv_usec * 1000 };
+ if (ast_cond_timedwait(&speech_cond, &speech_lock, &ts) && ast_tvcmp(ast_tvnow(), until) >= 0) {
+ break;
+ }
+ }
+ if (e && e->key && strcmp(e->key, key)) {
+ e = NULL; /* reused for another while we waited */
+ }
+ if (e) {
+ e->used = now;
+ if (e->state == SP_READY && (*s = ast_malloc(e->n * sizeof(int16_t)))) {
+ memcpy(*s, e->s, e->n * sizeof(int16_t));
+ *n = e->n;
+ res = 0;
+ }
+ }
+ ast_mutex_unlock(&speech_lock);
+ return res;
+}
+
+static void speech_start(void)
+{
+ ast_cond_init(&speech_cond, NULL);
+ speech_quit = 0;
+ if (ast_pthread_create_background(&speech_thread, NULL, speech_worker, NULL)) {
+ speech_thread = AST_PTHREADT_NULL;
+ ast_log(LOG_ERROR, "SpeakingClock: can't start the speech fetcher\n");
+ }
+}
+
+static void speech_stop(void)
+{
+ size_t i;
+ if (speech_thread != AST_PTHREADT_NULL) {
+ ast_mutex_lock(&speech_lock);
+ speech_quit = 1;
+ ast_cond_broadcast(&speech_cond);
+ ast_mutex_unlock(&speech_lock);
+ pthread_join(speech_thread, NULL);
+ speech_thread = AST_PTHREADT_NULL;
+ }
+ for (i = 0; i < SPEECH_SLOTS; i++) {
+ ast_free(speech[i].key);
+ ast_free(speech[i].s);
+ memset(&speech[i], 0, sizeof(speech[i]));
+ }
+ ast_cond_destroy(&speech_cond);
+}
+
+/* ---- what a tts voice says ---- */
+
+static const char *ones[] = { "zero", "one", "two", "three", "four", "five", "six",
+ "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen",
+ "fifteen", "sixteen", "seventeen", "eighteen", "nineteen" };
+static const char *tens[] = { "", "", "twenty", "thirty", "forty", "fifty" };
+
+static void words(int n, char *out, size_t len)
+{
+ if (n < 20) {
+ ast_copy_string(out, ones[n], len);
+ } else if (n % 10) {
+ snprintf(out, len, "%s-%s", tens[n / 10], ones[n % 10]);
+ } else {
+ ast_copy_string(out, tens[n / 10], len);
+ }
+}
+
+/* The template with {hour} {minute} {seconds} {ampm} {greeting} in words,
+ * and {H} {HH} {M} {MM} {S} {SS} in digits, filled in. */
+static void tts_text(const char *tpl, const struct ast_tm *tm, int int24, char *out, size_t len)
+{
+ struct ast_str *s = ast_str_alloca(1024);
+ const char *p;
+
+ for (p = tpl; *p; p++) {
+ char key[16], w[48];
+ const char *close = *p == '{' ? strchr(p, '}') : NULL;
+ if (!close || close - p - 1 >= (ptrdiff_t) sizeof(key)) {
+ ast_str_append(&s, 0, "%c", *p);
+ continue;
+ }
+ ast_copy_string(key, p + 1, close - p);
+ p = close;
+ w[0] = '\0';
+ if (!strcmp(key, "hour")) {
+ words(int24 ? tm->tm_hour : tm->tm_hour % 12 ? tm->tm_hour % 12 : 12, w, sizeof(w));
+ } else if (!strcmp(key, "minute")) {
+ if (!tm->tm_min) {
+ ast_copy_string(w, int24 ? "hundred" : "o'clock", sizeof(w));
+ } else if (tm->tm_min < 10) {
+ snprintf(w, sizeof(w), "oh %s", ones[tm->tm_min]);
+ } else {
+ words(tm->tm_min, w, sizeof(w));
+ }
+ } else if (!strcmp(key, "seconds")) {
+ if (!tm->tm_sec) {
+ ast_copy_string(w, "precisely", sizeof(w));
+ } else {
+ char n[24];
+ words(tm->tm_sec, n, sizeof(n));
+ snprintf(w, sizeof(w), "and %s second%s", n, tm->tm_sec == 1 ? "" : "s");
+ }
+ } else if (!strcmp(key, "ampm")) {
+ ast_copy_string(w, int24 ? "" : tm->tm_hour < 12 ? "A.M." : "P.M.", sizeof(w));
+ } else if (!strcmp(key, "greeting")) {
+ ast_copy_string(w, tm->tm_hour < 12 ? "Good morning" :
+ tm->tm_hour < 18 ? "Good afternoon" : "Good evening", sizeof(w));
+ } else if (!strcmp(key, "H") || !strcmp(key, "HH")) {
+ int h = int24 ? tm->tm_hour : tm->tm_hour % 12 ? tm->tm_hour % 12 : 12;
+ snprintf(w, sizeof(w), key[1] ? "%02d" : "%d", h);
+ } else if (!strcmp(key, "M") || !strcmp(key, "MM")) {
+ snprintf(w, sizeof(w), key[1] ? "%02d" : "%d", tm->tm_min);
+ } else if (!strcmp(key, "S") || !strcmp(key, "SS")) {
+ snprintf(w, sizeof(w), key[1] ? "%02d" : "%d", tm->tm_sec);
+ } else {
+ snprintf(w, sizeof(w), "{%s}", key);
+ }
+ ast_str_append(&s, 0, "%s", w);
+ }
+ ast_copy_string(out, ast_str_buffer(s), len);
+}
+
+/* The key that runs v's command= for text: its words, split like a shell
+ * would (with "..." and '...'), {program:name} becoming tts_program_
+ * (else name), {text} the text and {out} the file to write. */
+static void tts_cmd(const struct voice *v, const char *text, char *out, size_t len)
+{
+ struct ast_str *s = ast_str_alloca(2048);
+ const char *p = v->tts_command;
+ int args = 0;
+
+ ast_str_set(&s, 0, "exec:");
+ while (*p) {
+ char q = 0;
+ while (*p == ' ' || *p == '\t') {
+ p++;
+ }
+ if (!*p) {
+ break;
+ }
+ if (args++) {
+ ast_str_append(&s, 0, "\x1f");
+ }
+ for (; *p && (q || (*p != ' ' && *p != '\t')); p++) {
+ if (!q && (*p == '"' || *p == '\'')) {
+ q = *p;
+ } else if (q && *p == q) {
+ q = 0;
+ } else if (!strncmp(p, "{text}", 6)) {
+ ast_str_append(&s, 0, "%s", text);
+ p += 5;
+ } else if (!strncmp(p, "{program:", 9) && strchr(p, '}')) {
+ const char *close = strchr(p, '}');
+ char name[48], prog[256];
+ ast_copy_string(name, p + 9, MIN(sizeof(name), (size_t) (close - p - 8)));
+ tts_setting("program", name, strlen(name), name, prog, sizeof(prog));
+ ast_str_append(&s, 0, "%s", prog);
+ p = close;
+ } else {
+ ast_str_append(&s, 0, "%c", *p);
+ }
+ }
+ }
+ ast_copy_string(out, ast_str_buffer(s), len);
+}
+
/* ---- composing an announcement ---------------------------------------- */
struct piece {
@@ -371,6 +890,8 @@ struct ann {
int16_t *s;
size_t n;
int used;
+ int pending; /* its speech hadn't arrived: render it again */
+ long long tried; /* when it was last rendered (st->pos) */
};
struct clock_state {
@@ -382,6 +903,7 @@ struct clock_state {
long long pos; /* next sample to send, counted from the epoch */
long long min_start; /* 'w': skip announcements starting before this */
long long last_sync;
+ int wait_speech; /* CLI render: fetch speech before going on */
struct ann r[NREND];
int16_t pips[RATE * 3]; /* made-up pips, for voices without a pips clip */
int16_t buf[AST_FRIENDLY_OFFSET / 2 + RATE];
@@ -391,6 +913,10 @@ struct say {
const struct voice *v;
struct piece p[MAX_PIECES];
int np;
+ int16_t *own[MAX_PIECES]; /* speech, freed after rendering */
+ int nown;
+ int pending; /* speech that hasn't arrived yet */
+ int how; /* SPEECH_PEEK, _ASK or _WAIT */
};
static int add(struct say *s, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
@@ -535,6 +1061,24 @@ static void compose(struct say *s, const char *sequence, const struct ast_tm *tm
if (tm->tm_min == 0) {
add(s, "hourchime1");
}
+ } else if (!strcasecmp(tok, "speech")) {
+ char text[512], key[2048];
+ int16_t *sp;
+ size_t n;
+ if (s->v->mode != MODE_TTS || s->np >= MAX_PIECES || s->nown >= MAX_PIECES) {
+ continue;
+ }
+ tts_text(s->v->tts_text, tm, int24, text, sizeof(text));
+ tts_cmd(s->v, text, key, sizeof(key));
+ if (speech_get(key, &sp, &n, s->how)) {
+ s->pending = 1;
+ continue;
+ }
+ s->own[s->nown++] = sp;
+ s->p[s->np].s = sp;
+ s->p[s->np].n = n;
+ s->p[s->np].is_pips = 0;
+ s->np++;
} else if (!strcasecmp(tok, "pips")) {
if (add(s, "pips") && s->np < MAX_PIECES) {
s->p[s->np].s = NULL; /* made-up pips */
@@ -575,6 +1119,11 @@ static void render(struct clock_state *st, struct ann *r, long long j)
size_t i, total = 0, at = 0, mark = 0;
int marked = 0;
+ /* speech is fetched only for announcements that can still start in
+ * time: one whose mark is less than 8 s off (about a sentence and the
+ * pips) uses it only if it's already here */
+ s.how = st->wait_speech ? SPEECH_WAIT :
+ j * st->period * (long long) RATE < st->pos + 8 * RATE ? SPEECH_PEEK : SPEECH_ASK;
ast_localtime(&tv, &tm, ast_strlen_zero(st->zone) ? NULL : st->zone);
compose(&s, st->sequence, &tm, st->int24);
for (i = 0; i < (size_t) s.np; i++) {
@@ -593,18 +1142,23 @@ static void render(struct clock_state *st, struct ann *r, long long j)
ast_free(r->s);
r->j = j;
r->used = 1;
+ r->pending = s.pending;
+ r->tried = st->pos;
r->n = total;
r->start = j * st->period * (long long) RATE - (marked ? (long long) mark : 0);
r->s = ast_calloc(total ? total : 1, sizeof(int16_t));
if (!r->s) {
r->n = 0;
- return;
+ total = 0;
}
- for (i = 0; i < (size_t) s.np; i++) {
+ for (i = 0; r->s && i < (size_t) s.np; i++) {
const int16_t *src = s.p[i].is_pips == 2 ? st->pips : s.p[i].s;
memcpy(r->s + at, src, s.p[i].n * sizeof(int16_t));
at += s.p[i].n;
}
+ for (i = 0; i < (size_t) s.nown; i++) {
+ ast_free(s.own[i]);
+ }
}
static struct ann *ann_get(struct clock_state *st, long long j)
@@ -612,7 +1166,22 @@ static struct ann *ann_get(struct clock_state *st, long long j)
int i, oldest = 0;
for (i = 0; i < NREND; i++) {
if (st->r[i].used && st->r[i].j == j) {
- return &st->r[i];
+ struct ann *r = &st->r[i];
+ /* speech that was missing may be here now: try again, at most
+ * every 200 ms, while the announcement hasn't started, and keep
+ * the new one only if it can still start on time */
+ if (r->pending && r->start > st->pos && st->pos - r->tried >= RATE / 5) {
+ struct ann t = { 0 };
+ render(st, &t, j);
+ if (t.start >= st->pos) {
+ ast_free(r->s);
+ *r = t;
+ } else {
+ ast_free(t.s);
+ r->tried = st->pos;
+ }
+ }
+ return r;
}
if (!st->r[i].used || st->r[i].j < st->r[oldest].j) {
oldest = i;
@@ -944,6 +1513,7 @@ static char *cli_render(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a
return CLI_FAILURE;
}
st->pos = start * RATE;
+ st->wait_speech = 1;
for (i = 0; i < seconds * 10; i++) {
int16_t out[RATE / 10];
fill(st, out, RATE / 10);
@@ -966,9 +1536,12 @@ static int load_config(int reload)
{
struct ast_flags flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
struct ast_config *cfg = ast_config_load(CONF, flags);
+ struct ast_variable *var;
const char *s;
if (cfg == CONFIG_STATUS_FILEUNCHANGED) {
+ /* the voices may have changed even if this file hasn't */
+ ao2_callback(voices, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL);
return 0;
}
ast_mutex_lock(&conf_lock);
@@ -976,6 +1549,8 @@ static int load_config(int reload)
ast_copy_string(default_voice, "tim-pat-simmons", sizeof(default_voice));
default_zone[0] = '\0';
maxduration = 180;
+ ntts_programs = 0;
+ tts_timeout = 15;
if (cfg && cfg != CONFIG_STATUS_FILEINVALID) {
if ((s = ast_variable_retrieve(cfg, "general", "voicedir"))) {
ast_copy_string(voicedir, s, sizeof(voicedir));
@@ -989,6 +1564,18 @@ static int load_config(int reload)
if ((s = ast_variable_retrieve(cfg, "general", "maxduration"))) {
maxduration = atoi(s);
}
+ if ((s = ast_variable_retrieve(cfg, "general", "tts_timeout")) && atoi(s) > 0) {
+ tts_timeout = atoi(s);
+ }
+ for (var = ast_variable_browse(cfg, "general"); var; var = var->next) {
+ if (!strncasecmp(var->name, "tts_program_", 12) && ntts_programs < TTS_PROGRAMS) {
+ ast_copy_string(tts_programs[ntts_programs].name, var->name + 4,
+ sizeof(tts_programs[0].name));
+ ast_copy_string(tts_programs[ntts_programs].path, var->value,
+ sizeof(tts_programs[0].path));
+ ntts_programs++;
+ }
+ }
ast_config_destroy(cfg);
}
ast_mutex_unlock(&conf_lock);
@@ -1003,6 +1590,7 @@ static int unload_module(void)
ast_cli_unregister_multiple(cli, ARRAY_LEN(cli));
ao2_cleanup(voices);
voices = NULL;
+ speech_stop();
return res;
}
@@ -1012,6 +1600,7 @@ static int load_module(void)
if (!voices) {
return AST_MODULE_LOAD_DECLINE;
}
+ speech_start();
load_config(0);
ast_cli_register_multiple(cli, ARRAY_LEN(cli));
if (ast_register_application_xml(app, clock_exec)) {
diff --git a/asterisk/speakingclock.conf.sample b/asterisk/speakingclock.conf.sample
index cb256e1..e92de99 100644
--- a/asterisk/speakingclock.conf.sample
+++ b/asterisk/speakingclock.conf.sample
@@ -22,3 +22,15 @@
; Hang up after this many seconds (0: never). The d() option overrides it.
;maxduration=180
+
+; The live DECtalk and SAM voices run the synthesiser on this machine, with
+; no server. Default: dectalk and sam, found on the PATH.
+;tts_program_dectalk=/opt/dectalk/say
+;tts_program_sam=/usr/local/bin/sam
+
+; Seconds a synthesiser program may take before it is stopped.
+;tts_timeout=15
+
+; The live Microsoft Sam, Mike and Mary voices run synth/mssam (default:
+; mssam, found on the PATH).
+;tts_program_mssam=/usr/local/bin/mssam
diff --git a/docs/mssam-format.md b/docs/mssam-format.md
new file mode 100644
index 0000000..03281ce
--- /dev/null
+++ b/docs/mssam-format.md
@@ -0,0 +1,96 @@
+# Microsoft Sam, Mike and Mary voice data
+
+What synth/mssam reads, as we decoded it from the data alone. The voices
+come in Microsoft's Speech API 4 TTS package `msttsl.exe` (SHA-1
+d988cbb3e99bc9dd850defda939c06b81d9d4544), a cabinet holding `sam.vce`,
+`male.vce` (Mike) and `female.vce` (Mary), and `male8.vce` and `female8.vce`, Mike and Mary for
+telephone (`mike-tel`, `mary-tel`). Each `.vce` is an OLE compound
+file with these streams: `Inventory`, `TreeImage`, `PhoneFile`, `Senone`,
+`Cdb`, `VcHeader` (and `AltUnits` in Sam's). `tools/fetch-mssam.py`
+writes `Inventory` as `.inv`, `Cdb` as `.tones`, and
+`TreeImage` rewritten as `.tree`.
+
+## Inventory (`.inv`, little-endian)
+
+ u32 rate (22050), order (20), nlsf (6), na (11), nb (13), 2 more
+ nlsf tables, then na tables, then nb tables; each:
+ u32 count, u32 dim, count*dim float32
+ u32 nunits, u32 size, (nunits+1) u32 offsets, then the units
+
+The 6 line-spectrum codebooks have 256 entries of 3, 3, 3, 3, 4 and 4
+values: one entry from each makes the 20 line spectral frequencies of a
+frame (in cycles per sample). The excitation codebooks have 128 entries;
+family A's 11 dims and family B's 13 dims each add up to 510, the points
+of one pitch period scaled to a fixed length.
+
+The telephone voices are the same at 8000 Hz with order 12: 4 line-spectrum
+codebooks of 3 values, and 10 excitation codebooks in each family (dims 12,
+12, 16, 16, 16, 18, 24, 38, 46, 56, adding up to 254). Their unvoiced frame bytes
+(147-238) do not fit as lengths at 8 kHz; mssam plays those frames as 5 ms,
+which matches the units' recorded lengths (Senone) best.
+
+A unit:
+
+ u32 n frames
+ n frame headers voiced: 0x7f bytes (127 each) then a
+ byte < 0x7f, adding up to the pitch
+ period in samples; unvoiced: 0x80
+ bytes then a byte > 0x80, the length
+ is 128*(number of 0x80 - 1) + that byte
+ n x 6 bytes (4 for telephone) line-spectrum codebook indices
+ n float32 gains (the RMS of the frame's excitation)
+ for each voiced frame the first frame of a voiced run: 11
+ family A indices, the whole period;
+ each later one: 13 family B indices,
+ the change from the previous period
+
+Unvoiced frames are noise. Unit 0 is empty; unit k+1 is senone k.
+
+## TreeImage (big-endian)
+
+A header with the path of the question file, then the questions (u32
+count, then name\0 and a 64-bit mask each), then `\\...\TREE2\0`,
+`tree\0`, u32 number of sounds n, n bytes (1: one state per sound), u32 n,
+n u32 (where each sound's senones end, counted from n), u32 the number of
+senones, then u32 total, 0, 18, 0xffffffff, the number of composite
+questions q, then q pairs of 64-bit masks, 8 more bytes, and one tree per
+sound.
+
+A mask holds sound i at bit (i + 36) mod 64, and the four word positions at
+bits 32-35: begins a word, ends one, is a whole word, is inside one. A
+composite question (left, right) is true when the sound before is in
+`left`, this sound's word position is in `left`, and the sound after is in
+`right`.
+
+A tree is u16 nodes, u16 leaves (nodes = 2*leaves - 1), then the nodes in
+order, node 0 first:
+
+ inner node u16 yes, u16 no, 0xffff, u16 question..., 0xffff
+ leaf 0xffff, u16 k, u16 k
+
+An inner node goes to `yes` when any of its questions is true. Leaf k of
+sound s is senone (the senones of the sounds before s) + k.
+
+PhoneFile lists the sounds in order, one per line (Sam: 52, Mike and
+Mary: 58, with SILb and SILe for silence before and after).
+
+`.tree` is the same in our own little-endian layout:
+
+ "MSSAMTR1", u32 sounds, u32 questions, u32 senones, u32 1
+ questions x (u64 left, u64 right) sound i at bit i, positions at 60-63
+ sounds x (char name[8], u32 first senone, u32 nodes, u32 first node)
+ u32 nodes, u32 question refs
+ nodes x (i32 yes, i32 no, u32 first ref, u32 refs) leaf: yes = -1, no = k
+ refs x u16 question index
+
+## Senone
+
+u32 count, then 28-byte records: the sound's name (4 bytes), u32 0, u32
+the leaf number + 1, and four float32: the unit's mean length in ms, its
+spread, and two energies.
+
+## Cdb (`.tones`)
+
+Text: pitch per tone, as `H (179) on: m=129= sd=34=; off: m=141= ...`, the
+mean pitch in Hz where a vowel starts and ends. mssam uses `H` (accented),
+`_` (plain), `h]` and `_]` (the last vowel of a phrase).
diff --git a/docs/voice-format.md b/docs/voice-format.md
index 2913c86..0b2fa39 100644
--- a/docs/voice-format.md
+++ b/docs/voice-format.md
@@ -47,7 +47,7 @@ from `n20` plus `n3` when it doesn't.
[voice]
name=Pat Simmons
description=UK GPO speaking clock (TIM), 1963-1985
-mode=tim ; tim | talking | chime | hourly
+mode=tim ; tim | talking | chime | hourly | tts
sequence=phrase+hour+minute+seconds+pips
period=10 ; seconds between announcements
marker=2.2949 ; the time mark: this many seconds into pips.wav
@@ -62,6 +62,7 @@ hours=12 ; or 24
- `tim`: `phrase+hour+minute+seconds+pips`, every 10 s
- `chime`: `quarter+strikes`, every 30 s
- `hourly`: `hourly`, every 10 s
+ - `tts`: `speech+pips`, every 10 s (see Live voices, below)
- **sequence** lists what to say, joined by `+`. It can use the words in the
table above (`intro`, `its`, `greeting`, `phrase`, `hour`, `minute`,
`seconds`, `ampm`, `pips`, `quarter`, `strikes`, `hourly`, `hourchime`) or
@@ -74,3 +75,46 @@ hours=12 ; or 24
on its second. For made-up pips the mark is the third pip.
`tools/build_voices.py` measures this from the clip (the onset of the last
pip).
+
+## Live voices (mode=tts)
+
+A live voice has no number clips. Each announcement's sentence is spoken
+whole, when it is needed, by a synthesiser program on the Asterisk machine
+(DECtalk, SAM).
+
+```
+[voice]
+name=DECtalk Perfect Paul, live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:dectalk} -fo {out} -a "[:np] {text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+```
+
+- **command**: the program to run, split into words like a shell would
+ (with `"..."` and `'...'`), but run without one, so the text is always a
+ single argument. `{program:name}` becomes `tts_program_name` from
+ speakingclock.conf (else `name`, found on the PATH), `{text}` the text,
+ and an argument `{out}` a file for it to write the WAV to. Without `{out}`
+ the WAV is read from its standard output.
+- **text**: what each announcement says. In words: `{hour}`, `{minute}`
+ ("oh five", "o'clock" on the hour, "hundred" on a 24-hour clock),
+ `{seconds}` ("and twenty seconds", "precisely" on the minute), `{ampm}`
+ ("A.M.", "P.M."), `{greeting}` ("Good morning"). In digits: `{H}`,
+ `{HH}`, `{M}`, `{MM}`, `{S}`, `{SS}`.
+- **sequence**: `speech` is the sentence. Clips in the voice's folder can be
+ used as well (a `pips.wav`, an `intro.wav`).
+
+The program's WAV can be any PCM: 8 or 16 bits, mono or stereo, any rate.
+The module converts it to 8 kHz, trims the silence around it and evens its
+level, and keeps the last 128 sentences. A worker thread runs the program,
+about 20 seconds before each sentence is due, so a call never waits on it.
+An announcement whose sentence isn't ready in time plays the pips alone,
+and a program that fails is tried again after 30 seconds. `tts_timeout`
+(default 15 s) stops a program that hangs.
+
+`tools/synth_voices.py --live voices dectalk:` (or `sam:`) writes
+these voices (`live-dectalk-*`, `live-sam-*`).
diff --git a/freepbx/speakingclock/lib/Clock.php b/freepbx/speakingclock/lib/Clock.php
index f5ee0f2..bb56ef9 100644
--- a/freepbx/speakingclock/lib/Clock.php
+++ b/freepbx/speakingclock/lib/Clock.php
@@ -22,6 +22,8 @@ class Clock
'default_voice' => 'tim-pat-simmons',
'timezone' => '',
'maxduration' => 180,
+ 'tts_program_dectalk' => '',
+ 'tts_program_sam' => '',
];
}
@@ -62,6 +64,8 @@ class Clock
'default_voice' => self::str($a, 'default_voice', $d['default_voice']),
'timezone' => self::str($a, 'timezone'),
'maxduration' => self::str($a, 'maxduration', (string)$d['maxduration']),
+ 'tts_program_dectalk' => self::str($a, 'tts_program_dectalk'),
+ 'tts_program_sam' => self::str($a, 'tts_program_sam'),
];
}
@@ -105,6 +109,9 @@ class Clock
$e['timezone'] = _('Not a time zone');
if (!preg_match('/^\d{1,6}$/', (string)$s['maxduration']))
$e['maxduration'] = _('Seconds, 0 for no limit');
+ foreach (['tts_program_dectalk', 'tts_program_sam'] as $k)
+ if ($s[$k] !== '' && !preg_match('#^/[^\s;]*\z#', $s[$k]))
+ $e[$k] = _('A full path, with no spaces');
return $e;
}
@@ -248,6 +255,9 @@ class Clock
if ($s['timezone'] !== '')
$o .= 'timezone=' . $s['timezone'] . "\n";
$o .= 'maxduration=' . (int)$s['maxduration'] . "\n";
+ foreach (['tts_program_dectalk', 'tts_program_sam'] as $k)
+ if ($s[$k] !== '')
+ $o .= $k . '=' . $s[$k] . "\n";
return $o;
}
}
diff --git a/freepbx/speakingclock/views/settings.php b/freepbx/speakingclock/views/settings.php
index 1899ae1..45a5a0e 100644
--- a/freepbx/speakingclock/views/settings.php
+++ b/freepbx/speakingclock/views/settings.php
@@ -24,5 +24,9 @@ include __DIR__ . '/_form.php';
_('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.'));
?>
diff --git a/freepbx/test/unit.php b/freepbx/test/unit.php
index 1998ebb..bba18c5 100644
--- a/freepbx/test/unit.php
+++ b/freepbx/test/unit.php
@@ -121,6 +121,10 @@ ok(!isset($v['INDEX.md']), 'files are not voices');
ok(!Clock::validateSettings(Clock::normalizeSettings(['voicedir' => '/x', 'default_voice' => 'a', 'timezone' => 'Europe/London', 'maxduration' => '0'])), 'good settings pass');
$e = Clock::validateSettings(Clock::normalizeSettings(['voicedir' => 'rel', 'default_voice' => '../x', 'timezone' => 'Mars/Base', 'maxduration' => '-1']));
ok(isset($e['voicedir'], $e['default_voice'], $e['timezone'], $e['maxduration']), 'bad settings caught');
+$e = Clock::validateSettings(Clock::normalizeSettings(['voicedir' => '/x', 'default_voice' => 'a', 'tts_program_sam' => 'sam; rm -rf /']));
+ok(isset($e['tts_program_sam']), 'bad tts_program caught');
+$t = Clock::normalizeSettings(['voicedir' => '/x', 'default_voice' => 'a', 'tts_program_dectalk' => '/opt/dectalk/say']);
+ok(!Clock::validateSettings($t) && strpos(Clock::renderConf($t), "tts_program_dectalk=/opt/dectalk/say\n") !== false, 'dectalk program written');
/* clock checks */
$good = Clock::normalizeClock(['name' => 'tim', 'voice' => 'tim-pat-simmons', 'number' => '123',
diff --git a/synth/mssam/Makefile b/synth/mssam/Makefile
new file mode 100644
index 0000000..8cb8521
--- /dev/null
+++ b/synth/mssam/Makefile
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# make build mssam
+# make voices fetch the Microsoft Sam, Mike and Mary voice data (an 8 MB download)
+# make install install the program and the voices
+# make test speak a sentence with every voice
+PREFIX ?= /usr/local
+VOICEDIR ?= $(PREFIX)/share/mssam
+CC ?= cc
+CFLAGS ?= -O2 -Wall -Wextra
+SOURCES ?= ../../sources/mssam
+
+mssam: mssam.c lexicon.h
+ $(CC) $(CFLAGS) -DVOICEDIR='"$(VOICEDIR)"' -o $@ mssam.c -lm
+
+voices: $(SOURCES)/sam.inv
+
+$(SOURCES)/sam.inv:
+ python3 ../../tools/fetch-mssam.py $(SOURCES)
+
+install: mssam voices
+ install -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(VOICEDIR)
+ install -m 755 mssam $(DESTDIR)$(PREFIX)/bin/mssam
+ install -m 644 $(SOURCES)/*.inv $(SOURCES)/*.tree $(SOURCES)/*.tones $(DESTDIR)$(VOICEDIR)/
+ if [ -f $(SOURCES)/cmudict.dict ]; then install -m 644 $(SOURCES)/cmudict.dict $(DESTDIR)$(VOICEDIR)/; fi
+
+test: mssam voices
+ @for v in sam mike mary mike-tel mary-tel; do \
+ ./mssam -d $(SOURCES) -v $$v -o /tmp/mssam-$$v.wav \
+ "At the third stroke, it will be ten oh five and twenty seconds." && \
+ echo "/tmp/mssam-$$v.wav"; \
+ done
+
+clean:
+ rm -f mssam
+
+.PHONY: voices install test clean
diff --git a/synth/mssam/README.md b/synth/mssam/README.md
new file mode 100644
index 0000000..507953a
--- /dev/null
+++ b/synth/mssam/README.md
@@ -0,0 +1,57 @@
+# mssam
+
+Our own synthesiser for the Microsoft Sam, Mike and Mary voices (Microsoft
+Speech API 4, 1998). It reads the voices' data and speaks with it. No
+Microsoft code is used or run, and none of Microsoft's files are in this
+repository: `tools/fetch-mssam.py` downloads Microsoft's package at build
+time and keeps only the voice data.
+
+```sh
+make # build mssam
+make voices # fetch the voice data into ../../sources/mssam (8 MB download, needs cabextract or 7z)
+make test # speak a sentence with each voice
+sudo make install # /usr/local/bin/mssam and /usr/local/share/mssam
+```
+
+```
+mssam [-d DIR] [-v sam|mike|mary|mike-tel|mary-tel] [-r RATE] [-p PITCH] [-o OUT.wav] TEXT...
+```
+
+`mike-tel` and `mary-tel` are Microsoft's 8 kHz voices made for phone
+lines. `-d` is the folder with the voice data (default `/usr/local/share/mssam`,
+or `$MSSAM_DIR`). `-r` and `-p` multiply the speed and pitch. Without `-o`
+the WAV (22050 Hz, or 8000 Hz for the telephone voices, 16-bit mono) goes to standard output.
+
+## How it speaks
+
+1. The text becomes words (numbers and times like `11:05` are spelled out,
+ `a.m.` is two letters), and the words become sounds from the CMU
+ Pronouncing Dictionary: the clock's own words are built in
+ (`lexicon.h`), and `cmudict.dict` in the voice folder covers the rest.
+ Unknown words are spelled.
+2. Each sound gets one of the voice's recorded units. The voice has a
+ decision tree for each sound, whose questions are about the sounds
+ either side and where the sound is in its word; the leaf it reaches is
+ the unit.
+3. Each unit is a run of frames: a 20th-order spectrum (line spectral
+ frequencies) and a gain, with a pitch pulse for voiced frames and noise
+ for the others. The frames are played through the filter at a new pace
+ and with a new pitch. Each phrase starts near 100 Hz, the first stressed
+ word rises above it, and the phrase sinks to about 73 Hz at the end of a sentence (before a
+ comma it falls only a little, a sentence's last word is not
+ stressed, and its stressed last vowel is held a little longer),
+ the shape measured from Sam's own recordings (Mike and Mary are scaled
+ to their own pitch, from their tone tables). The spectrum glides from
+ frame to frame, the loudness of a unit's first frames leans toward the
+ unit before it, each pitch pulse is blended with the one before below
+ 2 kHz (the stored pulses are rougher than Sam's speech), the gap between loud
+ vowels and quiet consonants is narrowed a little, and a treble lift
+ restores the brightness of the original recordings. Sam also gets a
+ tone correction, because his vowels come out with less of the
+ 2.5-4 kHz range than his own voice, louder and shorter hiss sounds (s, f, th), each frame's stored
+ loudness taken as the sound's own (so an "m" no longer drowns its
+ vowel), and a formant postfilter (as speech codecs use) that
+ clears the haze between his formants. When a phrase pauses, the filter
+ rings out instead of stopping dead.
+
+docs/mssam-format.md describes the voice data.
diff --git a/synth/mssam/lexicon.h b/synth/mssam/lexicon.h
new file mode 100644
index 0000000..95395fd
--- /dev/null
+++ b/synth/mssam/lexicon.h
@@ -0,0 +1,221 @@
+/* Pronunciations for the words a speaking clock says, so that synth/mssam
+ * works without a dictionary file. Taken from the CMU Pronouncing
+ * Dictionary (cmudict.dict), whose licence follows:
+ *
+ * Copyright (C) 1993-2015 Carnegie Mellon University. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * The contents of this file are deemed to be source code.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND
+ * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
+ * NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/* sorted by word, for bsearch */
+static const struct { const char *word, *phones; } lexicon[] = {
+ {"a", "AH0"},
+ {"accurate", "AE1 K Y ER0 AH0 T"},
+ {"after", "AE1 F T ER0"},
+ {"afternoon", "AE2 F T ER0 N UW1 N"},
+ {"am", "AE1 M"},
+ {"an", "AE1 N"},
+ {"and", "AH0 N D"},
+ {"april", "EY1 P R AH0 L"},
+ {"at", "AE1 T"},
+ {"august", "AA1 G AH0 S T"},
+ {"b", "B IY1"},
+ {"be", "B IY1"},
+ {"beep", "B IY1 P"},
+ {"by", "B AY1"},
+ {"c", "S IY1"},
+ {"calling", "K AO1 L IH0 NG"},
+ {"clock", "K L AA1 K"},
+ {"computer", "K AH0 M P Y UW1 T ER0"},
+ {"coordinated", "K OW0 AO1 R D AH0 N EY0 T IH0 D"},
+ {"d", "D IY1"},
+ {"daylight", "D EY1 L AY2 T"},
+ {"december", "D IH0 S EH1 M B ER0"},
+ {"e", "IY1"},
+ {"eight", "EY1 T"},
+ {"eighteen", "EY0 T IY1 N"},
+ {"eighteenth", "EY0 T IY1 N TH"},
+ {"eighth", "EY1 T TH"},
+ {"eighty", "EY1 T IY0"},
+ {"eleven", "IH0 L EH1 V AH0 N"},
+ {"eleventh", "IH0 L EH1 V AH0 N TH"},
+ {"evening", "IY1 V N IH0 NG"},
+ {"exactly", "IH0 G Z AE1 K T L IY0"},
+ {"f", "EH1 F"},
+ {"february", "F EH1 B Y AH0 W EH2 R IY0"},
+ {"fifteen", "F IH0 F T IY1 N"},
+ {"fifteenth", "F IH0 F T IY1 N TH"},
+ {"fifth", "F IH1 F TH"},
+ {"fifty", "F IH1 F T IY0"},
+ {"first", "F ER1 S T"},
+ {"five", "F AY1 V"},
+ {"for", "F AO1 R"},
+ {"forty", "F AO1 R T IY0"},
+ {"four", "F AO1 R"},
+ {"fourteen", "F AO1 R T IY1 N"},
+ {"fourteenth", "F AO1 R T IY1 N TH"},
+ {"fourth", "F AO1 R TH"},
+ {"friday", "F R AY1 D IY0"},
+ {"g", "JH IY1"},
+ {"good", "G UH1 D"},
+ {"greenwich", "G R EH1 N IH0 CH"},
+ {"h", "EY1 CH"},
+ {"half", "HH AE1 F"},
+ {"hear", "HH IY1 R"},
+ {"hello", "HH AH0 L OW1"},
+ {"here", "HH IY1 R"},
+ {"hour", "AW1 ER0"},
+ {"hours", "AW1 ER0 Z"},
+ {"how", "HH AW1"},
+ {"hundred", "HH AH1 N D R AH0 D"},
+ {"i", "AY1"},
+ {"is", "IH1 Z"},
+ {"it", "IH1 T"},
+ {"it's", "IH1 T S"},
+ {"its", "IH1 T S"},
+ {"j", "JH EY1"},
+ {"january", "JH AE1 N Y UW0 EH2 R IY0"},
+ {"july", "JH UW2 L AY1"},
+ {"june", "JH UW1 N"},
+ {"k", "K EY1"},
+ {"l", "EH1 L"},
+ {"local", "L OW1 K AH0 L"},
+ {"m", "EH1 M"},
+ {"march", "M AA1 R CH"},
+ {"mary", "M EH1 R IY0"},
+ {"may", "M EY1"},
+ {"me", "M IY1"},
+ {"mean", "M IY1 N"},
+ {"microsoft", "M AY1 K R OW2 S AO1 F T"},
+ {"midnight", "M IH1 D N AY2 T"},
+ {"mike", "M AY1 K"},
+ {"million", "M IH1 L Y AH0 N"},
+ {"minute", "M IH1 N AH0 T"},
+ {"minutes", "M IH1 N AH0 T S"},
+ {"monday", "M AH1 N D IY0"},
+ {"morning", "M AO1 R N IH0 NG"},
+ {"my", "M AY1"},
+ {"n", "EH1 N"},
+ {"name", "N EY1 M"},
+ {"next", "N EH1 K S T"},
+ {"night", "N AY1 T"},
+ {"nine", "N AY1 N"},
+ {"nineteen", "N AY1 N T IY1 N"},
+ {"nineteenth", "N AY1 N T IY1 N TH"},
+ {"ninety", "N AY1 N T IY0"},
+ {"ninth", "N AY1 N TH"},
+ {"no", "N OW1"},
+ {"noon", "N UW1 N"},
+ {"not", "N AA1 T"},
+ {"november", "N OW0 V EH1 M B ER0"},
+ {"now", "N AW1"},
+ {"o", "OW1"},
+ {"o'clock", "AH0 K L AA1 K"},
+ {"october", "AA0 K T OW1 B ER0"},
+ {"of", "AH1 V"},
+ {"oh", "OW1"},
+ {"on", "AA1 N"},
+ {"one", "W AH1 N"},
+ {"p", "P IY1"},
+ {"past", "P AE1 S T"},
+ {"please", "P L IY1 Z"},
+ {"pm", "P IY1 EH1 M"},
+ {"precisely", "P R IH0 S AY1 S L IY0"},
+ {"q", "K Y UW1"},
+ {"quarter", "K W AO1 R T ER0"},
+ {"r", "AA1 R"},
+ {"s", "EH1 S"},
+ {"sam", "S AE1 M"},
+ {"saturday", "S AE1 T ER0 D IY0"},
+ {"second", "S EH1 K AH0 N D"},
+ {"seconds", "S EH1 K AH0 N D Z"},
+ {"september", "S EH0 P T EH1 M B ER0"},
+ {"seven", "S EH1 V AH0 N"},
+ {"seventeen", "S EH1 V AH0 N T IY1 N"},
+ {"seventeenth", "S EH1 V AH0 N T IY1 N TH"},
+ {"seventh", "S EH1 V AH0 N TH"},
+ {"seventy", "S EH1 V AH0 N T IY0"},
+ {"signal", "S IH1 G N AH0 L"},
+ {"six", "S IH1 K S"},
+ {"sixteen", "S IH0 K S T IY1 N"},
+ {"sixteenth", "S IH0 K S T IY1 N TH"},
+ {"sixth", "S IH1 K S TH"},
+ {"sixty", "S IH1 K S T IY0"},
+ {"speaking", "S P IY1 K IH0 NG"},
+ {"speech", "S P IY1 CH"},
+ {"sponsored", "S P AA1 N S ER0 D"},
+ {"standard", "S T AE1 N D ER0 D"},
+ {"stroke", "S T R OW1 K"},
+ {"sunday", "S AH1 N D EY2"},
+ {"t", "T IY1"},
+ {"talking", "T AO1 K IH0 NG"},
+ {"ten", "T EH1 N"},
+ {"tenth", "T EH1 N TH"},
+ {"thank", "TH AE1 NG K"},
+ {"thanks", "TH AE1 NG K S"},
+ {"the", "DH AH0"},
+ {"there", "DH EH1 R"},
+ {"third", "TH ER1 D"},
+ {"thirteen", "TH ER1 T IY1 N"},
+ {"thirteenth", "TH ER1 T IY1 N TH"},
+ {"thirtieth", "TH ER1 T IY0 AH0 TH"},
+ {"thirty", "TH ER1 D IY2"},
+ {"this", "DH IH1 S"},
+ {"thousand", "TH AW1 Z AH0 N D"},
+ {"three", "TH R IY1"},
+ {"thursday", "TH ER1 Z D EY2"},
+ {"time", "T AY1 M"},
+ {"to", "T UW1"},
+ {"today", "T AH0 D EY1"},
+ {"tomorrow", "T AH0 M AA1 R OW2"},
+ {"tone", "T OW1 N"},
+ {"tuesday", "T UW1 Z D IY0"},
+ {"twelfth", "T W EH1 L F TH"},
+ {"twelve", "T W EH1 L V"},
+ {"twentieth", "T W EH1 N T IY0 AH0 TH"},
+ {"twenty", "T W EH1 N T IY0"},
+ {"two", "T UW1"},
+ {"u", "Y UW1"},
+ {"universal", "Y UW2 N AH0 V ER1 S AH0 L"},
+ {"v", "V IY1"},
+ {"voice", "V OY1 S"},
+ {"w", "D AH1 B AH0 L Y UW0"},
+ {"wednesday", "W EH1 N Z D IY0"},
+ {"welcome", "W EH1 L K AH0 M"},
+ {"what", "W AH1 T"},
+ {"when", "W EH1 N"},
+ {"where", "W EH1 R"},
+ {"who", "HH UW1"},
+ {"why", "W AY1"},
+ {"will", "W IH1 L"},
+ {"x", "EH1 K S"},
+ {"y", "W AY1"},
+ {"yes", "Y EH1 S"},
+ {"you", "Y UW1"},
+ {"z", "Z IY1"},
+ {"zero", "Z IH1 R OW0"},
+ {"zulu", "Z UW1 L UW2"},
+};
diff --git a/synth/mssam/mssam.c b/synth/mssam/mssam.c
new file mode 100644
index 0000000..813671a
--- /dev/null
+++ b/synth/mssam/mssam.c
@@ -0,0 +1,1235 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later
+ *
+ * mssam: our own synthesiser for the Microsoft Sam, Mike and Mary voices
+ * (and Mike and Mary for telephone).
+ *
+ * It reads the voice data (fetched by tools/fetch-mssam.py) and speaks with
+ * it: each sound of the text is given a recorded unit of the voice, picked
+ * by the voice's own context trees, and the units are joined with new pitch
+ * and timing. No Microsoft code is used or run. docs/mssam-format.md
+ * describes the data.
+ *
+ * mssam [-d DIR] [-v sam|mike|mary|mike-tel|mary-tel] [-r RATE] [-p PITCH] [-o OUT.wav] TEXT...
+ *
+ * RATE and PITCH are multipliers (1 is the voice's own). Without -o the
+ * WAV goes to standard output.
+ */
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#include "lexicon.h"
+
+#ifndef VOICEDIR
+#define VOICEDIR "/usr/local/share/mssam"
+#endif
+
+#define MAXORDER 24 /* LPC order: 20, or 12 for the telephone voices */
+#define ORDER V.order
+#define MAXCB 16
+#define MAXPH 64
+
+static void die(const char *fmt, const char *arg)
+{
+ fprintf(stderr, "mssam: ");
+ fprintf(stderr, fmt, arg);
+ fputc('\n', stderr);
+ exit(1);
+}
+
+static void *xmalloc(size_t n)
+{
+ void *p = calloc(1, n ? n : 1);
+ if (!p)
+ die("%s", "out of memory");
+ return p;
+}
+
+static uint8_t *slurp(const char *path, size_t *len)
+{
+ FILE *f = fopen(path, "rb");
+ uint8_t *d;
+ long n;
+
+ if (!f)
+ die("cannot open %s (run tools/fetch-mssam.py)", path);
+ fseek(f, 0, SEEK_END);
+ n = ftell(f);
+ fseek(f, 0, SEEK_SET);
+ d = xmalloc(n + 1);
+ if (fread(d, 1, n, f) != (size_t)n)
+ die("cannot read %s", path);
+ fclose(f);
+ *len = n;
+ return d;
+}
+
+static uint32_t le32(const uint8_t *p)
+{
+ return p[0] | p[1] << 8 | p[2] << 16 | (uint32_t)p[3] << 24;
+}
+
+static uint64_t le64(const uint8_t *p)
+{
+ return le32(p) | (uint64_t)le32(p + 4) << 32;
+}
+
+static float lef(const uint8_t *p)
+{
+ uint32_t u = le32(p);
+ float f;
+ memcpy(&f, &u, 4);
+ return f;
+}
+
+/* ---- the voice ---------------------------------------------------- */
+
+struct table { int cnt, dim; const uint8_t *v; }; /* cnt vectors of dim floats */
+
+struct node { int32_t yes, no; uint32_t q0, nq; };
+
+struct phone { char name[9]; uint32_t first, nnodes, node0; };
+
+static struct {
+ int rate, order, period; /* sample rate, LPC order, points in a stored pitch period */
+ int nlsf, na, nb;
+ struct table lsf[MAXCB], cba[MAXCB], cbb[MAXCB];
+ uint32_t nunits;
+ const uint8_t *units; /* nunits+1 offsets, then the units */
+ const uint8_t *ubase;
+ size_t invlen;
+
+ int nph, nq;
+ struct phone ph[MAXPH];
+ const uint8_t *q; /* nq pairs of masks */
+ const uint8_t *nodes;
+ const uint8_t *qlist;
+
+ float tone[4][2]; /* pitch at the start and end of a vowel */
+} V;
+
+enum { T_ACCENT, T_PLAIN, T_LASTACCENT, T_LAST };
+
+static const uint8_t *read_table(const uint8_t *p, struct table *t)
+{
+ t->cnt = le32(p);
+ t->dim = le32(p + 4);
+ t->v = p + 8;
+ return p + 8 + 4 * t->cnt * t->dim;
+}
+
+static void load_inventory(const char *path)
+{
+ const uint8_t *d = slurp(path, &V.invlen), *p;
+ int i, s;
+
+ V.rate = le32(d);
+ V.order = le32(d + 4);
+ if (V.order < 2 || V.order > MAXORDER || V.order % 2)
+ die("%s: not a voice this program knows", path);
+ V.nlsf = le32(d + 8);
+ V.na = le32(d + 12);
+ V.nb = le32(d + 16);
+ if (V.nlsf > MAXCB || V.na > MAXCB || V.nb > MAXCB)
+ die("%s: too many codebooks", path);
+ p = d + 28;
+ for (i = 0, s = 0; i < V.nlsf; i++) {
+ p = read_table(p, &V.lsf[i]);
+ s += V.lsf[i].dim;
+ }
+ if (s != ORDER)
+ die("%s: line spectrum codebooks do not add up", path);
+ for (i = 0, s = 0; i < V.na; i++) {
+ p = read_table(p, &V.cba[i]);
+ s += V.cba[i].dim;
+ }
+ V.period = s;
+ for (i = 0, s = 0; i < V.nb; i++) {
+ p = read_table(p, &V.cbb[i]);
+ s += V.cbb[i].dim;
+ }
+ if (s != V.period)
+ die("%s: excitation codebooks do not add up", path);
+ V.nunits = le32(p);
+ V.units = p + 8;
+ V.ubase = V.units + 4 * (V.nunits + 1);
+}
+
+static void load_tree(const char *path)
+{
+ size_t len;
+ const uint8_t *d = slurp(path, &len), *p;
+ int i;
+
+ if (len < 24 || memcmp(d, "MSSAMTR1", 8))
+ die("%s: not a tree file from tools/fetch-mssam.py", path);
+ V.nph = le32(d + 8);
+ V.nq = le32(d + 12);
+ if (V.nph > MAXPH)
+ die("%s: too many sounds", path);
+ V.q = d + 24;
+ p = V.q + 16 * V.nq;
+ for (i = 0; i < V.nph; i++, p += 20) {
+ memcpy(V.ph[i].name, p, 8);
+ V.ph[i].first = le32(p + 8);
+ V.ph[i].nnodes = le32(p + 12);
+ V.ph[i].node0 = le32(p + 16);
+ }
+ V.nodes = p + 8;
+ V.qlist = V.nodes + 16 * le32(p);
+}
+
+/* The tone table: lines like "H (179) on: m=129= sd=34=; off: m=141= sd=21=" */
+static void load_tones(const char *path)
+{
+ static const char *names[4] = { "H", "_", "h]", "_]" };
+ static const float dflt[4][2] = { { 129, 141 }, { 112, 109 }, { 104, 86 }, { 92, 81 } };
+ FILE *f = fopen(path, "r");
+ char line[256], name[16];
+ float on, off;
+ int i;
+
+ memcpy(V.tone, dflt, sizeof(V.tone));
+ if (!f)
+ return;
+ while (fgets(line, sizeof(line), f))
+ if (sscanf(line, "%15s (%*d) on: m=%f= sd=%*f=; off: m=%f=", name, &on, &off) == 3)
+ for (i = 0; i < 4; i++)
+ if (!strcmp(name, names[i])) {
+ V.tone[i][0] = on;
+ V.tone[i][1] = off;
+ }
+ fclose(f);
+}
+
+static int phone_index(const char *name)
+{
+ int i;
+ for (i = 0; i < V.nph; i++)
+ if (!strcmp(V.ph[i].name, name))
+ return i;
+ return -1;
+}
+
+/* ---- picking units ------------------------------------------------ */
+
+enum { POS_BEGIN, POS_END, POS_SINGLE, POS_INSIDE };
+
+/* the unit for sound p, at word position pos, between sounds l and r */
+static int pick_unit(int p, int pos, int l, int r)
+{
+ const struct phone *ph = &V.ph[p];
+ uint32_t k = 0, i;
+
+ if (!ph->nnodes)
+ return -1;
+ for (;;) {
+ const uint8_t *n = V.nodes + 16 * (ph->node0 + k);
+ int32_t yes = (int32_t)le32(n), no = (int32_t)le32(n + 4);
+ uint32_t q0 = le32(n + 8), nq = le32(n + 12);
+ int hit = 0;
+
+ if (yes < 0)
+ return ph->first + no + 1; /* unit 0 is not a sound */
+ for (i = 0; i < nq && !hit; i++) {
+ const uint8_t *q = V.q + 16 * (V.qlist[2 * (q0 + i)] | V.qlist[2 * (q0 + i) + 1] << 8);
+ uint64_t left = le64(q), right = le64(q + 8);
+ hit = (left >> l & 1) && (left >> (60 + pos) & 1) && (right >> r & 1);
+ }
+ k = hit ? (uint32_t)yes : (uint32_t)no;
+ if (k >= ph->nnodes)
+ return -1;
+ }
+}
+
+/* ---- decoding units ----------------------------------------------- */
+
+struct frame {
+ int voiced, len, orig;
+ float gain, lsf[MAXORDER];
+ float *period; /* V.period points, for voiced frames */
+};
+
+/* Decode unit k into *out (a malloc'd array); returns the frame count. */
+static int decode_unit(uint32_t k, struct frame **out)
+{
+ uint32_t a, b, n, i, j, c;
+ const uint8_t *u, *end;
+ struct frame *f;
+ float *cur = NULL;
+
+ *out = NULL;
+ if (k >= V.nunits)
+ return 0;
+ a = le32(V.units + 4 * k);
+ b = le32(V.units + 4 * (k + 1));
+ if (b < a + 4 || V.ubase + b > (const uint8_t *)V.units + V.invlen)
+ return 0;
+ u = V.ubase + a;
+ end = V.ubase + b;
+ n = le32(u);
+ u += 4;
+ f = xmalloc(n * sizeof(*f));
+ /* frame headers: a voiced frame is its pitch period in samples, as
+ * 0x7f bytes (127 each) and a last byte below 0x7f; an unvoiced frame
+ * is 0x80 bytes and a last byte above 0x80, its length */
+ for (i = 0; i < n; i++) {
+ if (u >= end)
+ goto bad;
+ if (*u <= 0x7f) {
+ for (c = 0; *u == 0x7f; u++)
+ c++;
+ f[i].voiced = 1;
+ f[i].len = 127 * c + *u++;
+ } else {
+ for (c = 0; *u == 0x80; u++)
+ c++;
+ f[i].len = 128 * (c ? c - 1 : 0) + *u++;
+ /* in the 8 kHz voices this byte does not fit as a length;
+ * 5 ms frames match the units' recorded lengths best */
+ if (V.rate < 16000)
+ f[i].len = V.rate / 200;
+ }
+ }
+ /* then a line spectrum codebook index per codebook per frame */
+ if (u + (V.nlsf + 4) * n > end)
+ goto bad;
+ for (i = 0; i < n; i++) {
+ int o = 0;
+ for (j = 0; j < (uint32_t)V.nlsf; j++) {
+ const struct table *t = &V.lsf[j];
+ int idx = u[V.nlsf * i + j] % t->cnt, d;
+ for (d = 0; d < t->dim; d++)
+ f[i].lsf[o++] = lef(t->v + 4 * (idx * t->dim + d));
+ }
+ }
+ u += V.nlsf * n;
+ for (i = 0; i < n; i++)
+ f[i].gain = lef(u + 4 * i);
+ u += 4 * n;
+ /* then the excitation of each voiced frame: the first frame of a voiced
+ * run holds a whole pitch period (codebooks A), each later one holds the
+ * change from the frame before (codebooks B) */
+ for (i = 0; i < n; i++) {
+ const struct table *cb;
+ int ncb, o = 0, d;
+ float *per;
+
+ if (!f[i].voiced) {
+ cur = NULL;
+ continue;
+ }
+ cb = cur ? V.cbb : V.cba;
+ ncb = cur ? V.nb : V.na;
+ if (u + ncb > end)
+ goto bad;
+ per = xmalloc(V.period * sizeof(float));
+ if (cur)
+ memcpy(per, cur, V.period * sizeof(float));
+ for (j = 0; j < (uint32_t)ncb; j++) {
+ int idx = u[j] % cb[j].cnt;
+ for (d = 0; d < cb[j].dim; d++, o++)
+ per[o] += lef(cb[j].v + 4 * (idx * cb[j].dim + d));
+ }
+ u += ncb;
+ f[i].period = cur = per;
+ }
+ *out = f;
+ return n;
+bad:
+ for (i = 0; i < n; i++)
+ free(f[i].period);
+ free(f);
+ return 0;
+}
+
+/* ---- text to sounds ----------------------------------------------- */
+
+struct sound {
+ int ph, pos, vowel; /* vowel: 0, or 1 + the tone */
+ float f0[2]; /* a vowel's pitch where it starts and ends, Hz */
+ int pause; /* > 0: a pause of this many ms instead of a sound */
+ float len; /* its length against the recording's (0: 1) */
+ int stressed; /* a vowel with the word's main stress */
+};
+
+static struct sound snd[4096];
+static int nsnd;
+
+/* cmudict.dict, if there is one: its lines, sorted by word */
+static char **dict;
+static size_t ndict;
+
+static int wordcmp(const char *a, const char *b)
+{
+ for (; *a && *a != ' ' && *a == *b; a++, b++)
+ ;
+ return (unsigned char)(*a == ' ' ? 0 : *a) - (unsigned char)(*b == ' ' ? 0 : *b);
+}
+
+static int linecmp(const void *a, const void *b)
+{
+ return wordcmp(*(char *const *)a, *(char *const *)b);
+}
+
+static void load_dict(const char *path)
+{
+ size_t len, i, n = 0;
+ char *d = (char *)slurp(path, &len), *p;
+
+ for (i = 0; i < len; i++)
+ n += d[i] == '\n';
+ dict = xmalloc((n + 1) * sizeof(char *));
+ for (p = strtok(d, "\n"); p; p = strtok(NULL, "\n")) {
+ char *sp = strchr(p, ' '), *hash = strchr(p, '#');
+ if (!sp || p[0] == ';' || ndict > n)
+ continue;
+ if (hash)
+ *hash = 0; /* a comment */
+ if (sp > p && sp[-1] == ')')
+ continue; /* other pronunciations: word(2) */
+ dict[ndict++] = p;
+ }
+ qsort(dict, ndict, sizeof(char *), linecmp);
+}
+
+static const char *dict_lookup(const char *w)
+{
+ size_t lo = 0, hi = ndict;
+ while (lo < hi) {
+ size_t mid = (lo + hi) / 2;
+ int c = wordcmp(dict[mid], w);
+ if (!c)
+ return strchr(dict[mid], ' ') + 1;
+ if (c < 0)
+ lo = mid + 1;
+ else
+ hi = mid;
+ }
+ return NULL;
+}
+
+static int lexcmp(const void *a, const void *b)
+{
+ return strcmp(a, *(const char *const *)b);
+}
+
+static const char *letters[26] = {
+ "EY1", "B IY1", "S IY1", "D IY1", "IY1", "EH1 F", "JH IY1", "EY1 CH", "AY1",
+ "JH EY1", "K EY1", "EH1 L", "EH1 M", "EH1 N", "OW1", "P IY1", "K Y UW1",
+ "AA1 R", "EH1 S", "T IY1", "Y UW1", "V IY1", "D AH1 B AH0 L Y UW0",
+ "EH1 K S", "W AY1", "Z IY1",
+};
+
+static const char *pronounce(const char *w)
+{
+ const void *e = bsearch(w, lexicon, sizeof(lexicon) / sizeof(lexicon[0]),
+ sizeof(lexicon[0]), lexcmp);
+ if (e)
+ return ((const char *const *)e)[1];
+ return dict_lookup(w);
+}
+
+static int content_word(const char *w)
+{
+ static const char *fn[] = { "a", "an", "and", "at", "be", "by", "for", "in", "is", "it",
+ "it's", "its", "of", "on", "or", "that", "the", "this", "to", "was", "will", NULL };
+ int i;
+ for (i = 0; fn[i]; i++)
+ if (!strcmp(w, fn[i]))
+ return 0;
+ return 1;
+}
+
+static void add_pause(int ms)
+{
+ if (nsnd && snd[nsnd - 1].pause)
+ snd[nsnd - 1].pause = ms > snd[nsnd - 1].pause ? ms : snd[nsnd - 1].pause;
+ else if (nsnd < (int)(sizeof(snd) / sizeof(snd[0])))
+ snd[nsnd++] = (struct sound){ .ph = -1, .pause = ms };
+}
+
+/* The sounds of one word, from its phones ("AE1 T"). */
+static void add_word(const char *w, const char *phones, int content)
+{
+ char buf[256], *t, *save;
+ int first = nsnd;
+
+ snprintf(buf, sizeof(buf), "%s", phones);
+ for (t = strtok_r(buf, " \t\r\n", &save); t; t = strtok_r(NULL, " \t\r\n", &save)) {
+ char name[16];
+ size_t l = strlen(t);
+ int stress = -1, p;
+
+ if (l >= sizeof(name) - 2 || nsnd >= (int)(sizeof(snd) / sizeof(snd[0])))
+ break;
+ memcpy(name, t, l + 1);
+ if (isdigit((unsigned char)name[l - 1])) {
+ stress = name[l - 1] - '0';
+ name[l - 1] = stress ? '1' : '0'; /* the voices have stress 1 and 0 */
+ }
+ p = phone_index(name);
+ if (p < 0 && stress >= 0) {
+ name[l - 1] = '1';
+ p = phone_index(name);
+ }
+ if (p < 0)
+ continue;
+ snd[nsnd++] = (struct sound){ .ph = p,
+ .vowel = stress < 0 ? 0 : 1 + (stress == 1 && content ? T_ACCENT : T_PLAIN),
+ .stressed = stress == 1 };
+ }
+ (void)w;
+ for (int i = first; i < nsnd; i++)
+ snd[i].pos = nsnd - first == 1 ? POS_SINGLE : i == first ? POS_BEGIN :
+ i == nsnd - 1 ? POS_END : POS_INSIDE;
+}
+
+static void say_word(const char *w)
+{
+ const char *ph = pronounce(w);
+ char one[2] = { 0, 0 };
+
+ if (ph) {
+ add_word(w, ph, content_word(w));
+ return;
+ }
+ /* not known: spell it */
+ for (; *w; w++)
+ if (*w >= 'a' && *w <= 'z') {
+ one[0] = *w;
+ add_word(one, letters[*w - 'a'], 1);
+ }
+}
+
+static void say_number(long n, char *out, size_t sz);
+
+static const char *ones[] = { "zero", "one", "two", "three", "four", "five", "six", "seven",
+ "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen",
+ "sixteen", "seventeen", "eighteen", "nineteen" };
+static const char *tens[] = { "", "", "twenty", "thirty", "forty", "fifty", "sixty",
+ "seventy", "eighty", "ninety" };
+
+static void say_number(long n, char *out, size_t sz)
+{
+ size_t l = strlen(out);
+ if (n >= 1000000) {
+ say_number(n / 1000000, out, sz);
+ l = strlen(out);
+ snprintf(out + l, sz - l, " million");
+ if (n % 1000000)
+ say_number(n % 1000000, out, sz);
+ } else if (n >= 1000) {
+ say_number(n / 1000, out, sz);
+ l = strlen(out);
+ snprintf(out + l, sz - l, " thousand");
+ if (n % 1000)
+ say_number(n % 1000, out, sz);
+ } else if (n >= 100) {
+ snprintf(out + l, sz - l, " %s hundred", ones[n / 100]);
+ if (n % 100) {
+ l = strlen(out);
+ snprintf(out + l, sz - l, " and");
+ say_number(n % 100, out, sz);
+ }
+ } else if (n >= 20) {
+ snprintf(out + l, sz - l, " %s", tens[n / 10]);
+ if (n % 10)
+ say_number(n % 10, out, sz);
+ } else {
+ snprintf(out + l, sz - l, " %s", ones[n]);
+ }
+}
+
+/* The pitch of a phrase, in Sam's Hz (other voices are scaled to theirs):
+ * it starts near TOP and sinks to BOTTOM, the first accented word stands
+ * out by ACCENT1 and later ones by ACCENT2, and the last vowel falls to
+ * END at the end of a sentence, or only to MORE before a comma, where more
+ * is to come. Measured from Sam's own recordings. */
+static double FINAL_V = 1.3, FINAL_C = 0.7, GOUT; /* GOUT: Sam only */
+static const double TOP = 102, BOTTOM = 94, ACCENT1 = 32, ACCENT2 = 22, END = 73, MORE = 98;
+
+static void end_phrase(int from, int last)
+{
+ int i, nv = 0, j = 0, accents = 0;
+
+ for (i = from; i < nsnd; i++)
+ nv += snd[i].vowel != 0;
+ /* Sam does not accent a sentence's last word ("seconds", "Sam") */
+ if (last) {
+ int w, k;
+ for (i = nsnd - 1; i >= from && snd[i].vowel != 1 + T_ACCENT; i--)
+ ;
+ for (w = i; w > from && snd[w].pos != POS_BEGIN && snd[w].pos != POS_SINGLE; w--)
+ ;
+ /* only when another word carries the phrase's accent */
+ for (k = from; k < w && snd[k].vowel != 1 + T_ACCENT; k++)
+ ;
+ if (i >= from && k < w)
+ for (; i >= w; i--)
+ if (snd[i].vowel == 1 + T_ACCENT)
+ snd[i].vowel = 1 + T_PLAIN;
+ }
+ for (i = from; i < nsnd; i++) {
+ double x0, x1, b0, b1, lift = 0;
+ if (!snd[i].vowel)
+ continue;
+ x0 = nv > 1 ? (double)j / nv : 0;
+ x1 = nv > 1 ? (j + 1.0) / nv : 1;
+ b0 = TOP - (TOP - BOTTOM) * x0;
+ b1 = TOP - (TOP - BOTTOM) * x1;
+ if (snd[i].vowel == 1 + T_ACCENT)
+ lift = accents++ ? ACCENT2 : ACCENT1;
+ snd[i].f0[0] = b0 + lift;
+ snd[i].f0[1] = b1 + lift * 0.6;
+ if (++j == nv) {
+ /* a sentence's last word falls from the plain line; a
+ * word before a comma keeps its accent and falls less */
+ snd[i].f0[0] = last ? b0 : b0 + lift;
+ snd[i].f0[1] = last ? END : MORE;
+ /* he holds a sentence's last vowel when it is stressed and
+ * clips what follows it ("Sam") */
+ if (last && snd[i].stressed) {
+ snd[i].len = FINAL_V;
+ for (int z = i + 1; z < nsnd; z++)
+ snd[z].len = FINAL_C;
+ }
+ }
+ }
+}
+
+static void parse_text(const char *text)
+{
+ char word[64], words[512];
+ const char *s = text;
+ int phrase = 0;
+
+ add_pause(120);
+ while (*s) {
+ size_t l = 0;
+
+ if (isdigit((unsigned char)*s)) {
+ /* a number; after a ':' a minute ("05" is "oh five") */
+ long n = 0;
+ int digits = 0, minute = s > text && s[-1] == ':';
+ while (isdigit((unsigned char)*s) && digits < 9)
+ n = n * 10 + (*s++ - '0'), digits++;
+ words[0] = 0;
+ if (minute && n == 0)
+ snprintf(words, sizeof(words), " hundred");
+ else if (minute && n < 10)
+ snprintf(words, sizeof(words), " oh %s", ones[n]);
+ else
+ say_number(n, words, sizeof(words));
+ for (char *t = strtok(words, " "); t; t = strtok(NULL, " "))
+ say_word(t);
+ continue;
+ }
+ if (isalpha((unsigned char)*s)) {
+ while ((isalpha((unsigned char)*s) || *s == '\'') && l < sizeof(word) - 1)
+ word[l++] = tolower((unsigned char)*s++);
+ word[l] = 0;
+ /* "a.m.", "p.m." and the like: letters */
+ if (l == 1 && *s == '.' && isalpha((unsigned char)s[1]) && s[2] == '.') {
+ say_word(word);
+ word[0] = tolower((unsigned char)s[1]);
+ s += 3;
+ add_word(word, letters[word[0] - 'a'], 1);
+ continue;
+ }
+ if (l == 1 && word[0] != 'a' && word[0] != 'i')
+ add_word(word, letters[word[0] - 'a'], 1);
+ else
+ say_word(word);
+ continue;
+ }
+ if (strchr(",;:", *s) && !(*s == ':' && isdigit((unsigned char)s[1]))) {
+ end_phrase(phrase, 0);
+ add_pause(180);
+ phrase = nsnd;
+ } else if (strchr(".!?", *s)) {
+ end_phrase(phrase, 1);
+ add_pause(350);
+ phrase = nsnd;
+ }
+ s++;
+ }
+ end_phrase(phrase, 1);
+ add_pause(120);
+}
+
+/* ---- speaking ----------------------------------------------------- */
+
+static void lsf_to_lpc(const float *lsf, double *a)
+{
+ double p[MAXORDER + 2] = { 1 }, q[MAXORDER + 2] = { 1 };
+ int np = 1, nq = 1, i, j;
+
+ for (i = 0; i < ORDER; i++) {
+ double c = -2 * cos(2 * M_PI * lsf[i]), *v = i % 2 ? q : p;
+ int *n = i % 2 ? &nq : &np;
+ for (j = *n + 1; j >= 1; j--)
+ v[j] += c * v[j - 1] + (j >= 2 ? v[j - 2] : 0);
+ *n += 2;
+ }
+ /* p *= (1 + z^-1), q *= (1 - z^-1) */
+ for (j = np; j >= 1; j--)
+ p[j] += p[j - 1];
+ for (j = nq; j >= 1; j--)
+ q[j] -= q[j - 1];
+ for (i = 0; i <= ORDER; i++)
+ a[i] = 0.5 * (p[i] + q[i]);
+}
+
+static unsigned rng = 1;
+static double noise(void)
+{
+ /* sum of uniforms: near enough to Gaussian for frication */
+ double s = 0;
+ int i;
+ for (i = 0; i < 4; i++) {
+ rng = rng * 1103515245 + 12345;
+ s += (rng >> 8 & 0xffff) / 65536.0 - 0.5;
+ }
+ return s * 1.732;
+}
+
+static float *out;
+static size_t nout, aout;
+
+static void emit(double v)
+{
+ if (nout == aout) {
+ aout = aout ? 2 * aout : 1 << 16;
+ out = realloc(out, aout * sizeof(*out));
+ if (!out)
+ die("%s", "out of memory");
+ }
+ out[nout++] = v;
+}
+
+/* Each pitch pulse is blended with the ones before: the stored pulses
+ * vary more from one to the next than Sam's own speech does, which sounds
+ * rough. Only the harmonics below SMOOTH_HZ are blended; above it his
+ * voice is breathy, and blending there makes it buzz. */
+static const double SMOOTH = 0.7, SMOOTH_HZ = 2000;
+static double sre[1024], sim[1024];
+static int have_per;
+
+/* One stored period (V.period points) at its real length n. It is one
+ * period of a periodic signal, so it is resampled through its spectrum,
+ * keeping the harmonics that fit below the new Nyquist frequency. */
+
+static void stretch(const float *p, double *e, int n)
+{
+ static double cre[1024], cim[1024], re[1024], im[1024];
+ int N = V.period, H = N / 2, h = n / 2 < H ? n / 2 : H, k, j;
+
+ for (k = 0; k <= H; k++) {
+ double a = 0, b = 0;
+ for (j = 0; j < N; j++) {
+ double w = 2 * M_PI * k * j / N;
+ a += p[j] * cos(w);
+ b -= p[j] * sin(w);
+ }
+ cre[k] = a;
+ cim[k] = b;
+ if (have_per) {
+ sre[k] = SMOOTH * sre[k] + (1 - SMOOTH) * a;
+ sim[k] = SMOOTH * sim[k] + (1 - SMOOTH) * b;
+ } else {
+ sre[k] = a;
+ sim[k] = b;
+ }
+ }
+ have_per = 1;
+ for (k = 0; k <= h; k++) {
+ double hz = (double)k * V.rate / n, m = hz < SMOOTH_HZ ? 1 :
+ hz < 1.5 * SMOOTH_HZ ? 1 - (hz - SMOOTH_HZ) / (0.5 * SMOOTH_HZ) : 0;
+ re[k] = m * sre[k] + (1 - m) * cre[k];
+ im[k] = m * sim[k] + (1 - m) * cim[k];
+ }
+ for (j = 0; j < n; j++) {
+ double v = re[0];
+ for (k = 1; k <= h; k++) {
+ double w = 2 * M_PI * k * j / n, c = k == h && 2 * h == n ? 1 : 2;
+ v += c * (re[k] * cos(w) - im[k] * sin(w));
+ }
+ e[j] = v / N;
+ }
+}
+
+/* The loudness of a unit's first frames leans toward the end of the unit
+ * before, so that joins do not jump. */
+static const double JOIN = 0.6, LIFTC = 0.65;
+/* Sam's hiss and frication come out quieter than in his recordings. */
+static double FRIC = 1;
+/* He also says them quicker than they were recorded, against his vowels. */
+static double hiss_rate = 1;
+static double last_gain;
+static int last_unvoiced;
+
+/* A formant postfilter, as speech codecs use: A(z/PF_NUM) / A(z/PF_DEN)
+ * deepens the valleys between the formants, where the coded excitation
+ * leaves a haze that sounds muffled and rough. Mike and Mary are clear
+ * without it. */
+static double PF_NUM, PF_DEN; /* Sam only: 0.5 and 0.75 */
+static double pf_x[MAXORDER], pf_y[MAXORDER], prev_y, pf_tilt, pf_last;
+static int pf_n;
+
+/* The postfilter also tilts the spectrum down; as in G.729, a first-order
+ * filter set from its impulse response takes the tilt back out. */
+static void pf_retilt(const double *a)
+{
+ double h[48] = { 1 }, r0 = 0, r1 = 0;
+ int n, j;
+
+ for (n = 0; n < 48; n++) {
+ double gn = 1, gd = 1, v = n == 0;
+ for (j = 0; j < ORDER && j < n; j++) {
+ gn *= PF_NUM;
+ gd *= PF_DEN;
+ v += a[j + 1] * gn * (n - j - 1 == 0) - a[j + 1] * gd * h[n - j - 1];
+ }
+ h[n] = v;
+ }
+ for (n = 0; n < 48; n++) {
+ r0 += h[n] * h[n];
+ if (n + 1 < 48)
+ r1 += h[n] * h[n + 1];
+ }
+ pf_tilt = r1 / (r0 + 1e-12);
+}
+
+static void post(const double *a, double y)
+{
+ double v = y, gn = 1, gd = 1, t;
+ int j;
+
+ if (pf_n++ % 32 == 0)
+ pf_retilt(a);
+
+ for (j = 0; j < ORDER; j++) {
+ gn *= PF_NUM;
+ gd *= PF_DEN;
+ v += a[j + 1] * gn * pf_x[j] - a[j + 1] * gd * pf_y[j];
+ }
+ memmove(pf_x + 1, pf_x, (ORDER - 1) * sizeof(double));
+ pf_x[0] = y;
+ memmove(pf_y + 1, pf_y, (ORDER - 1) * sizeof(double));
+ pf_y[0] = v;
+ t = v - pf_tilt * pf_last;
+ pf_last = v;
+ v = t;
+ /* the voices' spectra lack the treble of the recordings
+ * (about 10 dB above 3 kHz); this lift matches it */
+ emit(v - LIFTC * prev_y);
+ prev_y = v;
+}
+
+static double gain_at(double g, int k)
+{
+ double w = k == 0 ? JOIN : k == 1 ? JOIN / 2 : 0;
+ if (w <= 0 || last_gain <= 0 || g <= 0)
+ return g;
+ return exp((1 - w) * log(g) + w * log(last_gain));
+}
+
+/* The RMS of a filter's impulse response: its gain on a flat excitation. */
+static double filter_gain(const double *a)
+{
+ double hm[MAXORDER] = { 0 }, E = 0;
+ int k, j;
+
+ for (k = 0; k < 400; k++) {
+ double y = k == 0;
+ for (j = 0; j < ORDER; j++)
+ y -= a[j + 1] * hm[j];
+ memmove(hm + 1, hm, (ORDER - 1) * sizeof(double));
+ hm[0] = y;
+ E += y * y;
+ }
+ return sqrt(E);
+}
+
+static void render(double rate, double pitch)
+{
+ /* the voice's own pitch against Sam's (plain syllables: 112 Hz) */
+ double vscale = V.tone[T_PLAIN][0] / 112.0;
+ static double mem[MAXORDER];
+ static float last[MAXORDER];
+ static int have_last;
+ static double last_lvl;
+ double a[MAXORDER + 1] = { 1 }, *e = NULL;
+ int i, j, k, ne = 0;
+
+ for (i = 0; i < nsnd; i++) {
+ struct frame *f;
+ double f0a, f0b, total, t, *src, hiss_end = last_unvoiced ? last_gain : 0;
+ int seen_voiced = 0;
+ int n, l, r, unit, prev, next;
+
+ if (snd[i].pause) {
+ /* the filter rings out into the pause instead of being
+ * cut off, which clicks */
+ for (k = 0; k < snd[i].pause * V.rate / 1000; k++) {
+ double y = 0;
+ for (j = 0; j < ORDER; j++)
+ y -= a[j + 1] * mem[j];
+ if (k > 200)
+ y *= k < 1200 ? 1 - (k - 200) / 1000.0 : 0;
+ memmove(mem + 1, mem, (ORDER - 1) * sizeof(double));
+ mem[0] = y;
+ post(a, y);
+ }
+ memset(mem, 0, sizeof(mem));
+ memset(pf_x, 0, sizeof(pf_x));
+ memset(pf_y, 0, sizeof(pf_y));
+ prev_y = 0;
+ have_last = 0;
+ last_gain = 0;
+ last_unvoiced = 0;
+ continue;
+ }
+ /* the sounds either side; a pause counts as silence */
+ l = i > 0 && !snd[i - 1].pause ? snd[i - 1].ph : -1;
+ r = i + 1 < nsnd && !snd[i + 1].pause ? snd[i + 1].ph : -1;
+ if (l < 0)
+ l = phone_index("SILb") >= 0 ? phone_index("SILb") : phone_index("SIL");
+ if (r < 0)
+ r = phone_index("SILe") >= 0 ? phone_index("SILe") : phone_index("SIL");
+ unit = pick_unit(snd[i].ph, snd[i].pos, l < 0 ? 0 : l, r < 0 ? 0 : r);
+ n = unit < 0 ? 0 : decode_unit(unit, &f);
+ if (!n)
+ continue;
+ /* pitch: a vowel goes from its tone's start to its end; the
+ * sounds between vowels glide from one to the next */
+ for (prev = i - 1; prev >= 0 && !snd[prev].pause && !snd[prev].vowel; prev--)
+ ;
+ for (next = i + 1; next < nsnd && !snd[next].pause && !snd[next].vowel; next++)
+ ;
+ if (snd[i].vowel) {
+ f0a = snd[i].f0[0];
+ f0b = snd[i].f0[1];
+ } else {
+ int pv = prev >= 0 && snd[prev].vowel, nv = next < nsnd && snd[next].vowel;
+ f0a = pv ? snd[prev].f0[1] : nv ? snd[next].f0[0] : TOP;
+ f0b = nv ? snd[next].f0[0] : f0a;
+ }
+ f0a *= vscale;
+ f0b *= vscale;
+ /* new timing: step through the unit's frames at the new rate */
+ src = xmalloc((n + 1) * sizeof(double));
+ for (k = 0; k < n; k++)
+ src[k + 1] = src[k] + f[k].len * (snd[i].len > 0 ? snd[i].len : 1) / (rate * (f[k].voiced ? 1 : hiss_rate));
+ total = src[n];
+ for (t = 0; t < total;) {
+ struct frame *s;
+ int len, L0, sf;
+ double g = 0, sum = 0, norm, lvl;
+
+ for (k = 0; k < n - 1 && src[k + 1] <= t; k++)
+ ;
+ s = &f[k];
+ sf = k;
+ L0 = s->len;
+ if (s->voiced) {
+ len = (int)lrint(V.rate / ((f0a + (f0b - f0a) * t / total) * pitch));
+ } else {
+ len = L0;
+ }
+ if (len < 20)
+ len = 20;
+ if (ne < (L0 > len ? L0 : len)) {
+ ne = L0 > len ? L0 : len;
+ e = realloc(e, ne * sizeof(double));
+ }
+ if (s->voiced)
+ seen_voiced = 1;
+ if (s->voiced && s->period) {
+ /* the stored period is scaled to V.period points:
+ * stretch it back to its recorded length, then cut
+ * or pad it to the new period */
+ stretch(s->period, e, L0);
+ for (k = 0; k < L0; k++)
+ sum += e[k] * e[k];
+ for (; k < len; k++)
+ e[k] = 0;
+ /* a shortened period fades out over its last eighth
+ * instead of stopping dead, which crackles */
+ if (len < L0) {
+ int fade = len / 8 + 1;
+ for (k = len - fade; k < len; k++)
+ e[k] *= (double)(len - k) / fade;
+ }
+ lvl = gain_at(s->gain, sf);
+ norm = 1 / (sqrt(sum / L0) + 1e-9);
+ } else {
+ have_per = 0;
+ for (k = 0; k < len; k++) {
+ e[k] = noise();
+ sum += e[k] * e[k];
+ }
+ g = gain_at(s->gain, sf);
+ /* a vowel's unit can start with the faded tail of the
+ * hiss before it ("Sam"), which leaves a gap after ours:
+ * hold it up to the hiss */
+ if (snd[i].vowel && !seen_voiced && g < hiss_end)
+ g = hiss_end;
+ lvl = FRIC * g;
+ norm = 1 / (sqrt(sum / len) + 1e-9);
+ }
+ /* the spectrum glides from the last frame's to this one's,
+ * in steps of 32 samples, so frames do not click */
+ if (!have_last) {
+ memcpy(last, s->lsf, sizeof(last));
+ last_lvl = lvl;
+ }
+ for (k = 0; k < len; k++) {
+ double y;
+ /* and so does the loudness; for Sam the stored loudness
+ * is the sound's own, so the filter's gain comes out */
+ if (k % 32 == 0) {
+ float l[MAXORDER];
+ double w = (k + 16.0) / len;
+ if (w > 1)
+ w = 1;
+ for (j = 0; j < ORDER; j++)
+ l[j] = (1 - w) * last[j] + w * s->lsf[j];
+ lsf_to_lpc(l, a);
+ g = norm * ((1 - w) * last_lvl + w * lvl);
+ if (GOUT > 0)
+ g /= pow(filter_gain(a), GOUT);
+ }
+ y = e[k] * g;
+ for (j = 0; j < ORDER; j++)
+ y -= a[j + 1] * mem[j];
+ memmove(mem + 1, mem, (ORDER - 1) * sizeof(double));
+ mem[0] = y;
+ post(a, y);
+ }
+ memcpy(last, s->lsf, sizeof(last));
+ last_lvl = lvl;
+ have_last = 1;
+ t += len;
+ }
+ free(src);
+ last_gain = f[n - 1].gain;
+ last_unvoiced = !f[n - 1].voiced;
+ for (k = 0; k < n; k++)
+ free(f[k].period);
+ free(f);
+ }
+ free(e);
+}
+
+static void put32(FILE *f, uint32_t v)
+{
+ uint8_t b[4] = { v, v >> 8, v >> 16, v >> 24 };
+ fwrite(b, 1, 4, f);
+}
+
+static void put16(FILE *f, uint16_t v)
+{
+ uint8_t b[2] = { v, v >> 8 };
+ fwrite(b, 1, 2, f);
+}
+
+/* Narrow the gap between loud vowels and quiet consonants: the level,
+ * followed over about 40 ms (long enough not to ripple with each pitch
+ * period), is raised to the power 1 - COMPRESS. */
+static const double COMPRESS = 0.2;
+
+static void compress(void)
+{
+ size_t i, w = V.rate / 25;
+ double env = 0, top = 1e-9, *lev;
+
+ if (COMPRESS <= 0 || !nout)
+ return;
+ lev = xmalloc(nout * sizeof(double));
+ for (i = 0; i < nout; i++) {
+ env += (out[i] * out[i] - env) / w;
+ lev[i] = sqrt(env);
+ if (lev[i] > top)
+ top = lev[i];
+ }
+ /* the same backwards, so the level does not lag */
+ for (env = lev[nout - 1] * lev[nout - 1], i = nout; i-- > 0;) {
+ env += (out[i] * out[i] - env) / w;
+ lev[i] = (lev[i] + sqrt(env)) / 2;
+ }
+ for (i = 0; i < nout; i++) {
+ double l = lev[i] / top;
+ if (l > 1e-3)
+ out[i] *= pow(l, -COMPRESS);
+ else
+ out[i] *= pow(1e-3, -COMPRESS);
+ }
+ free(lev);
+}
+
+/* Sam's tone, fitted frame by frame against his recordings of the clock's
+ * phrases (each frame matched to the same moment in his): more of his low
+ * fundamental and of 1-2 kHz, and treble set between that fit and his
+ * overall brightness, which the fit alone left short. dB at each frequency;
+ * Mike and Mary need none. */
+static const double eq_hz[] = { 125, 250, 500, 1000, 2000, 2500, 3000, 3500, 4000, 5000, 6000, 7000, 8000, 9500 };
+static const double eq_sam[] = { 7.3, -0.3, -1.4, 1.5, 3.8, 2.6, 3.1, 2.4, 1.3, 0.2, 1.8, 2.4, 0.4, 0.2 };
+static const double *eq;
+
+static void equalise(void)
+{
+ enum { TAPS = 129, NF = 256 };
+ double h[TAPS], g[NF + 1], *y;
+ int ne = sizeof(eq_hz) / sizeof(eq_hz[0]), k, j;
+ size_t i;
+
+ if (!eq || !nout)
+ return;
+ for (k = 0; k <= NF; k++) {
+ double f = (double)k * V.rate / 2 / NF, db;
+ if (f <= eq_hz[0])
+ db = eq[0];
+ else if (f >= eq_hz[ne - 1])
+ db = eq[ne - 1];
+ else {
+ for (j = 1; eq_hz[j] < f; j++)
+ ;
+ db = eq[j - 1] + (eq[j] - eq[j - 1]) *
+ log(f / eq_hz[j - 1]) / log(eq_hz[j] / eq_hz[j - 1]);
+ }
+ g[k] = pow(10, db / 20);
+ }
+ /* linear phase: the inverse transform of the gains, windowed */
+ for (j = 0; j < TAPS; j++) {
+ double n = j - (TAPS - 1) / 2.0, v = g[0];
+ for (k = 1; k <= NF; k++)
+ v += 2 * g[k] * cos(M_PI * k * n / NF) * (k == NF ? 0.5 : 1);
+ h[j] = v / (2 * NF) * (0.5 - 0.5 * cos(2 * M_PI * (j + 0.5) / TAPS));
+ }
+ y = xmalloc(nout * sizeof(double));
+ for (i = 0; i < nout; i++) {
+ double v = 0;
+ for (j = 0; j < TAPS; j++) {
+ long x = (long)i + (TAPS - 1) / 2 - j;
+ if (x >= 0 && x < (long)nout)
+ v += h[j] * out[x];
+ }
+ y[i] = v;
+ }
+ for (i = 0; i < nout; i++)
+ out[i] = y[i];
+ free(y);
+}
+
+static void write_wav(FILE *f)
+{
+ double peak = 1e-9;
+ size_t i;
+
+ equalise();
+ compress();
+ for (i = 0; i < nout; i++)
+ if (fabs(out[i]) > peak)
+ peak = fabs(out[i]);
+ fwrite("RIFF", 1, 4, f);
+ put32(f, 36 + 2 * nout);
+ fwrite("WAVEfmt ", 1, 8, f);
+ put32(f, 16);
+ put16(f, 1);
+ put16(f, 1);
+ put32(f, V.rate);
+ put32(f, 2 * V.rate);
+ put16(f, 2);
+ put16(f, 16);
+ fwrite("data", 1, 4, f);
+ put32(f, 2 * nout);
+ for (i = 0; i < nout; i++)
+ put16(f, (uint16_t)(int16_t)lrint(out[i] / peak * 26000));
+}
+
+static void usage(void)
+{
+ fprintf(stderr, "usage: mssam [-d DIR] [-v VOICE] [-r RATE] [-p PITCH] [-o OUT.wav] TEXT...\n"
+ " DIR holds the voice data from tools/fetch-mssam.py (default %s)\n", VOICEDIR);
+ exit(2);
+}
+
+/* Sam's pace against his units' own: a little quicker than they were
+ * recorded. Mike and Mary keep theirs. */
+#define SAM_PACE 0.9
+
+int main(int argc, char **argv)
+{
+ const char *dir = getenv("MSSAM_DIR") ? getenv("MSSAM_DIR") : VOICEDIR;
+ const char *voice = "sam", *outp = NULL;
+ double rate = SAM_PACE, pitch = 1;
+ char path[4096], text[8192] = "";
+ int i;
+ FILE *f;
+
+ for (i = 1; i < argc && argv[i][0] == '-' && argv[i][1]; i++) {
+ char opt = argv[i][1];
+ if (opt == '-') {
+ i++;
+ break;
+ }
+ if (strchr("dvrpo", opt) && i + 1 >= argc)
+ usage();
+ switch (opt) {
+ case 'd': dir = argv[++i]; break;
+ case 'v': voice = argv[++i]; break;
+ case 'r': rate *= atof(argv[++i]); break;
+ case 'p': pitch *= atof(argv[++i]); break;
+ case 'o': outp = argv[++i]; break;
+ default: usage();
+ }
+ }
+ if (i >= argc || rate <= 0.05 || pitch <= 0.05)
+ usage();
+ for (; i < argc; i++) {
+ strncat(text, argv[i], sizeof(text) - strlen(text) - 2);
+ strcat(text, " ");
+ }
+ if (strcmp(voice, "sam") && strcmp(voice, "mike") && strcmp(voice, "mary") &&
+ strcmp(voice, "mike-tel") && strcmp(voice, "mary-tel"))
+ die("unknown voice %s (sam, mike, mary, mike-tel or mary-tel)", voice);
+ if (strcmp(voice, "sam"))
+ rate /= SAM_PACE;
+
+ if (!strcmp(voice, "sam")) {
+ eq = eq_sam;
+ PF_NUM = 0.5;
+ PF_DEN = 0.75;
+ FRIC = 1.35;
+ hiss_rate = 1.3;
+ GOUT = 1;
+ }
+ snprintf(path, sizeof(path), "%s/%s.inv", dir, voice);
+ load_inventory(path);
+ snprintf(path, sizeof(path), "%s/%s.tree", dir, voice);
+ load_tree(path);
+ snprintf(path, sizeof(path), "%s/%s.tones", dir, voice);
+ load_tones(path);
+ snprintf(path, sizeof(path), "%s/cmudict.dict", dir);
+ if ((f = fopen(path, "rb"))) {
+ fclose(f);
+ load_dict(path);
+ }
+
+ parse_text(text);
+ render(rate, pitch);
+
+ f = outp ? fopen(outp, "wb") : stdout;
+ if (!f)
+ die("cannot write %s", outp);
+ write_wav(f);
+ if (outp && fclose(f))
+ die("cannot write %s", outp);
+ return 0;
+}
diff --git a/test/render_test.py b/test/render_test.py
index 11c46cd..2b3097f 100755
--- a/test/render_test.py
+++ b/test/render_test.py
@@ -7,6 +7,10 @@
- Every voice renders a minute of sound at a few times of day without
crashing Asterisk, and isn't silent.
+ - With TTS_VOICE=, that voice speaks (needs its
+ synthesiser, tts_program_* in speakingclock.conf) and its made-up third pip
+ lands on the second. Live voices are left out otherwise.
+
Run as a user that may use `asterisk -rx`, with the module loaded and the
voices installed: test/render_test.py
"""
@@ -46,7 +50,8 @@ def render(voice, start, seconds, zone="UTC"):
return struct.unpack("<%dh" % (len(d) // 2), d)
-voices = [l.split()[0] for l in cli("speakingclock show voices").splitlines()[1:] if l.strip()]
+rows = [l.split() for l in cli("speakingclock show voices").splitlines()[1:] if l.strip()]
+voices = [r[0] for r in rows if r[1] != "tts"]
ok(len(voices) >= 80, "voices listed: %d" % len(voices))
# the time marks: start 5 s before 16:15:00 UTC, look at three cycles.
@@ -96,6 +101,21 @@ for v in voices:
ok(False, "%s at %d: %s" % (v, t, e))
continue
ok(max(abs(x) for x in a) > 1000, "%s at %d: silent" % (v, t))
+
+# a live voice: speech before the pips, and the third made-up pip (1 kHz)
+# exactly on the second
+tts = os.environ.get("TTS_VOICE")
+if tts:
+ a = render(tts, T, 32)
+ tone = [int(8000 * __import__("math").sin(2 * 3.141592653589793 * 1000 * i / RATE)) for i in range(80)]
+ raw = struct.pack("<%dh" % len(a), *a)
+ marks = []
+ for k in range(len(a) // (10 * RATE) + 1):
+ second = (k + 1) * 10 * RATE - (T * RATE) % (10 * RATE) # samples to each :x0
+ if second + 80 <= len(a):
+ marks.append(list(a[second:second + 80]) == tone)
+ ok(marks and all(marks), "%s: third pip on the second %s" % (tts, marks))
+ ok(max(abs(x) for x in a[:3 * RATE]) > 1000, "%s: no speech" % tts)
ok("Asterisk" in cli("core show version"), "Asterisk still up")
print("%s" % ("all passed" if not failed else "%d failed" % failed))
diff --git a/tools/build_voices.py b/tools/build_voices.py
index 65f8e71..b7f0a21 100755
--- a/tools/build_voices.py
+++ b/tools/build_voices.py
@@ -282,19 +282,21 @@ def build_tim(src, out):
def main():
src, out = sys.argv[1], sys.argv[2]
- if os.path.exists(out):
- shutil.rmtree(out)
- os.makedirs(out)
+ os.makedirs(out, exist_ok=True)
+ # start again from nothing, but keep the synthesised voices
+ # (tools/synth_voices.py), whose voice.conf names an engine
+ for d in os.listdir(out):
+ conf = os.path.join(out, d, "voice.conf")
+ if os.path.isdir(os.path.join(out, d)) and \
+ "\nengine=" not in (open(conf).read() if os.path.exists(conf) else ""):
+ shutil.rmtree(os.path.join(out, d))
build_tim(src, out)
build_garry(src, out)
build_steve(src, out)
- with open(os.path.join(out, "INDEX.md"), "w") as f:
- f.write("# Voices\n\nMade by tools/build_voices.py. Every recording "
- "belongs to its original owner (../NOTICE.md).\n\n")
- f.write("| id | name | mode | from |\n|---|---|---|---|\n")
- for v in sorted(voices):
- f.write("| `%s` | %s | %s | %s |\n" % v)
- print("%d voices" % len(voices))
+ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
+ from voice_index import write_index
+ write_index(out)
+ print("%d voices built" % len(voices))
if __name__ == "__main__":
diff --git a/tools/fetch-mssam.py b/tools/fetch-mssam.py
new file mode 100644
index 0000000..3577e7f
--- /dev/null
+++ b/tools/fetch-mssam.py
@@ -0,0 +1,242 @@
+#!/usr/bin/env python3
+"""SPDX-License-Identifier: GPL-2.0-or-later
+
+Fetch the Microsoft Sam, Mike and Mary voice data (and Mike and Mary for
+telephone) for synth/mssam at build time.
+
+Microsoft's files are not in this repository. This script downloads the
+Microsoft Speech API 4 text-to-speech package (msttsl.exe) from the
+Internet Archive, checks its SHA-256, unpacks its cabinet with cabextract
+or 7z, reads each voice file (an OLE compound file) and writes the parts
+synth/mssam uses as plain files:
+
+ OUT/.inv the voice's recorded sound units, as stored
+ OUT/.tree the trees that pick a unit for each sound in its
+ context, rewritten in our own simple layout
+ OUT/.tones the voice's pitch table (plain text)
+ OUT/cmudict.dict the CMU Pronouncing Dictionary, so that words a
+ clock does not usually say can be spoken too
+ (optional: synth/mssam knows the clock's words)
+
+The voices are sam, mike, mary, mike-tel and mary-tel (the files sam.vce,
+male.vce, female.vce, and the 8 kHz telephone voices male8.vce and
+female8.vce). The layouts are described in docs/mssam-format.md.
+
+Only data is read. Nothing from the package is run, and Microsoft's
+programs in it (msttssyn.dll and the rest) are not kept.
+
+Usage: tools/fetch-mssam.py [OUT] (default: sources/mssam)
+ tools/fetch-mssam.py --exe msttsl.exe [OUT]
+
+Needs Python 3 and cabextract or 7z.
+"""
+import hashlib
+import os
+import shutil
+import struct
+import subprocess
+import sys
+import tempfile
+import urllib.request
+
+URL = "https://archive.org/download/msttsl/msttsl.exe"
+SHA1 = "d988cbb3e99bc9dd850defda939c06b81d9d4544"
+CMUDICT = "https://raw.githubusercontent.com/cmusphinx/cmudict/master/cmudict.dict"
+VOICES = {"sam": "sam.vce", "mike": "male.vce", "mary": "female.vce",
+ "mike-tel": "male8.vce", "mary-tel": "female8.vce"}
+POSITIONS = 4 # word positions: begins, ends, single, inside
+
+
+class Compound:
+ """Just enough of an OLE compound file reader to get streams out."""
+
+ def __init__(self, data):
+ if data[:8] != bytes.fromhex("d0cf11e0a1b11ae1"):
+ raise ValueError("not an OLE compound file")
+ self.d = data
+ self.ss = 1 << struct.unpack("= self.cutoff:
+ return self.chain(start)[:size]
+ out = []
+ s = start
+ while s < 0xFFFFFFFA:
+ out.append(self.ministream[s * self.mss:(s + 1) * self.mss])
+ s = self.minifat[s]
+ return b"".join(out)[:size]
+
+
+def rotate(m):
+ """The voice stores a set of sounds as a 64-bit mask with sound i at bit
+ (i + 36) mod 64 and the four word positions at bits 32-35. Ours has
+ sound i at bit i and the word positions at bits 60-63."""
+ return ((m >> 36) | (m << 28)) & 0xFFFFFFFFFFFFFFFF
+
+
+def u32(d, o):
+ return struct.unpack(">I", d[o:o + 4])[0]
+
+
+def u16(d, o):
+ return struct.unpack(">H", d[o:o + 2])[0]
+
+
+def parse_trees(d, o, count):
+ """count trees of nodes; returns [(leaves, nodes)] and the end offset.
+ Node: yes, no, 0xffff, then the indices of its questions, 0xffff.
+ Leaf: 0xffff, n, n."""
+ out = []
+ for _ in range(count):
+ nn, nl = u16(d, o), u16(d, o + 2)
+ o += 4
+ if nn != max(2 * nl - 1, 0):
+ raise ValueError("tree header")
+ nodes = []
+ for _ in range(nn):
+ x = u16(d, o)
+ if x == 0xFFFF:
+ a, b = u16(d, o + 2), u16(d, o + 4)
+ o += 6
+ if a != b or a >= nl:
+ raise ValueError("leaf")
+ nodes.append((-1, a, []))
+ else:
+ y = u16(d, o + 2)
+ if u16(d, o + 4) != 0xFFFF or x >= nn or y >= nn:
+ raise ValueError("node")
+ o += 6
+ q = []
+ while u16(d, o) != 0xFFFF:
+ q.append(u16(d, o))
+ o += 2
+ o += 2
+ nodes.append((x, y, q))
+ out.append((nl, nodes))
+ return out, o
+
+
+def convert_tree(tree, phonefile):
+ phones = [l.split()[0] for l in phonefile.decode("latin-1").splitlines() if l.strip()]
+ n = len(phones)
+ o = tree.index(b"tree\0") + 5
+ if u32(tree, o) != n:
+ raise ValueError("phone count")
+ o += 4 + n # one byte per sound: its number of states (always 1)
+ o += 4 + 4 * n # sound count again, then where each sound's senones end
+ total = u32(tree, o)
+ # then: total, 0, 18, 0xffffffff, the number of questions
+ o += 4
+ while u32(tree, o) != 0xFFFFFFFF:
+ o += 4
+ nq = u32(tree, o + 4)
+ o += 8
+ questions = [struct.unpack(">QQ", tree[o + 16 * i:o + 16 * i + 16]) for i in range(nq)]
+ o += 16 * nq + 8
+ trees, end = parse_trees(tree, o, n)
+ if end != len(tree) or sum(t[0] for t in trees) != total:
+ raise ValueError("trees do not add up")
+
+ out = [b"MSSAMTR1", struct.pack("<4I", n, nq, total, 1)]
+ for left, right in questions:
+ out.append(struct.pack("-): no
+clips, the module runs the synthesiser on the Asterisk machine for each
+sentence as it is needed (dectalk, sam and mssam only; tts_program_dectalk,
+tts_program_sam and tts_program_mssam in speakingclock.conf say where they
+are).
+
+Engines (a VOICE is engine:name, see --list):
+ sapi4 Microsoft Speech API 4 voices (Microsoft Sam, Mike, Mary,
+ TruVoice, L&H), spoken by the public SAPI4 service at
+ https://www.tetyys.com/SAPI4/ (a few hundred requests a voice,
+ spaced out; downloads are cached in $SYNTH_CACHE).
+ dectalk DECtalk 4.x, from https://github.com/dectalk/dectalk (develop
+ branch). $DECTALK_SAY is its `say` program.
+ sam Software Automatic Mouth (C64, 1982), the C port at
+ https://github.com/s-macke/SAM. $SAM is its `sam` program.
+ mssam Microsoft Sam, Mike and Mary, spoken by our own synthesiser
+ (synth/mssam) from the voice data that tools/fetch-mssam.py
+ fetches. $MSSAM is its `mssam` program.
+ mac MacInTalk / PlainTalk voices, with macOS's own `say` (run this
+ on a Mac).
+
+Needs ffmpeg and sox.
+"""
+import hashlib
+import os
+import shutil
+import subprocess
+import sys
+import tempfile
+import time
+import urllib.parse
+import urllib.request
+
+ONES = ["zero", "one", "two", "three", "four", "five", "six", "seven",
+ "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen",
+ "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"]
+TENS = {20: "twenty", 30: "thirty", 40: "forty", 50: "fifty"}
+
+
+def words(n):
+ if n < 20:
+ return ONES[n]
+ t, u = n // 10 * 10, n % 10
+ return TENS[t] + ("-" + ONES[u] if u else "")
+
+
+def clips():
+ """clip name -> what to say"""
+ c = {
+ "phrase": "At the third stroke, it will be",
+ "its": "The time is",
+ "oclock": "o'clock",
+ "oh": "oh",
+ "precisely": "precisely.",
+ "am": "A.M.",
+ "pm": "P.M.",
+ "noon": "twelve noon",
+ "midnight": "midnight",
+ "greet_morning": "Good morning.",
+ "greet_afternoon": "Good afternoon.",
+ "greet_evening": "Good evening.",
+ }
+ for n in range(0, 60):
+ c["n%d" % n] = words(n)
+ for m in range(1, 10):
+ c["m%d" % m] = "oh " + ONES[m]
+ for s in range(10, 60, 10):
+ c["s%d" % s] = "and %s seconds." % words(s)
+ return c
+
+
+# ---- engines: each speaks text into a WAV file -----------------------------
+
+CACHE = os.environ.get("SYNTH_CACHE", os.path.join("sources", "synth-cache"))
+
+SAPI4 = {
+ # id: (service voice, pitch, speed, name, description)
+ "microsoft-sam": ("Sam", 100, 150, "Microsoft Sam (SAPI4)",
+ "Microsoft Speech API 4 voice, the voice of Windows 2000 and XP's Narrator"),
+ "microsoft-mike": ("Mike", 113, 170, "Microsoft Mike (SAPI4)", "Microsoft Speech API 4 voice"),
+ "microsoft-mary": ("Mary", 169, 170, "Microsoft Mary (SAPI4)", "Microsoft Speech API 4 voice"),
+ "microsoft-mike-tel": ("Mike (for Telephone)", 113, 170, "Microsoft Mike for Telephone (SAPI4)",
+ "Microsoft Speech API 4 voice tuned for telephone lines"),
+ "bonzibuddy": ("Adult Male #2, American English (TruVoice)", 140, 157, "BonziBUDDY (SAPI4 TruVoice)",
+ "Lernout & Hauspie TruVoice Adult Male #2 at BonziBUDDY's pitch and speed"),
+ "truvoice-male1": ("Adult Male #1, American English (TruVoice)", 120, 140,
+ "TruVoice Adult Male #1 (SAPI4)", "Lernout & Hauspie TruVoice"),
+ "truvoice-female1": ("Adult Female #1, American English (TruVoice)", 290, 140,
+ "TruVoice Adult Female #1 (SAPI4)", "Lernout & Hauspie TruVoice"),
+ "robosoft-one": ("RoboSoft One", 100, 150, "RoboSoft One (SAPI4)", "SAPI4 novelty voice"),
+ "lh-reed": ("English-American: Reed (Adult Male), 6.1", 100, 150, "L&H Reed (SAPI4)",
+ "Lernout & Hauspie TTS3000 American English"),
+ "lh-jane": ("English-British: Jane (Adult Female), 6.1", 100, 150, "L&H Jane (SAPI4)",
+ "Lernout & Hauspie TTS3000 British English"),
+}
+
+DECTALK = {
+ # id: (voice code, name)
+ "paul": ("np", "Perfect Paul"), "betty": ("nb", "Beautiful Betty"),
+ "harry": ("nh", "Huge Harry"), "frank": ("nf", "Frail Frank"),
+ "dennis": ("nd", "Doctor Dennis"), "kit": ("nk", "Kit the Kid"),
+ "ursula": ("nu", "Uppity Ursula"), "rita": ("nr", "Rough Rita"),
+ "wendy": ("nw", "Whispering Wendy"),
+}
+
+SAM = {
+ # id: (speed, pitch, mouth, throat, name) - the presets in SAM's manual
+ "sam": (72, 64, 128, 128, "SAM"),
+ "elf": (72, 64, 110, 160, "SAM Elf"),
+ "little-robot": (92, 60, 190, 190, "SAM Little Robot"),
+ "stuffy-guy": (82, 72, 110, 105, "SAM Stuffy Guy"),
+ "little-old-lady": (82, 32, 145, 145, "SAM Little Old Lady"),
+ "extra-terrestrial": (100, 64, 150, 200, "SAM Extra-Terrestrial"),
+}
+
+# macOS's own say speaks them. The MacinTalk 3 voices (1993) and the
+# PlainTalk ones (MacinTalk Pro, 1994-95, the voices of System 7.5 to Mac
+# OS 9). Which ones a Mac still has depends on its macOS: say -v '?'.
+MAC_FAMILY = {
+ "MacInTalk": ["Fred", "Ralph", "Junior", "Kathy", "Albert", "Bahh",
+ "Bells", "Boing", "Bubbles", "Cellos", "Trinoids", "Whisper",
+ "Zarvox", "Bad News", "Good News", "Wobble", "Jester", "Organ",
+ "Superstar", "Princess"],
+ "PlainTalk": ["Victoria", "Agnes", "Bruce", "Vicki"],
+}
+MAC = {v: f for f, vs in MAC_FAMILY.items() for v in vs}
+
+last_request = [0.0]
+
+
+def sapi4(vid, text, out):
+ voice, pitch, speed = SAPI4[vid][:3]
+ url = "https://www.tetyys.com/SAPI4/SAPI4?" + urllib.parse.urlencode(
+ {"text": text, "voice": voice, "pitch": pitch, "speed": speed})
+ key = hashlib.sha1(url.encode()).hexdigest()
+ cached = os.path.join(CACHE, "sapi4", key + ".wav")
+ if not os.path.exists(cached):
+ os.makedirs(os.path.dirname(cached), exist_ok=True)
+ for attempt in range(4):
+ wait = 0.5 - (time.time() - last_request[0])
+ if wait > 0:
+ time.sleep(wait)
+ last_request[0] = time.time()
+ try:
+ req = urllib.request.Request(url, headers={"User-Agent": "speaking-clock voice builder"})
+ with urllib.request.urlopen(req, timeout=60) as r:
+ data = r.read()
+ if data[:4] != b"RIFF":
+ raise RuntimeError("not a WAV")
+ with open(cached + ".part", "wb") as f:
+ f.write(data)
+ os.rename(cached + ".part", cached)
+ break
+ except Exception: # noqa: BLE001
+ if attempt == 3:
+ raise
+ time.sleep(2 ** (attempt + 1))
+ shutil.copy(cached, out)
+
+
+def dectalk(vid, text, out):
+ say = os.environ.get("DECTALK_SAY", "say")
+ code = DECTALK[vid][0]
+ subprocess.run([say, "-fo", out, "-a", "[:%s] %s" % (code, text)], check=True,
+ stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
+
+
+def sam(vid, text, out):
+ speed, pitch, mouth, throat = SAM[vid][:4]
+ prog = os.environ.get("SAM", "sam")
+ subprocess.run([prog, "-wav", out, "-speed", str(speed), "-pitch", str(pitch),
+ "-mouth", str(mouth), "-throat", str(throat), text.replace("-", " ")],
+ check=True, stdout=subprocess.DEVNULL)
+
+
+MSSAM = {
+ "sam": ("Microsoft Sam", "Microsoft Speech API 4 voice Sam"),
+ "mike": ("Microsoft Mike", "Microsoft Speech API 4 voice Mike"),
+ "mary": ("Microsoft Mary", "Microsoft Speech API 4 voice Mary"),
+ "mike-tel": ("Microsoft Mike for Telephone", "Microsoft Speech API 4 voice Mike, made for phone lines"),
+ "mary-tel": ("Microsoft Mary for Telephone", "Microsoft Speech API 4 voice Mary, made for phone lines"),
+}
+
+
+def mssam(vid, text, out):
+ prog = os.environ.get("MSSAM", "mssam")
+ subprocess.run([prog, "-v", vid, "-o", out, text], check=True)
+
+
+def mac_check(vid):
+ have = subprocess.run(["say", "-v", "?"], capture_output=True, text=True).stdout
+ if not any(line.split(" ")[0].strip() == vid for line in have.splitlines()):
+ sys.exit("this Mac has no voice %r (say -v '?' lists the ones it has)" % vid)
+
+
+def mac(vid, text, out):
+ aiff = out + ".aiff"
+ subprocess.run(["say", "-v", vid, "-o", aiff, text], check=True)
+ subprocess.run(["ffmpeg", "-v", "error", "-y", "-i", aiff, out], check=True)
+ os.unlink(aiff)
+
+
+ENGINES = {
+ "sapi4": (sapi4, SAPI4, lambda v: (SAPI4[v][3], SAPI4[v][4]),
+ "Microsoft Speech API 4 runtime and voices, spoken by https://www.tetyys.com/SAPI4/"),
+ "dectalk": (dectalk, DECTALK, lambda v: ("DECtalk " + DECTALK[v][1], "DECtalk 4.x"),
+ "DECtalk (Digital Equipment Corp.), https://github.com/dectalk/dectalk"),
+ "sam": (sam, SAM, lambda v: (SAM[v][4], "Software Automatic Mouth (Commodore 64, 1982)"),
+ "SAM, Don't Ask Software (now SoftVoice, Inc.), C port https://github.com/s-macke/SAM"),
+ "mssam": (mssam, MSSAM, lambda v: (MSSAM[v][0], "%s, by our own synthesiser" % MSSAM[v][1]),
+ "synth/mssam (this repository, clean-room) reading Microsoft's Speech API 4 voice data "
+ "(msttsl.exe), fetched by tools/fetch-mssam.py"),
+ "mac": (mac, MAC, lambda v: ("%s %s" % (MAC[v], v),
+ "Apple PlainTalk (MacinTalk Pro) voice" if MAC[v] == "PlainTalk"
+ else "Apple MacInTalk 3 voice"),
+ "Apple MacInTalk / PlainTalk, spoken by macOS's say"),
+}
+
+
+def finish(raw, out):
+ """trim the silence around a clip, leave 40 ms each side, 8 kHz mono"""
+ subprocess.run(["sox", raw, "-r", "8000", "-c", "1", "-b", "16", "-e", "signed-integer", out,
+ "silence", "1", "0.01", "0.3%", "reverse", "silence", "1", "0.01", "0.3%", "reverse",
+ "pad", "0.04", "0.04", "norm", "-3"], check=True)
+
+
+def build(out_dir, engine, vid):
+ fn, table, info, source = ENGINES[engine]
+ name, desc = info(vid)
+ if engine == "mac":
+ mac_check(vid)
+ d = os.path.join(out_dir, "%s-%s" % (engine, vid.lower().replace(" ", "-")))
+ if os.path.exists(d):
+ shutil.rmtree(d)
+ os.makedirs(d)
+ with tempfile.TemporaryDirectory() as tmp:
+ for clip, text in clips().items():
+ raw = os.path.join(tmp, clip + ".raw.wav")
+ fn(vid, text, raw)
+ finish(raw, os.path.join(d, clip + ".wav"))
+ with open(os.path.join(d, "voice.conf"), "w") as f:
+ f.write("; Voice for app_speakingclock (docs/voice-format.md), made by\n"
+ "; tools/synth_voices.py %s:%s. The synthesiser belongs to its owners;\n"
+ "; see NOTICE.md.\n\n[voice]\nname=%s\ndescription=%s\nmode=tim\n"
+ "sequence=phrase+hour+minute+seconds+pips\nperiod=10\n"
+ "; no pips.wav: the module makes the pips (1 kHz, the third one marks the time)\n"
+ "\n[source]\nengine=%s\nvoice=%s\nsynthesiser=%s\n" % (engine, vid, name, desc, engine, vid, source))
+ print(d)
+
+
+def build_live(out_dir, engine, vid):
+ table = ENGINES[engine][1]
+ name, desc = ENGINES[engine][2](vid)
+ if engine == "dectalk":
+ how = 'command={program:dectalk} -fo {out} -a "[:%s] {text}"' % DECTALK[vid][0]
+ by = "DECtalk's say, run here (tts_program_dectalk)"
+ elif engine == "mssam":
+ how = 'command={program:mssam} -v %s -o {out} "{text}"' % vid
+ by = "synth/mssam, run here (tts_program_mssam)"
+ else:
+ speed, pitch, mouth, throat = SAM[vid][:4]
+ how = ("command={program:sam} -wav {out} -speed %d -pitch %d -mouth %d -throat %d \"{text}\""
+ % (speed, pitch, mouth, throat))
+ by = "SAM, run here (tts_program_sam)"
+ text = "At the third stroke, it will be {hour} {minute} {seconds}."
+ d = os.path.join(out_dir, "live-%s-%s" % (engine, vid.lower().replace(" ", "-")))
+ os.makedirs(d, exist_ok=True)
+ with open(os.path.join(d, "voice.conf"), "w") as f:
+ f.write("; Live voice for app_speakingclock (docs/voice-format.md), made by\n"
+ "; tools/synth_voices.py --live %s:%s. Each sentence is spoken when\n"
+ "; it is needed, by %s.\n"
+ "%s\n\n"
+ "[voice]\nname=%s, live\ndescription=%s, spoken live\n"
+ "mode=tts\nsequence=speech+pips\nperiod=10\n\n[tts]\n%s\ntext=%s\n"
+ "\n[source]\nengine=%s\nvoice=%s\nsynthesiser=%s\n"
+ % (engine, vid, by,
+ "; The synthesiser is ours; the voice data it reads is Microsoft's and is\n"
+ "; not in this repository (tools/fetch-mssam.py downloads it); see NOTICE.md."
+ if engine == "mssam" else "; The synthesiser belongs to its owners; see NOTICE.md.",
+ name, desc, how, text, engine, vid, ENGINES[engine][3]))
+ assert vid in table
+ print(d)
+
+
+def main():
+ if len(sys.argv) > 2 and sys.argv[1] == "--live":
+ for spec in sys.argv[3:]:
+ engine, _, vid = spec.partition(":")
+ if engine not in ("dectalk", "sam", "mssam") or vid not in ENGINES[engine][1]:
+ sys.exit("--live takes dectalk, sam and mssam voices (see --list)")
+ build_live(sys.argv[2], engine, vid)
+ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
+ from voice_index import write_index
+ write_index(sys.argv[2])
+ return
+ if len(sys.argv) > 1 and sys.argv[1] == "--list":
+ for e, (_, table, info, _) in ENGINES.items():
+ for v in table:
+ print("%s:%s\t%s" % (e, v, info(v)[0]))
+ return
+ if len(sys.argv) < 3:
+ sys.exit(__doc__)
+ out = sys.argv[1]
+ for spec in sys.argv[2:]:
+ engine, _, vid = spec.partition(":")
+ if engine not in ENGINES or vid not in ENGINES[engine][1]:
+ sys.exit("unknown voice %s (see --list)" % spec)
+ build(out, engine, vid)
+ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
+ from voice_index import write_index
+ write_index(out)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/tools/voice_index.py b/tools/voice_index.py
new file mode 100755
index 0000000..74ef237
--- /dev/null
+++ b/tools/voice_index.py
@@ -0,0 +1,45 @@
+#!/usr/bin/env python3
+"""SPDX-License-Identifier: GPL-2.0-or-later
+
+Write voices/INDEX.md from every voice folder's voice.conf.
+Usage: tools/voice_index.py [VOICES] (default ./voices)
+"""
+import os
+import sys
+
+
+def read_conf(path):
+ conf, section = {}, None
+ for line in open(path, encoding="utf-8", errors="replace"):
+ line = line.strip()
+ if not line or line.startswith(";"):
+ continue
+ if line.startswith("["):
+ section = line.strip("[]").lower()
+ continue
+ k, _, v = line.partition("=")
+ conf.setdefault(section, {})[k.strip().lower()] = v.strip()
+ return conf
+
+
+def write_index(out):
+ rows = []
+ for vid in sorted(os.listdir(out)):
+ p = os.path.join(out, vid, "voice.conf")
+ if not os.path.isfile(p):
+ continue
+ c = read_conf(p)
+ v, s = c.get("voice", {}), c.get("source", {})
+ origin = s.get("collection") or ("%s synthesiser" % s["engine"] if "engine" in s else "")
+ rows.append((vid, v.get("name", vid).replace("|", "/"), v.get("mode", "talking"), origin))
+ with open(os.path.join(out, "INDEX.md"), "w") as f:
+ f.write("# Voices\n\nWritten by tools/voice_index.py. Every recording "
+ "belongs to its original owner (../NOTICE.md).\n\n")
+ f.write("| id | name | mode | from |\n|---|---|---|---|\n")
+ for r in rows:
+ f.write("| `%s` | %s | %s | %s |\n" % r)
+ return len(rows)
+
+
+if __name__ == "__main__":
+ print("%d voices" % write_index(sys.argv[1] if len(sys.argv) > 1 else "voices"))
diff --git a/voices/INDEX.md b/voices/INDEX.md
index fb403ca..d02f7da 100644
--- a/voices/INDEX.md
+++ b/voices/INDEX.md
@@ -1,87 +1,117 @@
# Voices
-Made by tools/build_voices.py. Every recording belongs to its original owner (../NOTICE.md).
+Written by tools/voice_index.py. Every recording belongs to its original owner (../NOTICE.md).
| id | name | mode | from |
|---|---|---|---|
-| `actim-talking-clock` | Actim Talking Clock | talking | Steve's Talking Clock |
-| `annoying-clock` | Annoying Clock | chime | Steve's Talking Clock |
-| `apollo-clock` | Apollo Clock | talking | Steve's Talking Clock |
-| `atandt-audrey` | AT&T Audrey | talking | Steve's Talking Clock |
-| `atandt-charles` | AT&T Charles | talking | Steve's Talking Clock |
-| `atandt-lauren` | AT&T Lauren | talking | Steve's Talking Clock |
-| `atandt-mike` | AT&T Mike | talking | Steve's Talking Clock |
-| `atandt-ray` | AT&T Ray | talking | Steve's Talking Clock |
-| `atandt-rich` | AT&T Rich | talking | Steve's Talking Clock |
-| `att-anjali` | ATT Anjali | talking | Steve's Talking Clock |
-| `backwards-clock` | Backwards Clock | talking | Steve's Talking Clock |
-| `belching-clock` | Belching Clock | talking | Steve's Talking Clock |
-| `big-ben` | Big Ben | chime | Steve's Talking Clock |
-| `bong-clock` | Bong Clock | talking | Steve's Talking Clock |
-| `braille-lite` | Braille Lite | talking | Steve's Talking Clock |
-| `brit-watch` | Brit Watch | talking | Steve's Talking Clock |
-| `british-amy` | British Amy | talking | garrysblog |
-| `cepstral-duncan` | Cepstral Duncan | talking | Steve's Talking Clock |
-| `cepstral-lawrence` | Cepstral Lawrence | talking | Steve's Talking Clock |
-| `cobolt-talking-clock` | Cobolt Talking Clock | talking | Steve's Talking Clock |
-| `cristo-the-australian-clock` | Cristo the Australian Clock | talking | Steve's Talking Clock |
-| `derek-lanes-clock` | Derek Lane's Clock | talking | Steve's Talking Clock |
-| `docss-clock` | Doc'ss Clock | hourly | Steve's Talking Clock |
-| `doubletalk-clock` | Doubletalk Clock | talking | Steve's Talking Clock |
-| `echo-clock` | Echo Clock | talking | Steve's Talking Clock |
-| `eloquence-clock` | Eloquence Clock | talking | Steve's Talking Clock |
-| `fransisco-clock` | Fransisco Clock | talking | Steve's Talking Clock |
-| `french-celine` | French Celine | talking | garrysblog |
-| `goldfingas-clock` | GoldFingas Clock | talking | Steve's Talking Clock |
-| `hitachi` | Hitachi | talking | Steve's Talking Clock |
-| `irish-clock` | Irish Clock | talking | Steve's Talking Clock |
-| `james-bowdens-clock` | James Bowden's Clock | talking | Steve's Talking Clock |
-| `julies-clock` | Julie's Clock | talking | Steve's Talking Clock |
-| `kathleen-perdues-clock` | Kathleen Perdue's Clock | talking | Steve's Talking Clock |
-| `keaos-clock` | Keao's Clock | talking | Steve's Talking Clock |
-| `keynote-gold-clock` | Keynote Gold Clock | talking | Steve's Talking Clock |
-| `larger-than-life` | Larger Than Life | talking | Steve's Talking Clock |
-| `lucys-clock` | Lucy's Clock | talking | Steve's Talking Clock |
-| `maggies-clock` | Maggie's Clock | talking | Steve's Talking Clock |
-| `morse-code-clock` | Morse Code Clock | talking | Steve's Talking Clock |
-| `neospeech-paul` | Neospeech Paul | talking | Steve's Talking Clock |
-| `nfb-ttq` | NFB TTQ | talking | Steve's Talking Clock |
-| `nick-gs-clock` | Nick G's Clock | talking | Steve's Talking Clock |
-| `nokia-tts` | Nokia TTS | talking | Steve's Talking Clock |
-| `onjs-clock` | Onj's Clock | talking | Steve's Talking Clock |
-| `onjs-clock-ii` | Onj's Clock II | talking | Steve's Talking Clock |
-| `outspoken` | Outspoken | talking | Steve's Talking Clock |
-| `patrick-perdues-clock` | Patrick Perdue's Clock | talking | Steve's Talking Clock |
-| `pentatonic-windchimes` | Pentatonic Windchimes | chime | Steve's Talking Clock |
-| `piano-major` | Piano Major | talking | Steve's Talking Clock |
-| `piano-minor` | Piano Minor | talking | Steve's Talking Clock |
-| `rainee-perdues-clock` | Rainee Perdue's Clock | talking | Steve's Talking Clock |
-| `rc-systems-repeater` | RC Systems Repeater | talking | Steve's Talking Clock |
-| `retro-rsynth-clock` | Retro (rsynth) Clock | talking | Steve's Talking Clock |
-| `rnc-clock` | RNC Clock | chime | Steve's Talking Clock |
-| `satoki-talking-watch` | Satoki Talking Watch | talking | Steve's Talking Clock |
-| `scansoft-isabel` | Scansoft Isabel | talking | Steve's Talking Clock |
-| `scansoft-jane` | Scansoft Jane | talking | Steve's Talking Clock |
-| `scansoft-jennifer` | Scansoft Jennifer | talking | Steve's Talking Clock |
-| `scottish-clock` | Scottish Clock | talking | Steve's Talking Clock |
-| `sharp-el-640` | Sharp EL-640 | talking | Steve's Talking Clock |
-| `sharp-talking-time-i` | Sharp Talking Time I | talking | Steve's Talking Clock |
-| `shawn-cleins-clock` | Shawn Clein's Clock | talking | Steve's Talking Clock |
-| `smooth-talker` | Smooth Talker | talking | Steve's Talking Clock |
-| `steves-quacking-clock` | Steve's Quacking Clock | talking | Steve's Talking Clock |
-| `talkbox-clock` | TalkBox clock | talking | Steve's Talking Clock |
-| `tammy-cube-clock` | Tammy Cube Clock | talking | Steve's Talking Clock |
+| `actim-talking-clock` | Actim Talking Clock | talking | Steve's Talking Clock voice library |
+| `annoying-clock` | Annoying Clock | chime | Steve's Talking Clock voice library |
+| `apollo-clock` | Apollo Clock | talking | Steve's Talking Clock voice library |
+| `atandt-audrey` | AT&T Audrey | talking | Steve's Talking Clock voice library |
+| `atandt-charles` | AT&T Charles | talking | Steve's Talking Clock voice library |
+| `atandt-lauren` | AT&T Lauren | talking | Steve's Talking Clock voice library |
+| `atandt-mike` | AT&T Mike | talking | Steve's Talking Clock voice library |
+| `atandt-ray` | AT&T Ray | talking | Steve's Talking Clock voice library |
+| `atandt-rich` | AT&T Rich | talking | Steve's Talking Clock voice library |
+| `att-anjali` | ATT Anjali | talking | Steve's Talking Clock voice library |
+| `backwards-clock` | Backwards Clock | talking | Steve's Talking Clock voice library |
+| `belching-clock` | Belching Clock | talking | Steve's Talking Clock voice library |
+| `big-ben` | Big Ben | chime | Steve's Talking Clock voice library |
+| `bong-clock` | Bong Clock | talking | Steve's Talking Clock voice library |
+| `braille-lite` | Braille Lite | talking | Steve's Talking Clock voice library |
+| `brit-watch` | Brit Watch | talking | Steve's Talking Clock voice library |
+| `british-amy` | British Amy | talking | garrysblog/Speaking-Clock-MP3-Files |
+| `cepstral-duncan` | Cepstral Duncan | talking | Steve's Talking Clock voice library |
+| `cepstral-lawrence` | Cepstral Lawrence | talking | Steve's Talking Clock voice library |
+| `cobolt-talking-clock` | Cobolt Talking Clock | talking | Steve's Talking Clock voice library |
+| `cristo-the-australian-clock` | Cristo the Australian Clock | talking | Steve's Talking Clock voice library |
+| `derek-lanes-clock` | Derek Lane's Clock | talking | Steve's Talking Clock voice library |
+| `docss-clock` | Doc'ss Clock | hourly | Steve's Talking Clock voice library |
+| `doubletalk-clock` | Doubletalk Clock | talking | Steve's Talking Clock voice library |
+| `echo-clock` | Echo Clock | talking | Steve's Talking Clock voice library |
+| `eloquence-clock` | Eloquence Clock | talking | Steve's Talking Clock voice library |
+| `fransisco-clock` | Fransisco Clock | talking | Steve's Talking Clock voice library |
+| `french-celine` | French Celine | talking | garrysblog/Speaking-Clock-MP3-Files |
+| `goldfingas-clock` | GoldFingas Clock | talking | Steve's Talking Clock voice library |
+| `hitachi` | Hitachi | talking | Steve's Talking Clock voice library |
+| `irish-clock` | Irish Clock | talking | Steve's Talking Clock voice library |
+| `james-bowdens-clock` | James Bowden's Clock | talking | Steve's Talking Clock voice library |
+| `julies-clock` | Julie's Clock | talking | Steve's Talking Clock voice library |
+| `kathleen-perdues-clock` | Kathleen Perdue's Clock | talking | Steve's Talking Clock voice library |
+| `keaos-clock` | Keao's Clock | talking | Steve's Talking Clock voice library |
+| `keynote-gold-clock` | Keynote Gold Clock | talking | Steve's Talking Clock voice library |
+| `larger-than-life` | Larger Than Life | talking | Steve's Talking Clock voice library |
+| `live-dectalk-betty` | DECtalk Beautiful Betty, live | tts | dectalk synthesiser |
+| `live-dectalk-dennis` | DECtalk Doctor Dennis, live | tts | dectalk synthesiser |
+| `live-dectalk-frank` | DECtalk Frail Frank, live | tts | dectalk synthesiser |
+| `live-dectalk-harry` | DECtalk Huge Harry, live | tts | dectalk synthesiser |
+| `live-dectalk-kit` | DECtalk Kit the Kid, live | tts | dectalk synthesiser |
+| `live-dectalk-paul` | DECtalk Perfect Paul, live | tts | dectalk synthesiser |
+| `live-dectalk-rita` | DECtalk Rough Rita, live | tts | dectalk synthesiser |
+| `live-dectalk-ursula` | DECtalk Uppity Ursula, live | tts | dectalk synthesiser |
+| `live-dectalk-wendy` | DECtalk Whispering Wendy, live | tts | dectalk synthesiser |
+| `live-mssam-mary` | Microsoft Mary, live | tts | mssam synthesiser |
+| `live-mssam-mary-tel` | Microsoft Mary for Telephone, live | tts | mssam synthesiser |
+| `live-mssam-mike` | Microsoft Mike, live | tts | mssam synthesiser |
+| `live-mssam-mike-tel` | Microsoft Mike for Telephone, live | tts | mssam synthesiser |
+| `live-mssam-sam` | Microsoft Sam, live | tts | mssam synthesiser |
+| `live-sam-elf` | SAM Elf, live | tts | sam synthesiser |
+| `live-sam-extra-terrestrial` | SAM Extra-Terrestrial, live | tts | sam synthesiser |
+| `live-sam-little-old-lady` | SAM Little Old Lady, live | tts | sam synthesiser |
+| `live-sam-little-robot` | SAM Little Robot, live | tts | sam synthesiser |
+| `live-sam-sam` | SAM, live | tts | sam synthesiser |
+| `live-sam-stuffy-guy` | SAM Stuffy Guy, live | tts | sam synthesiser |
+| `lucys-clock` | Lucy's Clock | talking | Steve's Talking Clock voice library |
+| `maggies-clock` | Maggie's Clock | talking | Steve's Talking Clock voice library |
+| `morse-code-clock` | Morse Code Clock | talking | Steve's Talking Clock voice library |
+| `neospeech-paul` | Neospeech Paul | talking | Steve's Talking Clock voice library |
+| `nfb-ttq` | NFB TTQ | talking | Steve's Talking Clock voice library |
+| `nick-gs-clock` | Nick G's Clock | talking | Steve's Talking Clock voice library |
+| `nokia-tts` | Nokia TTS | talking | Steve's Talking Clock voice library |
+| `onjs-clock` | Onj's Clock | talking | Steve's Talking Clock voice library |
+| `onjs-clock-ii` | Onj's Clock II | talking | Steve's Talking Clock voice library |
+| `outspoken` | Outspoken | talking | Steve's Talking Clock voice library |
+| `patrick-perdues-clock` | Patrick Perdue's Clock | talking | Steve's Talking Clock voice library |
+| `pentatonic-windchimes` | Pentatonic Windchimes | chime | Steve's Talking Clock voice library |
+| `piano-major` | Piano Major | talking | Steve's Talking Clock voice library |
+| `piano-minor` | Piano Minor | talking | Steve's Talking Clock voice library |
+| `rainee-perdues-clock` | Rainee Perdue's Clock | talking | Steve's Talking Clock voice library |
+| `rc-systems-repeater` | RC Systems Repeater | talking | Steve's Talking Clock voice library |
+| `retro-rsynth-clock` | Retro (rsynth) Clock | talking | Steve's Talking Clock voice library |
+| `rnc-clock` | RNC Clock | chime | Steve's Talking Clock voice library |
+| `sapi4-bonzibuddy` | BonziBUDDY (SAPI4 TruVoice) | tim | sapi4 synthesiser |
+| `sapi4-lh-jane` | L&H Jane (SAPI4) | tim | sapi4 synthesiser |
+| `sapi4-lh-reed` | L&H Reed (SAPI4) | tim | sapi4 synthesiser |
+| `sapi4-microsoft-mary` | Microsoft Mary (SAPI4) | tim | sapi4 synthesiser |
+| `sapi4-microsoft-mike` | Microsoft Mike (SAPI4) | tim | sapi4 synthesiser |
+| `sapi4-microsoft-mike-tel` | Microsoft Mike for Telephone (SAPI4) | tim | sapi4 synthesiser |
+| `sapi4-microsoft-sam` | Microsoft Sam (SAPI4) | tim | sapi4 synthesiser |
+| `sapi4-robosoft-one` | RoboSoft One (SAPI4) | tim | sapi4 synthesiser |
+| `sapi4-truvoice-female1` | TruVoice Adult Female #1 (SAPI4) | tim | sapi4 synthesiser |
+| `sapi4-truvoice-male1` | TruVoice Adult Male #1 (SAPI4) | tim | sapi4 synthesiser |
+| `satoki-talking-watch` | Satoki Talking Watch | talking | Steve's Talking Clock voice library |
+| `scansoft-isabel` | Scansoft Isabel | talking | Steve's Talking Clock voice library |
+| `scansoft-jane` | Scansoft Jane | talking | Steve's Talking Clock voice library |
+| `scansoft-jennifer` | Scansoft Jennifer | talking | Steve's Talking Clock voice library |
+| `scottish-clock` | Scottish Clock | talking | Steve's Talking Clock voice library |
+| `sharp-el-640` | Sharp EL-640 | talking | Steve's Talking Clock voice library |
+| `sharp-talking-time-i` | Sharp Talking Time I | talking | Steve's Talking Clock voice library |
+| `shawn-cleins-clock` | Shawn Clein's Clock | talking | Steve's Talking Clock voice library |
+| `smooth-talker` | Smooth Talker | talking | Steve's Talking Clock voice library |
+| `steves-quacking-clock` | Steve's Quacking Clock | talking | Steve's Talking Clock voice library |
+| `talkbox-clock` | TalkBox clock | talking | Steve's Talking Clock voice library |
+| `tammy-cube-clock` | Tammy Cube Clock | talking | Steve's Talking Clock voice library |
| `tim-gordon-gow` | Gordon Gow | tim | asterisk-tim |
| `tim-pat-simmons` | Pat Simmons | tim | asterisk-tim |
-| `timex-speakeasy` | timex_speakeasy | talking | Steve's Talking Clock |
-| `tonys-clock` | Tony's Clock | talking | Steve's Talking Clock |
-| `toshiba-tts` | Toshiba TTS | talking | Steve's Talking Clock |
-| `valley-girl-clock` | Valley Girl Clock | talking | Steve's Talking Clock |
-| `voicer` | Voicer | talking | Steve's Talking Clock |
-| `voorslag` | voorslag | chime | Steve's Talking Clock |
-| `vox-clock-i` | Vox Clock I | talking | Steve's Talking Clock |
-| `vox-clock-ii` | Vox Clock II | talking | Steve's Talking Clock |
-| `vox-clock-iii` | vox clock III | talking | Steve's Talking Clock |
-| `vox-clock-iii-chimes` | vox clock III chimes | chime | Steve's Talking Clock |
-| `wild-animal-clock` | Wild Animal Clock | hourly | Steve's Talking Clock |
-| `yelling-clock` | Yelling Clock | talking | Steve's Talking Clock |
+| `timex-speakeasy` | timex_speakeasy | talking | Steve's Talking Clock voice library |
+| `tonys-clock` | Tony's Clock | talking | Steve's Talking Clock voice library |
+| `toshiba-tts` | Toshiba TTS | talking | Steve's Talking Clock voice library |
+| `valley-girl-clock` | Valley Girl Clock | talking | Steve's Talking Clock voice library |
+| `voicer` | Voicer | talking | Steve's Talking Clock voice library |
+| `voorslag` | voorslag | chime | Steve's Talking Clock voice library |
+| `vox-clock-i` | Vox Clock I | talking | Steve's Talking Clock voice library |
+| `vox-clock-ii` | Vox Clock II | talking | Steve's Talking Clock voice library |
+| `vox-clock-iii` | vox clock III | talking | Steve's Talking Clock voice library |
+| `vox-clock-iii-chimes` | vox clock III chimes | chime | Steve's Talking Clock voice library |
+| `wild-animal-clock` | Wild Animal Clock | hourly | Steve's Talking Clock voice library |
+| `yelling-clock` | Yelling Clock | talking | Steve's Talking Clock voice library |
diff --git a/voices/live-dectalk-betty/voice.conf b/voices/live-dectalk-betty/voice.conf
new file mode 100644
index 0000000..41bb28a
--- /dev/null
+++ b/voices/live-dectalk-betty/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live dectalk:betty. Each sentence is spoken when
+; it is needed, by DECtalk's say, run here (tts_program_dectalk).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=DECtalk Beautiful Betty, live
+description=DECtalk 4.x, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:dectalk} -fo {out} -a "[:nb] {text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=dectalk
+voice=betty
+synthesiser=DECtalk (Digital Equipment Corp.), https://github.com/dectalk/dectalk
diff --git a/voices/live-dectalk-dennis/voice.conf b/voices/live-dectalk-dennis/voice.conf
new file mode 100644
index 0000000..33ff567
--- /dev/null
+++ b/voices/live-dectalk-dennis/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live dectalk:dennis. Each sentence is spoken when
+; it is needed, by DECtalk's say, run here (tts_program_dectalk).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=DECtalk Doctor Dennis, live
+description=DECtalk 4.x, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:dectalk} -fo {out} -a "[:nd] {text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=dectalk
+voice=dennis
+synthesiser=DECtalk (Digital Equipment Corp.), https://github.com/dectalk/dectalk
diff --git a/voices/live-dectalk-frank/voice.conf b/voices/live-dectalk-frank/voice.conf
new file mode 100644
index 0000000..6b7d27c
--- /dev/null
+++ b/voices/live-dectalk-frank/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live dectalk:frank. Each sentence is spoken when
+; it is needed, by DECtalk's say, run here (tts_program_dectalk).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=DECtalk Frail Frank, live
+description=DECtalk 4.x, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:dectalk} -fo {out} -a "[:nf] {text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=dectalk
+voice=frank
+synthesiser=DECtalk (Digital Equipment Corp.), https://github.com/dectalk/dectalk
diff --git a/voices/live-dectalk-harry/voice.conf b/voices/live-dectalk-harry/voice.conf
new file mode 100644
index 0000000..7a998cf
--- /dev/null
+++ b/voices/live-dectalk-harry/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live dectalk:harry. Each sentence is spoken when
+; it is needed, by DECtalk's say, run here (tts_program_dectalk).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=DECtalk Huge Harry, live
+description=DECtalk 4.x, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:dectalk} -fo {out} -a "[:nh] {text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=dectalk
+voice=harry
+synthesiser=DECtalk (Digital Equipment Corp.), https://github.com/dectalk/dectalk
diff --git a/voices/live-dectalk-kit/voice.conf b/voices/live-dectalk-kit/voice.conf
new file mode 100644
index 0000000..bedd8af
--- /dev/null
+++ b/voices/live-dectalk-kit/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live dectalk:kit. Each sentence is spoken when
+; it is needed, by DECtalk's say, run here (tts_program_dectalk).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=DECtalk Kit the Kid, live
+description=DECtalk 4.x, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:dectalk} -fo {out} -a "[:nk] {text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=dectalk
+voice=kit
+synthesiser=DECtalk (Digital Equipment Corp.), https://github.com/dectalk/dectalk
diff --git a/voices/live-dectalk-paul/voice.conf b/voices/live-dectalk-paul/voice.conf
new file mode 100644
index 0000000..abe3dae
--- /dev/null
+++ b/voices/live-dectalk-paul/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live dectalk:paul. Each sentence is spoken when
+; it is needed, by DECtalk's say, run here (tts_program_dectalk).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=DECtalk Perfect Paul, live
+description=DECtalk 4.x, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:dectalk} -fo {out} -a "[:np] {text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=dectalk
+voice=paul
+synthesiser=DECtalk (Digital Equipment Corp.), https://github.com/dectalk/dectalk
diff --git a/voices/live-dectalk-rita/voice.conf b/voices/live-dectalk-rita/voice.conf
new file mode 100644
index 0000000..45c88cd
--- /dev/null
+++ b/voices/live-dectalk-rita/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live dectalk:rita. Each sentence is spoken when
+; it is needed, by DECtalk's say, run here (tts_program_dectalk).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=DECtalk Rough Rita, live
+description=DECtalk 4.x, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:dectalk} -fo {out} -a "[:nr] {text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=dectalk
+voice=rita
+synthesiser=DECtalk (Digital Equipment Corp.), https://github.com/dectalk/dectalk
diff --git a/voices/live-dectalk-ursula/voice.conf b/voices/live-dectalk-ursula/voice.conf
new file mode 100644
index 0000000..5432800
--- /dev/null
+++ b/voices/live-dectalk-ursula/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live dectalk:ursula. Each sentence is spoken when
+; it is needed, by DECtalk's say, run here (tts_program_dectalk).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=DECtalk Uppity Ursula, live
+description=DECtalk 4.x, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:dectalk} -fo {out} -a "[:nu] {text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=dectalk
+voice=ursula
+synthesiser=DECtalk (Digital Equipment Corp.), https://github.com/dectalk/dectalk
diff --git a/voices/live-dectalk-wendy/voice.conf b/voices/live-dectalk-wendy/voice.conf
new file mode 100644
index 0000000..157fc46
--- /dev/null
+++ b/voices/live-dectalk-wendy/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live dectalk:wendy. Each sentence is spoken when
+; it is needed, by DECtalk's say, run here (tts_program_dectalk).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=DECtalk Whispering Wendy, live
+description=DECtalk 4.x, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:dectalk} -fo {out} -a "[:nw] {text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=dectalk
+voice=wendy
+synthesiser=DECtalk (Digital Equipment Corp.), https://github.com/dectalk/dectalk
diff --git a/voices/live-mssam-mary-tel/voice.conf b/voices/live-mssam-mary-tel/voice.conf
new file mode 100644
index 0000000..4dcf003
--- /dev/null
+++ b/voices/live-mssam-mary-tel/voice.conf
@@ -0,0 +1,21 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live mssam:mary-tel. Each sentence is spoken when
+; it is needed, by synth/mssam, run here (tts_program_mssam).
+; The synthesiser is ours; the voice data it reads is Microsoft's and is
+; not in this repository (tools/fetch-mssam.py downloads it); see NOTICE.md.
+
+[voice]
+name=Microsoft Mary for Telephone, live
+description=Microsoft Speech API 4 voice Mary, made for phone lines, by our own synthesiser, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:mssam} -v mary-tel -o {out} "{text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=mssam
+voice=mary-tel
+synthesiser=synth/mssam (this repository, clean-room) reading Microsoft's Speech API 4 voice data (msttsl.exe), fetched by tools/fetch-mssam.py
diff --git a/voices/live-mssam-mary/voice.conf b/voices/live-mssam-mary/voice.conf
new file mode 100644
index 0000000..0b2219b
--- /dev/null
+++ b/voices/live-mssam-mary/voice.conf
@@ -0,0 +1,21 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live mssam:mary. Each sentence is spoken when
+; it is needed, by synth/mssam, run here (tts_program_mssam).
+; The synthesiser is ours; the voice data it reads is Microsoft's and is
+; not in this repository (tools/fetch-mssam.py downloads it); see NOTICE.md.
+
+[voice]
+name=Microsoft Mary, live
+description=Microsoft Speech API 4 voice Mary, by our own synthesiser, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:mssam} -v mary -o {out} "{text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=mssam
+voice=mary
+synthesiser=synth/mssam (this repository, clean-room) reading Microsoft's Speech API 4 voice data (msttsl.exe), fetched by tools/fetch-mssam.py
diff --git a/voices/live-mssam-mike-tel/voice.conf b/voices/live-mssam-mike-tel/voice.conf
new file mode 100644
index 0000000..d9e2c5e
--- /dev/null
+++ b/voices/live-mssam-mike-tel/voice.conf
@@ -0,0 +1,21 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live mssam:mike-tel. Each sentence is spoken when
+; it is needed, by synth/mssam, run here (tts_program_mssam).
+; The synthesiser is ours; the voice data it reads is Microsoft's and is
+; not in this repository (tools/fetch-mssam.py downloads it); see NOTICE.md.
+
+[voice]
+name=Microsoft Mike for Telephone, live
+description=Microsoft Speech API 4 voice Mike, made for phone lines, by our own synthesiser, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:mssam} -v mike-tel -o {out} "{text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=mssam
+voice=mike-tel
+synthesiser=synth/mssam (this repository, clean-room) reading Microsoft's Speech API 4 voice data (msttsl.exe), fetched by tools/fetch-mssam.py
diff --git a/voices/live-mssam-mike/voice.conf b/voices/live-mssam-mike/voice.conf
new file mode 100644
index 0000000..4b17a77
--- /dev/null
+++ b/voices/live-mssam-mike/voice.conf
@@ -0,0 +1,21 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live mssam:mike. Each sentence is spoken when
+; it is needed, by synth/mssam, run here (tts_program_mssam).
+; The synthesiser is ours; the voice data it reads is Microsoft's and is
+; not in this repository (tools/fetch-mssam.py downloads it); see NOTICE.md.
+
+[voice]
+name=Microsoft Mike, live
+description=Microsoft Speech API 4 voice Mike, by our own synthesiser, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:mssam} -v mike -o {out} "{text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=mssam
+voice=mike
+synthesiser=synth/mssam (this repository, clean-room) reading Microsoft's Speech API 4 voice data (msttsl.exe), fetched by tools/fetch-mssam.py
diff --git a/voices/live-mssam-sam/voice.conf b/voices/live-mssam-sam/voice.conf
new file mode 100644
index 0000000..bc1a364
--- /dev/null
+++ b/voices/live-mssam-sam/voice.conf
@@ -0,0 +1,21 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live mssam:sam. Each sentence is spoken when
+; it is needed, by synth/mssam, run here (tts_program_mssam).
+; The synthesiser is ours; the voice data it reads is Microsoft's and is
+; not in this repository (tools/fetch-mssam.py downloads it); see NOTICE.md.
+
+[voice]
+name=Microsoft Sam, live
+description=Microsoft Speech API 4 voice Sam, by our own synthesiser, spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:mssam} -v sam -o {out} "{text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=mssam
+voice=sam
+synthesiser=synth/mssam (this repository, clean-room) reading Microsoft's Speech API 4 voice data (msttsl.exe), fetched by tools/fetch-mssam.py
diff --git a/voices/live-sam-elf/voice.conf b/voices/live-sam-elf/voice.conf
new file mode 100644
index 0000000..cd88ba3
--- /dev/null
+++ b/voices/live-sam-elf/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live sam:elf. Each sentence is spoken when
+; it is needed, by SAM, run here (tts_program_sam).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=SAM Elf, live
+description=Software Automatic Mouth (Commodore 64, 1982), spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:sam} -wav {out} -speed 72 -pitch 64 -mouth 110 -throat 160 "{text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=sam
+voice=elf
+synthesiser=SAM, Don't Ask Software (now SoftVoice, Inc.), C port https://github.com/s-macke/SAM
diff --git a/voices/live-sam-extra-terrestrial/voice.conf b/voices/live-sam-extra-terrestrial/voice.conf
new file mode 100644
index 0000000..7401da8
--- /dev/null
+++ b/voices/live-sam-extra-terrestrial/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live sam:extra-terrestrial. Each sentence is spoken when
+; it is needed, by SAM, run here (tts_program_sam).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=SAM Extra-Terrestrial, live
+description=Software Automatic Mouth (Commodore 64, 1982), spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:sam} -wav {out} -speed 100 -pitch 64 -mouth 150 -throat 200 "{text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=sam
+voice=extra-terrestrial
+synthesiser=SAM, Don't Ask Software (now SoftVoice, Inc.), C port https://github.com/s-macke/SAM
diff --git a/voices/live-sam-little-old-lady/voice.conf b/voices/live-sam-little-old-lady/voice.conf
new file mode 100644
index 0000000..91f86e4
--- /dev/null
+++ b/voices/live-sam-little-old-lady/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live sam:little-old-lady. Each sentence is spoken when
+; it is needed, by SAM, run here (tts_program_sam).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=SAM Little Old Lady, live
+description=Software Automatic Mouth (Commodore 64, 1982), spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:sam} -wav {out} -speed 82 -pitch 32 -mouth 145 -throat 145 "{text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=sam
+voice=little-old-lady
+synthesiser=SAM, Don't Ask Software (now SoftVoice, Inc.), C port https://github.com/s-macke/SAM
diff --git a/voices/live-sam-little-robot/voice.conf b/voices/live-sam-little-robot/voice.conf
new file mode 100644
index 0000000..fd9c15c
--- /dev/null
+++ b/voices/live-sam-little-robot/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live sam:little-robot. Each sentence is spoken when
+; it is needed, by SAM, run here (tts_program_sam).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=SAM Little Robot, live
+description=Software Automatic Mouth (Commodore 64, 1982), spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:sam} -wav {out} -speed 92 -pitch 60 -mouth 190 -throat 190 "{text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=sam
+voice=little-robot
+synthesiser=SAM, Don't Ask Software (now SoftVoice, Inc.), C port https://github.com/s-macke/SAM
diff --git a/voices/live-sam-sam/voice.conf b/voices/live-sam-sam/voice.conf
new file mode 100644
index 0000000..ed1d43b
--- /dev/null
+++ b/voices/live-sam-sam/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live sam:sam. Each sentence is spoken when
+; it is needed, by SAM, run here (tts_program_sam).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=SAM, live
+description=Software Automatic Mouth (Commodore 64, 1982), spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:sam} -wav {out} -speed 72 -pitch 64 -mouth 128 -throat 128 "{text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=sam
+voice=sam
+synthesiser=SAM, Don't Ask Software (now SoftVoice, Inc.), C port https://github.com/s-macke/SAM
diff --git a/voices/live-sam-stuffy-guy/voice.conf b/voices/live-sam-stuffy-guy/voice.conf
new file mode 100644
index 0000000..687d6b8
--- /dev/null
+++ b/voices/live-sam-stuffy-guy/voice.conf
@@ -0,0 +1,20 @@
+; Live voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py --live sam:stuffy-guy. Each sentence is spoken when
+; it is needed, by SAM, run here (tts_program_sam).
+; The synthesiser belongs to its owners; see NOTICE.md.
+
+[voice]
+name=SAM Stuffy Guy, live
+description=Software Automatic Mouth (Commodore 64, 1982), spoken live
+mode=tts
+sequence=speech+pips
+period=10
+
+[tts]
+command={program:sam} -wav {out} -speed 82 -pitch 72 -mouth 110 -throat 105 "{text}"
+text=At the third stroke, it will be {hour} {minute} {seconds}.
+
+[source]
+engine=sam
+voice=stuffy-guy
+synthesiser=SAM, Don't Ask Software (now SoftVoice, Inc.), C port https://github.com/s-macke/SAM
diff --git a/voices/sapi4-bonzibuddy/am.wav b/voices/sapi4-bonzibuddy/am.wav
new file mode 100644
index 0000000..a555cfb
Binary files /dev/null and b/voices/sapi4-bonzibuddy/am.wav differ
diff --git a/voices/sapi4-bonzibuddy/greet_afternoon.wav b/voices/sapi4-bonzibuddy/greet_afternoon.wav
new file mode 100644
index 0000000..20c2447
Binary files /dev/null and b/voices/sapi4-bonzibuddy/greet_afternoon.wav differ
diff --git a/voices/sapi4-bonzibuddy/greet_evening.wav b/voices/sapi4-bonzibuddy/greet_evening.wav
new file mode 100644
index 0000000..e527d44
Binary files /dev/null and b/voices/sapi4-bonzibuddy/greet_evening.wav differ
diff --git a/voices/sapi4-bonzibuddy/greet_morning.wav b/voices/sapi4-bonzibuddy/greet_morning.wav
new file mode 100644
index 0000000..8e66369
Binary files /dev/null and b/voices/sapi4-bonzibuddy/greet_morning.wav differ
diff --git a/voices/sapi4-bonzibuddy/its.wav b/voices/sapi4-bonzibuddy/its.wav
new file mode 100644
index 0000000..064c2ea
Binary files /dev/null and b/voices/sapi4-bonzibuddy/its.wav differ
diff --git a/voices/sapi4-bonzibuddy/m1.wav b/voices/sapi4-bonzibuddy/m1.wav
new file mode 100644
index 0000000..ad1d78e
Binary files /dev/null and b/voices/sapi4-bonzibuddy/m1.wav differ
diff --git a/voices/sapi4-bonzibuddy/m2.wav b/voices/sapi4-bonzibuddy/m2.wav
new file mode 100644
index 0000000..7942c1b
Binary files /dev/null and b/voices/sapi4-bonzibuddy/m2.wav differ
diff --git a/voices/sapi4-bonzibuddy/m3.wav b/voices/sapi4-bonzibuddy/m3.wav
new file mode 100644
index 0000000..fe66e52
Binary files /dev/null and b/voices/sapi4-bonzibuddy/m3.wav differ
diff --git a/voices/sapi4-bonzibuddy/m4.wav b/voices/sapi4-bonzibuddy/m4.wav
new file mode 100644
index 0000000..d1c64f5
Binary files /dev/null and b/voices/sapi4-bonzibuddy/m4.wav differ
diff --git a/voices/sapi4-bonzibuddy/m5.wav b/voices/sapi4-bonzibuddy/m5.wav
new file mode 100644
index 0000000..42589d5
Binary files /dev/null and b/voices/sapi4-bonzibuddy/m5.wav differ
diff --git a/voices/sapi4-bonzibuddy/m6.wav b/voices/sapi4-bonzibuddy/m6.wav
new file mode 100644
index 0000000..4271ab6
Binary files /dev/null and b/voices/sapi4-bonzibuddy/m6.wav differ
diff --git a/voices/sapi4-bonzibuddy/m7.wav b/voices/sapi4-bonzibuddy/m7.wav
new file mode 100644
index 0000000..1510010
Binary files /dev/null and b/voices/sapi4-bonzibuddy/m7.wav differ
diff --git a/voices/sapi4-bonzibuddy/m8.wav b/voices/sapi4-bonzibuddy/m8.wav
new file mode 100644
index 0000000..f2c5250
Binary files /dev/null and b/voices/sapi4-bonzibuddy/m8.wav differ
diff --git a/voices/sapi4-bonzibuddy/m9.wav b/voices/sapi4-bonzibuddy/m9.wav
new file mode 100644
index 0000000..d0f313a
Binary files /dev/null and b/voices/sapi4-bonzibuddy/m9.wav differ
diff --git a/voices/sapi4-bonzibuddy/midnight.wav b/voices/sapi4-bonzibuddy/midnight.wav
new file mode 100644
index 0000000..53398ad
Binary files /dev/null and b/voices/sapi4-bonzibuddy/midnight.wav differ
diff --git a/voices/sapi4-bonzibuddy/n0.wav b/voices/sapi4-bonzibuddy/n0.wav
new file mode 100644
index 0000000..7585fda
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n0.wav differ
diff --git a/voices/sapi4-bonzibuddy/n1.wav b/voices/sapi4-bonzibuddy/n1.wav
new file mode 100644
index 0000000..3a69a0d
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n1.wav differ
diff --git a/voices/sapi4-bonzibuddy/n10.wav b/voices/sapi4-bonzibuddy/n10.wav
new file mode 100644
index 0000000..3011b9f
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n10.wav differ
diff --git a/voices/sapi4-bonzibuddy/n11.wav b/voices/sapi4-bonzibuddy/n11.wav
new file mode 100644
index 0000000..0ef68f4
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n11.wav differ
diff --git a/voices/sapi4-bonzibuddy/n12.wav b/voices/sapi4-bonzibuddy/n12.wav
new file mode 100644
index 0000000..149f3c8
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n12.wav differ
diff --git a/voices/sapi4-bonzibuddy/n13.wav b/voices/sapi4-bonzibuddy/n13.wav
new file mode 100644
index 0000000..4702481
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n13.wav differ
diff --git a/voices/sapi4-bonzibuddy/n14.wav b/voices/sapi4-bonzibuddy/n14.wav
new file mode 100644
index 0000000..60e0b8f
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n14.wav differ
diff --git a/voices/sapi4-bonzibuddy/n15.wav b/voices/sapi4-bonzibuddy/n15.wav
new file mode 100644
index 0000000..5812d11
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n15.wav differ
diff --git a/voices/sapi4-bonzibuddy/n16.wav b/voices/sapi4-bonzibuddy/n16.wav
new file mode 100644
index 0000000..63d8818
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n16.wav differ
diff --git a/voices/sapi4-bonzibuddy/n17.wav b/voices/sapi4-bonzibuddy/n17.wav
new file mode 100644
index 0000000..ce633f1
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n17.wav differ
diff --git a/voices/sapi4-bonzibuddy/n18.wav b/voices/sapi4-bonzibuddy/n18.wav
new file mode 100644
index 0000000..b337995
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n18.wav differ
diff --git a/voices/sapi4-bonzibuddy/n19.wav b/voices/sapi4-bonzibuddy/n19.wav
new file mode 100644
index 0000000..2b637a5
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n19.wav differ
diff --git a/voices/sapi4-bonzibuddy/n2.wav b/voices/sapi4-bonzibuddy/n2.wav
new file mode 100644
index 0000000..c842ac0
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n2.wav differ
diff --git a/voices/sapi4-bonzibuddy/n20.wav b/voices/sapi4-bonzibuddy/n20.wav
new file mode 100644
index 0000000..7a744fa
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n20.wav differ
diff --git a/voices/sapi4-bonzibuddy/n21.wav b/voices/sapi4-bonzibuddy/n21.wav
new file mode 100644
index 0000000..5c5fb5a
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n21.wav differ
diff --git a/voices/sapi4-bonzibuddy/n22.wav b/voices/sapi4-bonzibuddy/n22.wav
new file mode 100644
index 0000000..9d90a84
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n22.wav differ
diff --git a/voices/sapi4-bonzibuddy/n23.wav b/voices/sapi4-bonzibuddy/n23.wav
new file mode 100644
index 0000000..1b920dd
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n23.wav differ
diff --git a/voices/sapi4-bonzibuddy/n24.wav b/voices/sapi4-bonzibuddy/n24.wav
new file mode 100644
index 0000000..2eec9a1
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n24.wav differ
diff --git a/voices/sapi4-bonzibuddy/n25.wav b/voices/sapi4-bonzibuddy/n25.wav
new file mode 100644
index 0000000..9efedf5
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n25.wav differ
diff --git a/voices/sapi4-bonzibuddy/n26.wav b/voices/sapi4-bonzibuddy/n26.wav
new file mode 100644
index 0000000..9f38aeb
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n26.wav differ
diff --git a/voices/sapi4-bonzibuddy/n27.wav b/voices/sapi4-bonzibuddy/n27.wav
new file mode 100644
index 0000000..bd48542
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n27.wav differ
diff --git a/voices/sapi4-bonzibuddy/n28.wav b/voices/sapi4-bonzibuddy/n28.wav
new file mode 100644
index 0000000..cee6f49
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n28.wav differ
diff --git a/voices/sapi4-bonzibuddy/n29.wav b/voices/sapi4-bonzibuddy/n29.wav
new file mode 100644
index 0000000..6966114
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n29.wav differ
diff --git a/voices/sapi4-bonzibuddy/n3.wav b/voices/sapi4-bonzibuddy/n3.wav
new file mode 100644
index 0000000..9d377b7
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n3.wav differ
diff --git a/voices/sapi4-bonzibuddy/n30.wav b/voices/sapi4-bonzibuddy/n30.wav
new file mode 100644
index 0000000..938d3aa
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n30.wav differ
diff --git a/voices/sapi4-bonzibuddy/n31.wav b/voices/sapi4-bonzibuddy/n31.wav
new file mode 100644
index 0000000..6ce4275
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n31.wav differ
diff --git a/voices/sapi4-bonzibuddy/n32.wav b/voices/sapi4-bonzibuddy/n32.wav
new file mode 100644
index 0000000..3b8640d
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n32.wav differ
diff --git a/voices/sapi4-bonzibuddy/n33.wav b/voices/sapi4-bonzibuddy/n33.wav
new file mode 100644
index 0000000..b84cb29
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n33.wav differ
diff --git a/voices/sapi4-bonzibuddy/n34.wav b/voices/sapi4-bonzibuddy/n34.wav
new file mode 100644
index 0000000..83a3c33
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n34.wav differ
diff --git a/voices/sapi4-bonzibuddy/n35.wav b/voices/sapi4-bonzibuddy/n35.wav
new file mode 100644
index 0000000..9cfebed
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n35.wav differ
diff --git a/voices/sapi4-bonzibuddy/n36.wav b/voices/sapi4-bonzibuddy/n36.wav
new file mode 100644
index 0000000..f066852
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n36.wav differ
diff --git a/voices/sapi4-bonzibuddy/n37.wav b/voices/sapi4-bonzibuddy/n37.wav
new file mode 100644
index 0000000..87b9bd5
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n37.wav differ
diff --git a/voices/sapi4-bonzibuddy/n38.wav b/voices/sapi4-bonzibuddy/n38.wav
new file mode 100644
index 0000000..8764d4a
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n38.wav differ
diff --git a/voices/sapi4-bonzibuddy/n39.wav b/voices/sapi4-bonzibuddy/n39.wav
new file mode 100644
index 0000000..6ce0569
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n39.wav differ
diff --git a/voices/sapi4-bonzibuddy/n4.wav b/voices/sapi4-bonzibuddy/n4.wav
new file mode 100644
index 0000000..c5e1c62
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n4.wav differ
diff --git a/voices/sapi4-bonzibuddy/n40.wav b/voices/sapi4-bonzibuddy/n40.wav
new file mode 100644
index 0000000..a21714a
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n40.wav differ
diff --git a/voices/sapi4-bonzibuddy/n41.wav b/voices/sapi4-bonzibuddy/n41.wav
new file mode 100644
index 0000000..e460376
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n41.wav differ
diff --git a/voices/sapi4-bonzibuddy/n42.wav b/voices/sapi4-bonzibuddy/n42.wav
new file mode 100644
index 0000000..5e64018
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n42.wav differ
diff --git a/voices/sapi4-bonzibuddy/n43.wav b/voices/sapi4-bonzibuddy/n43.wav
new file mode 100644
index 0000000..51b2cf8
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n43.wav differ
diff --git a/voices/sapi4-bonzibuddy/n44.wav b/voices/sapi4-bonzibuddy/n44.wav
new file mode 100644
index 0000000..cf0e22f
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n44.wav differ
diff --git a/voices/sapi4-bonzibuddy/n45.wav b/voices/sapi4-bonzibuddy/n45.wav
new file mode 100644
index 0000000..cec5d6c
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n45.wav differ
diff --git a/voices/sapi4-bonzibuddy/n46.wav b/voices/sapi4-bonzibuddy/n46.wav
new file mode 100644
index 0000000..c6abe05
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n46.wav differ
diff --git a/voices/sapi4-bonzibuddy/n47.wav b/voices/sapi4-bonzibuddy/n47.wav
new file mode 100644
index 0000000..e2483f1
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n47.wav differ
diff --git a/voices/sapi4-bonzibuddy/n48.wav b/voices/sapi4-bonzibuddy/n48.wav
new file mode 100644
index 0000000..6bc289f
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n48.wav differ
diff --git a/voices/sapi4-bonzibuddy/n49.wav b/voices/sapi4-bonzibuddy/n49.wav
new file mode 100644
index 0000000..b97ddc1
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n49.wav differ
diff --git a/voices/sapi4-bonzibuddy/n5.wav b/voices/sapi4-bonzibuddy/n5.wav
new file mode 100644
index 0000000..5744d42
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n5.wav differ
diff --git a/voices/sapi4-bonzibuddy/n50.wav b/voices/sapi4-bonzibuddy/n50.wav
new file mode 100644
index 0000000..895d122
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n50.wav differ
diff --git a/voices/sapi4-bonzibuddy/n51.wav b/voices/sapi4-bonzibuddy/n51.wav
new file mode 100644
index 0000000..3657155
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n51.wav differ
diff --git a/voices/sapi4-bonzibuddy/n52.wav b/voices/sapi4-bonzibuddy/n52.wav
new file mode 100644
index 0000000..8d86cb6
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n52.wav differ
diff --git a/voices/sapi4-bonzibuddy/n53.wav b/voices/sapi4-bonzibuddy/n53.wav
new file mode 100644
index 0000000..53165e7
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n53.wav differ
diff --git a/voices/sapi4-bonzibuddy/n54.wav b/voices/sapi4-bonzibuddy/n54.wav
new file mode 100644
index 0000000..930e1c7
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n54.wav differ
diff --git a/voices/sapi4-bonzibuddy/n55.wav b/voices/sapi4-bonzibuddy/n55.wav
new file mode 100644
index 0000000..13e7053
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n55.wav differ
diff --git a/voices/sapi4-bonzibuddy/n56.wav b/voices/sapi4-bonzibuddy/n56.wav
new file mode 100644
index 0000000..4b68fbf
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n56.wav differ
diff --git a/voices/sapi4-bonzibuddy/n57.wav b/voices/sapi4-bonzibuddy/n57.wav
new file mode 100644
index 0000000..e5466d9
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n57.wav differ
diff --git a/voices/sapi4-bonzibuddy/n58.wav b/voices/sapi4-bonzibuddy/n58.wav
new file mode 100644
index 0000000..92f2a01
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n58.wav differ
diff --git a/voices/sapi4-bonzibuddy/n59.wav b/voices/sapi4-bonzibuddy/n59.wav
new file mode 100644
index 0000000..6f30335
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n59.wav differ
diff --git a/voices/sapi4-bonzibuddy/n6.wav b/voices/sapi4-bonzibuddy/n6.wav
new file mode 100644
index 0000000..c26ac77
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n6.wav differ
diff --git a/voices/sapi4-bonzibuddy/n7.wav b/voices/sapi4-bonzibuddy/n7.wav
new file mode 100644
index 0000000..ccad386
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n7.wav differ
diff --git a/voices/sapi4-bonzibuddy/n8.wav b/voices/sapi4-bonzibuddy/n8.wav
new file mode 100644
index 0000000..0df6fb0
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n8.wav differ
diff --git a/voices/sapi4-bonzibuddy/n9.wav b/voices/sapi4-bonzibuddy/n9.wav
new file mode 100644
index 0000000..5e587dc
Binary files /dev/null and b/voices/sapi4-bonzibuddy/n9.wav differ
diff --git a/voices/sapi4-bonzibuddy/noon.wav b/voices/sapi4-bonzibuddy/noon.wav
new file mode 100644
index 0000000..7274404
Binary files /dev/null and b/voices/sapi4-bonzibuddy/noon.wav differ
diff --git a/voices/sapi4-bonzibuddy/oclock.wav b/voices/sapi4-bonzibuddy/oclock.wav
new file mode 100644
index 0000000..702ab53
Binary files /dev/null and b/voices/sapi4-bonzibuddy/oclock.wav differ
diff --git a/voices/sapi4-bonzibuddy/oh.wav b/voices/sapi4-bonzibuddy/oh.wav
new file mode 100644
index 0000000..8043226
Binary files /dev/null and b/voices/sapi4-bonzibuddy/oh.wav differ
diff --git a/voices/sapi4-bonzibuddy/phrase.wav b/voices/sapi4-bonzibuddy/phrase.wav
new file mode 100644
index 0000000..76bdcbd
Binary files /dev/null and b/voices/sapi4-bonzibuddy/phrase.wav differ
diff --git a/voices/sapi4-bonzibuddy/pm.wav b/voices/sapi4-bonzibuddy/pm.wav
new file mode 100644
index 0000000..0c3905c
Binary files /dev/null and b/voices/sapi4-bonzibuddy/pm.wav differ
diff --git a/voices/sapi4-bonzibuddy/precisely.wav b/voices/sapi4-bonzibuddy/precisely.wav
new file mode 100644
index 0000000..9c7eba3
Binary files /dev/null and b/voices/sapi4-bonzibuddy/precisely.wav differ
diff --git a/voices/sapi4-bonzibuddy/s10.wav b/voices/sapi4-bonzibuddy/s10.wav
new file mode 100644
index 0000000..fce5004
Binary files /dev/null and b/voices/sapi4-bonzibuddy/s10.wav differ
diff --git a/voices/sapi4-bonzibuddy/s20.wav b/voices/sapi4-bonzibuddy/s20.wav
new file mode 100644
index 0000000..8b01412
Binary files /dev/null and b/voices/sapi4-bonzibuddy/s20.wav differ
diff --git a/voices/sapi4-bonzibuddy/s30.wav b/voices/sapi4-bonzibuddy/s30.wav
new file mode 100644
index 0000000..4c9d468
Binary files /dev/null and b/voices/sapi4-bonzibuddy/s30.wav differ
diff --git a/voices/sapi4-bonzibuddy/s40.wav b/voices/sapi4-bonzibuddy/s40.wav
new file mode 100644
index 0000000..d710ce0
Binary files /dev/null and b/voices/sapi4-bonzibuddy/s40.wav differ
diff --git a/voices/sapi4-bonzibuddy/s50.wav b/voices/sapi4-bonzibuddy/s50.wav
new file mode 100644
index 0000000..4bd1fbd
Binary files /dev/null and b/voices/sapi4-bonzibuddy/s50.wav differ
diff --git a/voices/sapi4-bonzibuddy/voice.conf b/voices/sapi4-bonzibuddy/voice.conf
new file mode 100644
index 0000000..bf6373b
--- /dev/null
+++ b/voices/sapi4-bonzibuddy/voice.conf
@@ -0,0 +1,16 @@
+; Voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py sapi4:bonzibuddy. The synthesiser belongs to its owners;
+; see NOTICE.md.
+
+[voice]
+name=BonziBUDDY (SAPI4 TruVoice)
+description=Lernout & Hauspie TruVoice Adult Male #2 at BonziBUDDY's pitch and speed
+mode=tim
+sequence=phrase+hour+minute+seconds+pips
+period=10
+; no pips.wav: the module makes the pips (1 kHz, the third one marks the time)
+
+[source]
+engine=sapi4
+voice=bonzibuddy
+synthesiser=Microsoft Speech API 4 runtime and voices, spoken by https://www.tetyys.com/SAPI4/
diff --git a/voices/sapi4-lh-jane/am.wav b/voices/sapi4-lh-jane/am.wav
new file mode 100644
index 0000000..29be21e
Binary files /dev/null and b/voices/sapi4-lh-jane/am.wav differ
diff --git a/voices/sapi4-lh-jane/greet_afternoon.wav b/voices/sapi4-lh-jane/greet_afternoon.wav
new file mode 100644
index 0000000..3f9805b
Binary files /dev/null and b/voices/sapi4-lh-jane/greet_afternoon.wav differ
diff --git a/voices/sapi4-lh-jane/greet_evening.wav b/voices/sapi4-lh-jane/greet_evening.wav
new file mode 100644
index 0000000..b6071c4
Binary files /dev/null and b/voices/sapi4-lh-jane/greet_evening.wav differ
diff --git a/voices/sapi4-lh-jane/greet_morning.wav b/voices/sapi4-lh-jane/greet_morning.wav
new file mode 100644
index 0000000..a695ea6
Binary files /dev/null and b/voices/sapi4-lh-jane/greet_morning.wav differ
diff --git a/voices/sapi4-lh-jane/its.wav b/voices/sapi4-lh-jane/its.wav
new file mode 100644
index 0000000..4cf9bd7
Binary files /dev/null and b/voices/sapi4-lh-jane/its.wav differ
diff --git a/voices/sapi4-lh-jane/m1.wav b/voices/sapi4-lh-jane/m1.wav
new file mode 100644
index 0000000..ca59cdf
Binary files /dev/null and b/voices/sapi4-lh-jane/m1.wav differ
diff --git a/voices/sapi4-lh-jane/m2.wav b/voices/sapi4-lh-jane/m2.wav
new file mode 100644
index 0000000..6c36687
Binary files /dev/null and b/voices/sapi4-lh-jane/m2.wav differ
diff --git a/voices/sapi4-lh-jane/m3.wav b/voices/sapi4-lh-jane/m3.wav
new file mode 100644
index 0000000..b1d6070
Binary files /dev/null and b/voices/sapi4-lh-jane/m3.wav differ
diff --git a/voices/sapi4-lh-jane/m4.wav b/voices/sapi4-lh-jane/m4.wav
new file mode 100644
index 0000000..5e42c64
Binary files /dev/null and b/voices/sapi4-lh-jane/m4.wav differ
diff --git a/voices/sapi4-lh-jane/m5.wav b/voices/sapi4-lh-jane/m5.wav
new file mode 100644
index 0000000..031b523
Binary files /dev/null and b/voices/sapi4-lh-jane/m5.wav differ
diff --git a/voices/sapi4-lh-jane/m6.wav b/voices/sapi4-lh-jane/m6.wav
new file mode 100644
index 0000000..a64173d
Binary files /dev/null and b/voices/sapi4-lh-jane/m6.wav differ
diff --git a/voices/sapi4-lh-jane/m7.wav b/voices/sapi4-lh-jane/m7.wav
new file mode 100644
index 0000000..3cf2626
Binary files /dev/null and b/voices/sapi4-lh-jane/m7.wav differ
diff --git a/voices/sapi4-lh-jane/m8.wav b/voices/sapi4-lh-jane/m8.wav
new file mode 100644
index 0000000..6304279
Binary files /dev/null and b/voices/sapi4-lh-jane/m8.wav differ
diff --git a/voices/sapi4-lh-jane/m9.wav b/voices/sapi4-lh-jane/m9.wav
new file mode 100644
index 0000000..9de83ef
Binary files /dev/null and b/voices/sapi4-lh-jane/m9.wav differ
diff --git a/voices/sapi4-lh-jane/midnight.wav b/voices/sapi4-lh-jane/midnight.wav
new file mode 100644
index 0000000..80c0584
Binary files /dev/null and b/voices/sapi4-lh-jane/midnight.wav differ
diff --git a/voices/sapi4-lh-jane/n0.wav b/voices/sapi4-lh-jane/n0.wav
new file mode 100644
index 0000000..c389be0
Binary files /dev/null and b/voices/sapi4-lh-jane/n0.wav differ
diff --git a/voices/sapi4-lh-jane/n1.wav b/voices/sapi4-lh-jane/n1.wav
new file mode 100644
index 0000000..3764479
Binary files /dev/null and b/voices/sapi4-lh-jane/n1.wav differ
diff --git a/voices/sapi4-lh-jane/n10.wav b/voices/sapi4-lh-jane/n10.wav
new file mode 100644
index 0000000..ad56a82
Binary files /dev/null and b/voices/sapi4-lh-jane/n10.wav differ
diff --git a/voices/sapi4-lh-jane/n11.wav b/voices/sapi4-lh-jane/n11.wav
new file mode 100644
index 0000000..3e1d4b6
Binary files /dev/null and b/voices/sapi4-lh-jane/n11.wav differ
diff --git a/voices/sapi4-lh-jane/n12.wav b/voices/sapi4-lh-jane/n12.wav
new file mode 100644
index 0000000..290cd97
Binary files /dev/null and b/voices/sapi4-lh-jane/n12.wav differ
diff --git a/voices/sapi4-lh-jane/n13.wav b/voices/sapi4-lh-jane/n13.wav
new file mode 100644
index 0000000..4808b39
Binary files /dev/null and b/voices/sapi4-lh-jane/n13.wav differ
diff --git a/voices/sapi4-lh-jane/n14.wav b/voices/sapi4-lh-jane/n14.wav
new file mode 100644
index 0000000..43b189c
Binary files /dev/null and b/voices/sapi4-lh-jane/n14.wav differ
diff --git a/voices/sapi4-lh-jane/n15.wav b/voices/sapi4-lh-jane/n15.wav
new file mode 100644
index 0000000..29bca9e
Binary files /dev/null and b/voices/sapi4-lh-jane/n15.wav differ
diff --git a/voices/sapi4-lh-jane/n16.wav b/voices/sapi4-lh-jane/n16.wav
new file mode 100644
index 0000000..d2e076d
Binary files /dev/null and b/voices/sapi4-lh-jane/n16.wav differ
diff --git a/voices/sapi4-lh-jane/n17.wav b/voices/sapi4-lh-jane/n17.wav
new file mode 100644
index 0000000..2797586
Binary files /dev/null and b/voices/sapi4-lh-jane/n17.wav differ
diff --git a/voices/sapi4-lh-jane/n18.wav b/voices/sapi4-lh-jane/n18.wav
new file mode 100644
index 0000000..65f7f71
Binary files /dev/null and b/voices/sapi4-lh-jane/n18.wav differ
diff --git a/voices/sapi4-lh-jane/n19.wav b/voices/sapi4-lh-jane/n19.wav
new file mode 100644
index 0000000..bba44ce
Binary files /dev/null and b/voices/sapi4-lh-jane/n19.wav differ
diff --git a/voices/sapi4-lh-jane/n2.wav b/voices/sapi4-lh-jane/n2.wav
new file mode 100644
index 0000000..185e4b9
Binary files /dev/null and b/voices/sapi4-lh-jane/n2.wav differ
diff --git a/voices/sapi4-lh-jane/n20.wav b/voices/sapi4-lh-jane/n20.wav
new file mode 100644
index 0000000..8c9dcf4
Binary files /dev/null and b/voices/sapi4-lh-jane/n20.wav differ
diff --git a/voices/sapi4-lh-jane/n21.wav b/voices/sapi4-lh-jane/n21.wav
new file mode 100644
index 0000000..0d71d22
Binary files /dev/null and b/voices/sapi4-lh-jane/n21.wav differ
diff --git a/voices/sapi4-lh-jane/n22.wav b/voices/sapi4-lh-jane/n22.wav
new file mode 100644
index 0000000..751f420
Binary files /dev/null and b/voices/sapi4-lh-jane/n22.wav differ
diff --git a/voices/sapi4-lh-jane/n23.wav b/voices/sapi4-lh-jane/n23.wav
new file mode 100644
index 0000000..0308afb
Binary files /dev/null and b/voices/sapi4-lh-jane/n23.wav differ
diff --git a/voices/sapi4-lh-jane/n24.wav b/voices/sapi4-lh-jane/n24.wav
new file mode 100644
index 0000000..ca197bc
Binary files /dev/null and b/voices/sapi4-lh-jane/n24.wav differ
diff --git a/voices/sapi4-lh-jane/n25.wav b/voices/sapi4-lh-jane/n25.wav
new file mode 100644
index 0000000..549f422
Binary files /dev/null and b/voices/sapi4-lh-jane/n25.wav differ
diff --git a/voices/sapi4-lh-jane/n26.wav b/voices/sapi4-lh-jane/n26.wav
new file mode 100644
index 0000000..0cdf490
Binary files /dev/null and b/voices/sapi4-lh-jane/n26.wav differ
diff --git a/voices/sapi4-lh-jane/n27.wav b/voices/sapi4-lh-jane/n27.wav
new file mode 100644
index 0000000..41ef021
Binary files /dev/null and b/voices/sapi4-lh-jane/n27.wav differ
diff --git a/voices/sapi4-lh-jane/n28.wav b/voices/sapi4-lh-jane/n28.wav
new file mode 100644
index 0000000..8476558
Binary files /dev/null and b/voices/sapi4-lh-jane/n28.wav differ
diff --git a/voices/sapi4-lh-jane/n29.wav b/voices/sapi4-lh-jane/n29.wav
new file mode 100644
index 0000000..5420e27
Binary files /dev/null and b/voices/sapi4-lh-jane/n29.wav differ
diff --git a/voices/sapi4-lh-jane/n3.wav b/voices/sapi4-lh-jane/n3.wav
new file mode 100644
index 0000000..0dbd1b5
Binary files /dev/null and b/voices/sapi4-lh-jane/n3.wav differ
diff --git a/voices/sapi4-lh-jane/n30.wav b/voices/sapi4-lh-jane/n30.wav
new file mode 100644
index 0000000..52216fc
Binary files /dev/null and b/voices/sapi4-lh-jane/n30.wav differ
diff --git a/voices/sapi4-lh-jane/n31.wav b/voices/sapi4-lh-jane/n31.wav
new file mode 100644
index 0000000..f15336d
Binary files /dev/null and b/voices/sapi4-lh-jane/n31.wav differ
diff --git a/voices/sapi4-lh-jane/n32.wav b/voices/sapi4-lh-jane/n32.wav
new file mode 100644
index 0000000..4243613
Binary files /dev/null and b/voices/sapi4-lh-jane/n32.wav differ
diff --git a/voices/sapi4-lh-jane/n33.wav b/voices/sapi4-lh-jane/n33.wav
new file mode 100644
index 0000000..279daf4
Binary files /dev/null and b/voices/sapi4-lh-jane/n33.wav differ
diff --git a/voices/sapi4-lh-jane/n34.wav b/voices/sapi4-lh-jane/n34.wav
new file mode 100644
index 0000000..46af7a3
Binary files /dev/null and b/voices/sapi4-lh-jane/n34.wav differ
diff --git a/voices/sapi4-lh-jane/n35.wav b/voices/sapi4-lh-jane/n35.wav
new file mode 100644
index 0000000..01648b4
Binary files /dev/null and b/voices/sapi4-lh-jane/n35.wav differ
diff --git a/voices/sapi4-lh-jane/n36.wav b/voices/sapi4-lh-jane/n36.wav
new file mode 100644
index 0000000..36bc9e8
Binary files /dev/null and b/voices/sapi4-lh-jane/n36.wav differ
diff --git a/voices/sapi4-lh-jane/n37.wav b/voices/sapi4-lh-jane/n37.wav
new file mode 100644
index 0000000..85c8357
Binary files /dev/null and b/voices/sapi4-lh-jane/n37.wav differ
diff --git a/voices/sapi4-lh-jane/n38.wav b/voices/sapi4-lh-jane/n38.wav
new file mode 100644
index 0000000..c646b83
Binary files /dev/null and b/voices/sapi4-lh-jane/n38.wav differ
diff --git a/voices/sapi4-lh-jane/n39.wav b/voices/sapi4-lh-jane/n39.wav
new file mode 100644
index 0000000..2783541
Binary files /dev/null and b/voices/sapi4-lh-jane/n39.wav differ
diff --git a/voices/sapi4-lh-jane/n4.wav b/voices/sapi4-lh-jane/n4.wav
new file mode 100644
index 0000000..c21a9d8
Binary files /dev/null and b/voices/sapi4-lh-jane/n4.wav differ
diff --git a/voices/sapi4-lh-jane/n40.wav b/voices/sapi4-lh-jane/n40.wav
new file mode 100644
index 0000000..2aed923
Binary files /dev/null and b/voices/sapi4-lh-jane/n40.wav differ
diff --git a/voices/sapi4-lh-jane/n41.wav b/voices/sapi4-lh-jane/n41.wav
new file mode 100644
index 0000000..44338d3
Binary files /dev/null and b/voices/sapi4-lh-jane/n41.wav differ
diff --git a/voices/sapi4-lh-jane/n42.wav b/voices/sapi4-lh-jane/n42.wav
new file mode 100644
index 0000000..7d17858
Binary files /dev/null and b/voices/sapi4-lh-jane/n42.wav differ
diff --git a/voices/sapi4-lh-jane/n43.wav b/voices/sapi4-lh-jane/n43.wav
new file mode 100644
index 0000000..dff8ca5
Binary files /dev/null and b/voices/sapi4-lh-jane/n43.wav differ
diff --git a/voices/sapi4-lh-jane/n44.wav b/voices/sapi4-lh-jane/n44.wav
new file mode 100644
index 0000000..dc44fb1
Binary files /dev/null and b/voices/sapi4-lh-jane/n44.wav differ
diff --git a/voices/sapi4-lh-jane/n45.wav b/voices/sapi4-lh-jane/n45.wav
new file mode 100644
index 0000000..f637d63
Binary files /dev/null and b/voices/sapi4-lh-jane/n45.wav differ
diff --git a/voices/sapi4-lh-jane/n46.wav b/voices/sapi4-lh-jane/n46.wav
new file mode 100644
index 0000000..deef242
Binary files /dev/null and b/voices/sapi4-lh-jane/n46.wav differ
diff --git a/voices/sapi4-lh-jane/n47.wav b/voices/sapi4-lh-jane/n47.wav
new file mode 100644
index 0000000..c578bb1
Binary files /dev/null and b/voices/sapi4-lh-jane/n47.wav differ
diff --git a/voices/sapi4-lh-jane/n48.wav b/voices/sapi4-lh-jane/n48.wav
new file mode 100644
index 0000000..26d762a
Binary files /dev/null and b/voices/sapi4-lh-jane/n48.wav differ
diff --git a/voices/sapi4-lh-jane/n49.wav b/voices/sapi4-lh-jane/n49.wav
new file mode 100644
index 0000000..2f7cc76
Binary files /dev/null and b/voices/sapi4-lh-jane/n49.wav differ
diff --git a/voices/sapi4-lh-jane/n5.wav b/voices/sapi4-lh-jane/n5.wav
new file mode 100644
index 0000000..7b5eda0
Binary files /dev/null and b/voices/sapi4-lh-jane/n5.wav differ
diff --git a/voices/sapi4-lh-jane/n50.wav b/voices/sapi4-lh-jane/n50.wav
new file mode 100644
index 0000000..cac87b8
Binary files /dev/null and b/voices/sapi4-lh-jane/n50.wav differ
diff --git a/voices/sapi4-lh-jane/n51.wav b/voices/sapi4-lh-jane/n51.wav
new file mode 100644
index 0000000..31ec863
Binary files /dev/null and b/voices/sapi4-lh-jane/n51.wav differ
diff --git a/voices/sapi4-lh-jane/n52.wav b/voices/sapi4-lh-jane/n52.wav
new file mode 100644
index 0000000..21484f1
Binary files /dev/null and b/voices/sapi4-lh-jane/n52.wav differ
diff --git a/voices/sapi4-lh-jane/n53.wav b/voices/sapi4-lh-jane/n53.wav
new file mode 100644
index 0000000..f7b0a62
Binary files /dev/null and b/voices/sapi4-lh-jane/n53.wav differ
diff --git a/voices/sapi4-lh-jane/n54.wav b/voices/sapi4-lh-jane/n54.wav
new file mode 100644
index 0000000..290b9ea
Binary files /dev/null and b/voices/sapi4-lh-jane/n54.wav differ
diff --git a/voices/sapi4-lh-jane/n55.wav b/voices/sapi4-lh-jane/n55.wav
new file mode 100644
index 0000000..4748c08
Binary files /dev/null and b/voices/sapi4-lh-jane/n55.wav differ
diff --git a/voices/sapi4-lh-jane/n56.wav b/voices/sapi4-lh-jane/n56.wav
new file mode 100644
index 0000000..9b80bd0
Binary files /dev/null and b/voices/sapi4-lh-jane/n56.wav differ
diff --git a/voices/sapi4-lh-jane/n57.wav b/voices/sapi4-lh-jane/n57.wav
new file mode 100644
index 0000000..cfa138e
Binary files /dev/null and b/voices/sapi4-lh-jane/n57.wav differ
diff --git a/voices/sapi4-lh-jane/n58.wav b/voices/sapi4-lh-jane/n58.wav
new file mode 100644
index 0000000..2137ebe
Binary files /dev/null and b/voices/sapi4-lh-jane/n58.wav differ
diff --git a/voices/sapi4-lh-jane/n59.wav b/voices/sapi4-lh-jane/n59.wav
new file mode 100644
index 0000000..80f73c1
Binary files /dev/null and b/voices/sapi4-lh-jane/n59.wav differ
diff --git a/voices/sapi4-lh-jane/n6.wav b/voices/sapi4-lh-jane/n6.wav
new file mode 100644
index 0000000..37c9612
Binary files /dev/null and b/voices/sapi4-lh-jane/n6.wav differ
diff --git a/voices/sapi4-lh-jane/n7.wav b/voices/sapi4-lh-jane/n7.wav
new file mode 100644
index 0000000..98136ec
Binary files /dev/null and b/voices/sapi4-lh-jane/n7.wav differ
diff --git a/voices/sapi4-lh-jane/n8.wav b/voices/sapi4-lh-jane/n8.wav
new file mode 100644
index 0000000..85713b4
Binary files /dev/null and b/voices/sapi4-lh-jane/n8.wav differ
diff --git a/voices/sapi4-lh-jane/n9.wav b/voices/sapi4-lh-jane/n9.wav
new file mode 100644
index 0000000..0661c0b
Binary files /dev/null and b/voices/sapi4-lh-jane/n9.wav differ
diff --git a/voices/sapi4-lh-jane/noon.wav b/voices/sapi4-lh-jane/noon.wav
new file mode 100644
index 0000000..4dca1ef
Binary files /dev/null and b/voices/sapi4-lh-jane/noon.wav differ
diff --git a/voices/sapi4-lh-jane/oclock.wav b/voices/sapi4-lh-jane/oclock.wav
new file mode 100644
index 0000000..4f73636
Binary files /dev/null and b/voices/sapi4-lh-jane/oclock.wav differ
diff --git a/voices/sapi4-lh-jane/oh.wav b/voices/sapi4-lh-jane/oh.wav
new file mode 100644
index 0000000..2ad9ce1
Binary files /dev/null and b/voices/sapi4-lh-jane/oh.wav differ
diff --git a/voices/sapi4-lh-jane/phrase.wav b/voices/sapi4-lh-jane/phrase.wav
new file mode 100644
index 0000000..caa62a1
Binary files /dev/null and b/voices/sapi4-lh-jane/phrase.wav differ
diff --git a/voices/sapi4-lh-jane/pm.wav b/voices/sapi4-lh-jane/pm.wav
new file mode 100644
index 0000000..3b3ec9f
Binary files /dev/null and b/voices/sapi4-lh-jane/pm.wav differ
diff --git a/voices/sapi4-lh-jane/precisely.wav b/voices/sapi4-lh-jane/precisely.wav
new file mode 100644
index 0000000..8f98bf6
Binary files /dev/null and b/voices/sapi4-lh-jane/precisely.wav differ
diff --git a/voices/sapi4-lh-jane/s10.wav b/voices/sapi4-lh-jane/s10.wav
new file mode 100644
index 0000000..49244c2
Binary files /dev/null and b/voices/sapi4-lh-jane/s10.wav differ
diff --git a/voices/sapi4-lh-jane/s20.wav b/voices/sapi4-lh-jane/s20.wav
new file mode 100644
index 0000000..4eb66ef
Binary files /dev/null and b/voices/sapi4-lh-jane/s20.wav differ
diff --git a/voices/sapi4-lh-jane/s30.wav b/voices/sapi4-lh-jane/s30.wav
new file mode 100644
index 0000000..fbd1a32
Binary files /dev/null and b/voices/sapi4-lh-jane/s30.wav differ
diff --git a/voices/sapi4-lh-jane/s40.wav b/voices/sapi4-lh-jane/s40.wav
new file mode 100644
index 0000000..2ca9068
Binary files /dev/null and b/voices/sapi4-lh-jane/s40.wav differ
diff --git a/voices/sapi4-lh-jane/s50.wav b/voices/sapi4-lh-jane/s50.wav
new file mode 100644
index 0000000..e93e2b8
Binary files /dev/null and b/voices/sapi4-lh-jane/s50.wav differ
diff --git a/voices/sapi4-lh-jane/voice.conf b/voices/sapi4-lh-jane/voice.conf
new file mode 100644
index 0000000..64c4806
--- /dev/null
+++ b/voices/sapi4-lh-jane/voice.conf
@@ -0,0 +1,16 @@
+; Voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py sapi4:lh-jane. The synthesiser belongs to its owners;
+; see NOTICE.md.
+
+[voice]
+name=L&H Jane (SAPI4)
+description=Lernout & Hauspie TTS3000 British English
+mode=tim
+sequence=phrase+hour+minute+seconds+pips
+period=10
+; no pips.wav: the module makes the pips (1 kHz, the third one marks the time)
+
+[source]
+engine=sapi4
+voice=lh-jane
+synthesiser=Microsoft Speech API 4 runtime and voices, spoken by https://www.tetyys.com/SAPI4/
diff --git a/voices/sapi4-lh-reed/am.wav b/voices/sapi4-lh-reed/am.wav
new file mode 100644
index 0000000..1caa66a
Binary files /dev/null and b/voices/sapi4-lh-reed/am.wav differ
diff --git a/voices/sapi4-lh-reed/greet_afternoon.wav b/voices/sapi4-lh-reed/greet_afternoon.wav
new file mode 100644
index 0000000..ead3553
Binary files /dev/null and b/voices/sapi4-lh-reed/greet_afternoon.wav differ
diff --git a/voices/sapi4-lh-reed/greet_evening.wav b/voices/sapi4-lh-reed/greet_evening.wav
new file mode 100644
index 0000000..6aba515
Binary files /dev/null and b/voices/sapi4-lh-reed/greet_evening.wav differ
diff --git a/voices/sapi4-lh-reed/greet_morning.wav b/voices/sapi4-lh-reed/greet_morning.wav
new file mode 100644
index 0000000..3adf883
Binary files /dev/null and b/voices/sapi4-lh-reed/greet_morning.wav differ
diff --git a/voices/sapi4-lh-reed/its.wav b/voices/sapi4-lh-reed/its.wav
new file mode 100644
index 0000000..a02a8fd
Binary files /dev/null and b/voices/sapi4-lh-reed/its.wav differ
diff --git a/voices/sapi4-lh-reed/m1.wav b/voices/sapi4-lh-reed/m1.wav
new file mode 100644
index 0000000..36cd8e7
Binary files /dev/null and b/voices/sapi4-lh-reed/m1.wav differ
diff --git a/voices/sapi4-lh-reed/m2.wav b/voices/sapi4-lh-reed/m2.wav
new file mode 100644
index 0000000..9c46b09
Binary files /dev/null and b/voices/sapi4-lh-reed/m2.wav differ
diff --git a/voices/sapi4-lh-reed/m3.wav b/voices/sapi4-lh-reed/m3.wav
new file mode 100644
index 0000000..ba67564
Binary files /dev/null and b/voices/sapi4-lh-reed/m3.wav differ
diff --git a/voices/sapi4-lh-reed/m4.wav b/voices/sapi4-lh-reed/m4.wav
new file mode 100644
index 0000000..f94be65
Binary files /dev/null and b/voices/sapi4-lh-reed/m4.wav differ
diff --git a/voices/sapi4-lh-reed/m5.wav b/voices/sapi4-lh-reed/m5.wav
new file mode 100644
index 0000000..9c7882c
Binary files /dev/null and b/voices/sapi4-lh-reed/m5.wav differ
diff --git a/voices/sapi4-lh-reed/m6.wav b/voices/sapi4-lh-reed/m6.wav
new file mode 100644
index 0000000..438429a
Binary files /dev/null and b/voices/sapi4-lh-reed/m6.wav differ
diff --git a/voices/sapi4-lh-reed/m7.wav b/voices/sapi4-lh-reed/m7.wav
new file mode 100644
index 0000000..0ecc579
Binary files /dev/null and b/voices/sapi4-lh-reed/m7.wav differ
diff --git a/voices/sapi4-lh-reed/m8.wav b/voices/sapi4-lh-reed/m8.wav
new file mode 100644
index 0000000..297be57
Binary files /dev/null and b/voices/sapi4-lh-reed/m8.wav differ
diff --git a/voices/sapi4-lh-reed/m9.wav b/voices/sapi4-lh-reed/m9.wav
new file mode 100644
index 0000000..8bb2136
Binary files /dev/null and b/voices/sapi4-lh-reed/m9.wav differ
diff --git a/voices/sapi4-lh-reed/midnight.wav b/voices/sapi4-lh-reed/midnight.wav
new file mode 100644
index 0000000..a5c43fb
Binary files /dev/null and b/voices/sapi4-lh-reed/midnight.wav differ
diff --git a/voices/sapi4-lh-reed/n0.wav b/voices/sapi4-lh-reed/n0.wav
new file mode 100644
index 0000000..12d28f7
Binary files /dev/null and b/voices/sapi4-lh-reed/n0.wav differ
diff --git a/voices/sapi4-lh-reed/n1.wav b/voices/sapi4-lh-reed/n1.wav
new file mode 100644
index 0000000..c4b2312
Binary files /dev/null and b/voices/sapi4-lh-reed/n1.wav differ
diff --git a/voices/sapi4-lh-reed/n10.wav b/voices/sapi4-lh-reed/n10.wav
new file mode 100644
index 0000000..7d7aa01
Binary files /dev/null and b/voices/sapi4-lh-reed/n10.wav differ
diff --git a/voices/sapi4-lh-reed/n11.wav b/voices/sapi4-lh-reed/n11.wav
new file mode 100644
index 0000000..e3b7aea
Binary files /dev/null and b/voices/sapi4-lh-reed/n11.wav differ
diff --git a/voices/sapi4-lh-reed/n12.wav b/voices/sapi4-lh-reed/n12.wav
new file mode 100644
index 0000000..dc17f3e
Binary files /dev/null and b/voices/sapi4-lh-reed/n12.wav differ
diff --git a/voices/sapi4-lh-reed/n13.wav b/voices/sapi4-lh-reed/n13.wav
new file mode 100644
index 0000000..b550b38
Binary files /dev/null and b/voices/sapi4-lh-reed/n13.wav differ
diff --git a/voices/sapi4-lh-reed/n14.wav b/voices/sapi4-lh-reed/n14.wav
new file mode 100644
index 0000000..8a16835
Binary files /dev/null and b/voices/sapi4-lh-reed/n14.wav differ
diff --git a/voices/sapi4-lh-reed/n15.wav b/voices/sapi4-lh-reed/n15.wav
new file mode 100644
index 0000000..e849fe8
Binary files /dev/null and b/voices/sapi4-lh-reed/n15.wav differ
diff --git a/voices/sapi4-lh-reed/n16.wav b/voices/sapi4-lh-reed/n16.wav
new file mode 100644
index 0000000..d46f397
Binary files /dev/null and b/voices/sapi4-lh-reed/n16.wav differ
diff --git a/voices/sapi4-lh-reed/n17.wav b/voices/sapi4-lh-reed/n17.wav
new file mode 100644
index 0000000..f04461a
Binary files /dev/null and b/voices/sapi4-lh-reed/n17.wav differ
diff --git a/voices/sapi4-lh-reed/n18.wav b/voices/sapi4-lh-reed/n18.wav
new file mode 100644
index 0000000..163c6c5
Binary files /dev/null and b/voices/sapi4-lh-reed/n18.wav differ
diff --git a/voices/sapi4-lh-reed/n19.wav b/voices/sapi4-lh-reed/n19.wav
new file mode 100644
index 0000000..b9794ea
Binary files /dev/null and b/voices/sapi4-lh-reed/n19.wav differ
diff --git a/voices/sapi4-lh-reed/n2.wav b/voices/sapi4-lh-reed/n2.wav
new file mode 100644
index 0000000..97a2741
Binary files /dev/null and b/voices/sapi4-lh-reed/n2.wav differ
diff --git a/voices/sapi4-lh-reed/n20.wav b/voices/sapi4-lh-reed/n20.wav
new file mode 100644
index 0000000..d8af112
Binary files /dev/null and b/voices/sapi4-lh-reed/n20.wav differ
diff --git a/voices/sapi4-lh-reed/n21.wav b/voices/sapi4-lh-reed/n21.wav
new file mode 100644
index 0000000..abc5a51
Binary files /dev/null and b/voices/sapi4-lh-reed/n21.wav differ
diff --git a/voices/sapi4-lh-reed/n22.wav b/voices/sapi4-lh-reed/n22.wav
new file mode 100644
index 0000000..09ae687
Binary files /dev/null and b/voices/sapi4-lh-reed/n22.wav differ
diff --git a/voices/sapi4-lh-reed/n23.wav b/voices/sapi4-lh-reed/n23.wav
new file mode 100644
index 0000000..04204ee
Binary files /dev/null and b/voices/sapi4-lh-reed/n23.wav differ
diff --git a/voices/sapi4-lh-reed/n24.wav b/voices/sapi4-lh-reed/n24.wav
new file mode 100644
index 0000000..ad9df17
Binary files /dev/null and b/voices/sapi4-lh-reed/n24.wav differ
diff --git a/voices/sapi4-lh-reed/n25.wav b/voices/sapi4-lh-reed/n25.wav
new file mode 100644
index 0000000..9339b05
Binary files /dev/null and b/voices/sapi4-lh-reed/n25.wav differ
diff --git a/voices/sapi4-lh-reed/n26.wav b/voices/sapi4-lh-reed/n26.wav
new file mode 100644
index 0000000..73a024b
Binary files /dev/null and b/voices/sapi4-lh-reed/n26.wav differ
diff --git a/voices/sapi4-lh-reed/n27.wav b/voices/sapi4-lh-reed/n27.wav
new file mode 100644
index 0000000..67ac336
Binary files /dev/null and b/voices/sapi4-lh-reed/n27.wav differ
diff --git a/voices/sapi4-lh-reed/n28.wav b/voices/sapi4-lh-reed/n28.wav
new file mode 100644
index 0000000..b036493
Binary files /dev/null and b/voices/sapi4-lh-reed/n28.wav differ
diff --git a/voices/sapi4-lh-reed/n29.wav b/voices/sapi4-lh-reed/n29.wav
new file mode 100644
index 0000000..0c19fd2
Binary files /dev/null and b/voices/sapi4-lh-reed/n29.wav differ
diff --git a/voices/sapi4-lh-reed/n3.wav b/voices/sapi4-lh-reed/n3.wav
new file mode 100644
index 0000000..00ff7c6
Binary files /dev/null and b/voices/sapi4-lh-reed/n3.wav differ
diff --git a/voices/sapi4-lh-reed/n30.wav b/voices/sapi4-lh-reed/n30.wav
new file mode 100644
index 0000000..a713477
Binary files /dev/null and b/voices/sapi4-lh-reed/n30.wav differ
diff --git a/voices/sapi4-lh-reed/n31.wav b/voices/sapi4-lh-reed/n31.wav
new file mode 100644
index 0000000..2468bd6
Binary files /dev/null and b/voices/sapi4-lh-reed/n31.wav differ
diff --git a/voices/sapi4-lh-reed/n32.wav b/voices/sapi4-lh-reed/n32.wav
new file mode 100644
index 0000000..ee03305
Binary files /dev/null and b/voices/sapi4-lh-reed/n32.wav differ
diff --git a/voices/sapi4-lh-reed/n33.wav b/voices/sapi4-lh-reed/n33.wav
new file mode 100644
index 0000000..b8db94e
Binary files /dev/null and b/voices/sapi4-lh-reed/n33.wav differ
diff --git a/voices/sapi4-lh-reed/n34.wav b/voices/sapi4-lh-reed/n34.wav
new file mode 100644
index 0000000..3df5957
Binary files /dev/null and b/voices/sapi4-lh-reed/n34.wav differ
diff --git a/voices/sapi4-lh-reed/n35.wav b/voices/sapi4-lh-reed/n35.wav
new file mode 100644
index 0000000..b6b8d5a
Binary files /dev/null and b/voices/sapi4-lh-reed/n35.wav differ
diff --git a/voices/sapi4-lh-reed/n36.wav b/voices/sapi4-lh-reed/n36.wav
new file mode 100644
index 0000000..7dcd0da
Binary files /dev/null and b/voices/sapi4-lh-reed/n36.wav differ
diff --git a/voices/sapi4-lh-reed/n37.wav b/voices/sapi4-lh-reed/n37.wav
new file mode 100644
index 0000000..b386824
Binary files /dev/null and b/voices/sapi4-lh-reed/n37.wav differ
diff --git a/voices/sapi4-lh-reed/n38.wav b/voices/sapi4-lh-reed/n38.wav
new file mode 100644
index 0000000..7bc6daa
Binary files /dev/null and b/voices/sapi4-lh-reed/n38.wav differ
diff --git a/voices/sapi4-lh-reed/n39.wav b/voices/sapi4-lh-reed/n39.wav
new file mode 100644
index 0000000..1873bc8
Binary files /dev/null and b/voices/sapi4-lh-reed/n39.wav differ
diff --git a/voices/sapi4-lh-reed/n4.wav b/voices/sapi4-lh-reed/n4.wav
new file mode 100644
index 0000000..f4b8034
Binary files /dev/null and b/voices/sapi4-lh-reed/n4.wav differ
diff --git a/voices/sapi4-lh-reed/n40.wav b/voices/sapi4-lh-reed/n40.wav
new file mode 100644
index 0000000..2b2dffa
Binary files /dev/null and b/voices/sapi4-lh-reed/n40.wav differ
diff --git a/voices/sapi4-lh-reed/n41.wav b/voices/sapi4-lh-reed/n41.wav
new file mode 100644
index 0000000..808889c
Binary files /dev/null and b/voices/sapi4-lh-reed/n41.wav differ
diff --git a/voices/sapi4-lh-reed/n42.wav b/voices/sapi4-lh-reed/n42.wav
new file mode 100644
index 0000000..805fe17
Binary files /dev/null and b/voices/sapi4-lh-reed/n42.wav differ
diff --git a/voices/sapi4-lh-reed/n43.wav b/voices/sapi4-lh-reed/n43.wav
new file mode 100644
index 0000000..7c8e01b
Binary files /dev/null and b/voices/sapi4-lh-reed/n43.wav differ
diff --git a/voices/sapi4-lh-reed/n44.wav b/voices/sapi4-lh-reed/n44.wav
new file mode 100644
index 0000000..ceb00a6
Binary files /dev/null and b/voices/sapi4-lh-reed/n44.wav differ
diff --git a/voices/sapi4-lh-reed/n45.wav b/voices/sapi4-lh-reed/n45.wav
new file mode 100644
index 0000000..2c47acd
Binary files /dev/null and b/voices/sapi4-lh-reed/n45.wav differ
diff --git a/voices/sapi4-lh-reed/n46.wav b/voices/sapi4-lh-reed/n46.wav
new file mode 100644
index 0000000..a486bba
Binary files /dev/null and b/voices/sapi4-lh-reed/n46.wav differ
diff --git a/voices/sapi4-lh-reed/n47.wav b/voices/sapi4-lh-reed/n47.wav
new file mode 100644
index 0000000..1bd52b9
Binary files /dev/null and b/voices/sapi4-lh-reed/n47.wav differ
diff --git a/voices/sapi4-lh-reed/n48.wav b/voices/sapi4-lh-reed/n48.wav
new file mode 100644
index 0000000..4febde3
Binary files /dev/null and b/voices/sapi4-lh-reed/n48.wav differ
diff --git a/voices/sapi4-lh-reed/n49.wav b/voices/sapi4-lh-reed/n49.wav
new file mode 100644
index 0000000..8ef742a
Binary files /dev/null and b/voices/sapi4-lh-reed/n49.wav differ
diff --git a/voices/sapi4-lh-reed/n5.wav b/voices/sapi4-lh-reed/n5.wav
new file mode 100644
index 0000000..5e6f32c
Binary files /dev/null and b/voices/sapi4-lh-reed/n5.wav differ
diff --git a/voices/sapi4-lh-reed/n50.wav b/voices/sapi4-lh-reed/n50.wav
new file mode 100644
index 0000000..fe23466
Binary files /dev/null and b/voices/sapi4-lh-reed/n50.wav differ
diff --git a/voices/sapi4-lh-reed/n51.wav b/voices/sapi4-lh-reed/n51.wav
new file mode 100644
index 0000000..03c4827
Binary files /dev/null and b/voices/sapi4-lh-reed/n51.wav differ
diff --git a/voices/sapi4-lh-reed/n52.wav b/voices/sapi4-lh-reed/n52.wav
new file mode 100644
index 0000000..c06a505
Binary files /dev/null and b/voices/sapi4-lh-reed/n52.wav differ
diff --git a/voices/sapi4-lh-reed/n53.wav b/voices/sapi4-lh-reed/n53.wav
new file mode 100644
index 0000000..2e00d6a
Binary files /dev/null and b/voices/sapi4-lh-reed/n53.wav differ
diff --git a/voices/sapi4-lh-reed/n54.wav b/voices/sapi4-lh-reed/n54.wav
new file mode 100644
index 0000000..b278a56
Binary files /dev/null and b/voices/sapi4-lh-reed/n54.wav differ
diff --git a/voices/sapi4-lh-reed/n55.wav b/voices/sapi4-lh-reed/n55.wav
new file mode 100644
index 0000000..e1bee28
Binary files /dev/null and b/voices/sapi4-lh-reed/n55.wav differ
diff --git a/voices/sapi4-lh-reed/n56.wav b/voices/sapi4-lh-reed/n56.wav
new file mode 100644
index 0000000..4bc9407
Binary files /dev/null and b/voices/sapi4-lh-reed/n56.wav differ
diff --git a/voices/sapi4-lh-reed/n57.wav b/voices/sapi4-lh-reed/n57.wav
new file mode 100644
index 0000000..a3db589
Binary files /dev/null and b/voices/sapi4-lh-reed/n57.wav differ
diff --git a/voices/sapi4-lh-reed/n58.wav b/voices/sapi4-lh-reed/n58.wav
new file mode 100644
index 0000000..91715df
Binary files /dev/null and b/voices/sapi4-lh-reed/n58.wav differ
diff --git a/voices/sapi4-lh-reed/n59.wav b/voices/sapi4-lh-reed/n59.wav
new file mode 100644
index 0000000..04ab2f9
Binary files /dev/null and b/voices/sapi4-lh-reed/n59.wav differ
diff --git a/voices/sapi4-lh-reed/n6.wav b/voices/sapi4-lh-reed/n6.wav
new file mode 100644
index 0000000..098c40b
Binary files /dev/null and b/voices/sapi4-lh-reed/n6.wav differ
diff --git a/voices/sapi4-lh-reed/n7.wav b/voices/sapi4-lh-reed/n7.wav
new file mode 100644
index 0000000..8284bdb
Binary files /dev/null and b/voices/sapi4-lh-reed/n7.wav differ
diff --git a/voices/sapi4-lh-reed/n8.wav b/voices/sapi4-lh-reed/n8.wav
new file mode 100644
index 0000000..20763b6
Binary files /dev/null and b/voices/sapi4-lh-reed/n8.wav differ
diff --git a/voices/sapi4-lh-reed/n9.wav b/voices/sapi4-lh-reed/n9.wav
new file mode 100644
index 0000000..e4e4295
Binary files /dev/null and b/voices/sapi4-lh-reed/n9.wav differ
diff --git a/voices/sapi4-lh-reed/noon.wav b/voices/sapi4-lh-reed/noon.wav
new file mode 100644
index 0000000..418095c
Binary files /dev/null and b/voices/sapi4-lh-reed/noon.wav differ
diff --git a/voices/sapi4-lh-reed/oclock.wav b/voices/sapi4-lh-reed/oclock.wav
new file mode 100644
index 0000000..480696a
Binary files /dev/null and b/voices/sapi4-lh-reed/oclock.wav differ
diff --git a/voices/sapi4-lh-reed/oh.wav b/voices/sapi4-lh-reed/oh.wav
new file mode 100644
index 0000000..b950770
Binary files /dev/null and b/voices/sapi4-lh-reed/oh.wav differ
diff --git a/voices/sapi4-lh-reed/phrase.wav b/voices/sapi4-lh-reed/phrase.wav
new file mode 100644
index 0000000..4043e4f
Binary files /dev/null and b/voices/sapi4-lh-reed/phrase.wav differ
diff --git a/voices/sapi4-lh-reed/pm.wav b/voices/sapi4-lh-reed/pm.wav
new file mode 100644
index 0000000..47352f0
Binary files /dev/null and b/voices/sapi4-lh-reed/pm.wav differ
diff --git a/voices/sapi4-lh-reed/precisely.wav b/voices/sapi4-lh-reed/precisely.wav
new file mode 100644
index 0000000..3933161
Binary files /dev/null and b/voices/sapi4-lh-reed/precisely.wav differ
diff --git a/voices/sapi4-lh-reed/s10.wav b/voices/sapi4-lh-reed/s10.wav
new file mode 100644
index 0000000..831049b
Binary files /dev/null and b/voices/sapi4-lh-reed/s10.wav differ
diff --git a/voices/sapi4-lh-reed/s20.wav b/voices/sapi4-lh-reed/s20.wav
new file mode 100644
index 0000000..bb7f20a
Binary files /dev/null and b/voices/sapi4-lh-reed/s20.wav differ
diff --git a/voices/sapi4-lh-reed/s30.wav b/voices/sapi4-lh-reed/s30.wav
new file mode 100644
index 0000000..b87dfce
Binary files /dev/null and b/voices/sapi4-lh-reed/s30.wav differ
diff --git a/voices/sapi4-lh-reed/s40.wav b/voices/sapi4-lh-reed/s40.wav
new file mode 100644
index 0000000..02b7723
Binary files /dev/null and b/voices/sapi4-lh-reed/s40.wav differ
diff --git a/voices/sapi4-lh-reed/s50.wav b/voices/sapi4-lh-reed/s50.wav
new file mode 100644
index 0000000..67569fb
Binary files /dev/null and b/voices/sapi4-lh-reed/s50.wav differ
diff --git a/voices/sapi4-lh-reed/voice.conf b/voices/sapi4-lh-reed/voice.conf
new file mode 100644
index 0000000..03f7775
--- /dev/null
+++ b/voices/sapi4-lh-reed/voice.conf
@@ -0,0 +1,16 @@
+; Voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py sapi4:lh-reed. The synthesiser belongs to its owners;
+; see NOTICE.md.
+
+[voice]
+name=L&H Reed (SAPI4)
+description=Lernout & Hauspie TTS3000 American English
+mode=tim
+sequence=phrase+hour+minute+seconds+pips
+period=10
+; no pips.wav: the module makes the pips (1 kHz, the third one marks the time)
+
+[source]
+engine=sapi4
+voice=lh-reed
+synthesiser=Microsoft Speech API 4 runtime and voices, spoken by https://www.tetyys.com/SAPI4/
diff --git a/voices/sapi4-microsoft-mary/am.wav b/voices/sapi4-microsoft-mary/am.wav
new file mode 100644
index 0000000..2946242
Binary files /dev/null and b/voices/sapi4-microsoft-mary/am.wav differ
diff --git a/voices/sapi4-microsoft-mary/greet_afternoon.wav b/voices/sapi4-microsoft-mary/greet_afternoon.wav
new file mode 100644
index 0000000..0b22cb8
Binary files /dev/null and b/voices/sapi4-microsoft-mary/greet_afternoon.wav differ
diff --git a/voices/sapi4-microsoft-mary/greet_evening.wav b/voices/sapi4-microsoft-mary/greet_evening.wav
new file mode 100644
index 0000000..9c5697f
Binary files /dev/null and b/voices/sapi4-microsoft-mary/greet_evening.wav differ
diff --git a/voices/sapi4-microsoft-mary/greet_morning.wav b/voices/sapi4-microsoft-mary/greet_morning.wav
new file mode 100644
index 0000000..849f5e8
Binary files /dev/null and b/voices/sapi4-microsoft-mary/greet_morning.wav differ
diff --git a/voices/sapi4-microsoft-mary/its.wav b/voices/sapi4-microsoft-mary/its.wav
new file mode 100644
index 0000000..859089e
Binary files /dev/null and b/voices/sapi4-microsoft-mary/its.wav differ
diff --git a/voices/sapi4-microsoft-mary/m1.wav b/voices/sapi4-microsoft-mary/m1.wav
new file mode 100644
index 0000000..d3c5876
Binary files /dev/null and b/voices/sapi4-microsoft-mary/m1.wav differ
diff --git a/voices/sapi4-microsoft-mary/m2.wav b/voices/sapi4-microsoft-mary/m2.wav
new file mode 100644
index 0000000..95203ff
Binary files /dev/null and b/voices/sapi4-microsoft-mary/m2.wav differ
diff --git a/voices/sapi4-microsoft-mary/m3.wav b/voices/sapi4-microsoft-mary/m3.wav
new file mode 100644
index 0000000..bd322d4
Binary files /dev/null and b/voices/sapi4-microsoft-mary/m3.wav differ
diff --git a/voices/sapi4-microsoft-mary/m4.wav b/voices/sapi4-microsoft-mary/m4.wav
new file mode 100644
index 0000000..2594987
Binary files /dev/null and b/voices/sapi4-microsoft-mary/m4.wav differ
diff --git a/voices/sapi4-microsoft-mary/m5.wav b/voices/sapi4-microsoft-mary/m5.wav
new file mode 100644
index 0000000..caf4a2b
Binary files /dev/null and b/voices/sapi4-microsoft-mary/m5.wav differ
diff --git a/voices/sapi4-microsoft-mary/m6.wav b/voices/sapi4-microsoft-mary/m6.wav
new file mode 100644
index 0000000..8349c13
Binary files /dev/null and b/voices/sapi4-microsoft-mary/m6.wav differ
diff --git a/voices/sapi4-microsoft-mary/m7.wav b/voices/sapi4-microsoft-mary/m7.wav
new file mode 100644
index 0000000..850e8cd
Binary files /dev/null and b/voices/sapi4-microsoft-mary/m7.wav differ
diff --git a/voices/sapi4-microsoft-mary/m8.wav b/voices/sapi4-microsoft-mary/m8.wav
new file mode 100644
index 0000000..e79fa2d
Binary files /dev/null and b/voices/sapi4-microsoft-mary/m8.wav differ
diff --git a/voices/sapi4-microsoft-mary/m9.wav b/voices/sapi4-microsoft-mary/m9.wav
new file mode 100644
index 0000000..3f65b3f
Binary files /dev/null and b/voices/sapi4-microsoft-mary/m9.wav differ
diff --git a/voices/sapi4-microsoft-mary/midnight.wav b/voices/sapi4-microsoft-mary/midnight.wav
new file mode 100644
index 0000000..9380fa3
Binary files /dev/null and b/voices/sapi4-microsoft-mary/midnight.wav differ
diff --git a/voices/sapi4-microsoft-mary/n0.wav b/voices/sapi4-microsoft-mary/n0.wav
new file mode 100644
index 0000000..b955b37
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n0.wav differ
diff --git a/voices/sapi4-microsoft-mary/n1.wav b/voices/sapi4-microsoft-mary/n1.wav
new file mode 100644
index 0000000..85bbf79
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n1.wav differ
diff --git a/voices/sapi4-microsoft-mary/n10.wav b/voices/sapi4-microsoft-mary/n10.wav
new file mode 100644
index 0000000..88fb34d
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n10.wav differ
diff --git a/voices/sapi4-microsoft-mary/n11.wav b/voices/sapi4-microsoft-mary/n11.wav
new file mode 100644
index 0000000..a0c1b85
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n11.wav differ
diff --git a/voices/sapi4-microsoft-mary/n12.wav b/voices/sapi4-microsoft-mary/n12.wav
new file mode 100644
index 0000000..ddd7eaa
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n12.wav differ
diff --git a/voices/sapi4-microsoft-mary/n13.wav b/voices/sapi4-microsoft-mary/n13.wav
new file mode 100644
index 0000000..1c5305f
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n13.wav differ
diff --git a/voices/sapi4-microsoft-mary/n14.wav b/voices/sapi4-microsoft-mary/n14.wav
new file mode 100644
index 0000000..847193a
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n14.wav differ
diff --git a/voices/sapi4-microsoft-mary/n15.wav b/voices/sapi4-microsoft-mary/n15.wav
new file mode 100644
index 0000000..4863f56
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n15.wav differ
diff --git a/voices/sapi4-microsoft-mary/n16.wav b/voices/sapi4-microsoft-mary/n16.wav
new file mode 100644
index 0000000..3122797
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n16.wav differ
diff --git a/voices/sapi4-microsoft-mary/n17.wav b/voices/sapi4-microsoft-mary/n17.wav
new file mode 100644
index 0000000..4fdfbea
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n17.wav differ
diff --git a/voices/sapi4-microsoft-mary/n18.wav b/voices/sapi4-microsoft-mary/n18.wav
new file mode 100644
index 0000000..28f4ea1
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n18.wav differ
diff --git a/voices/sapi4-microsoft-mary/n19.wav b/voices/sapi4-microsoft-mary/n19.wav
new file mode 100644
index 0000000..b80b1ee
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n19.wav differ
diff --git a/voices/sapi4-microsoft-mary/n2.wav b/voices/sapi4-microsoft-mary/n2.wav
new file mode 100644
index 0000000..cdff6d5
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n2.wav differ
diff --git a/voices/sapi4-microsoft-mary/n20.wav b/voices/sapi4-microsoft-mary/n20.wav
new file mode 100644
index 0000000..4246c25
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n20.wav differ
diff --git a/voices/sapi4-microsoft-mary/n21.wav b/voices/sapi4-microsoft-mary/n21.wav
new file mode 100644
index 0000000..7d2643c
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n21.wav differ
diff --git a/voices/sapi4-microsoft-mary/n22.wav b/voices/sapi4-microsoft-mary/n22.wav
new file mode 100644
index 0000000..c2dbb52
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n22.wav differ
diff --git a/voices/sapi4-microsoft-mary/n23.wav b/voices/sapi4-microsoft-mary/n23.wav
new file mode 100644
index 0000000..85d8c33
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n23.wav differ
diff --git a/voices/sapi4-microsoft-mary/n24.wav b/voices/sapi4-microsoft-mary/n24.wav
new file mode 100644
index 0000000..a3fd27b
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n24.wav differ
diff --git a/voices/sapi4-microsoft-mary/n25.wav b/voices/sapi4-microsoft-mary/n25.wav
new file mode 100644
index 0000000..8c786cc
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n25.wav differ
diff --git a/voices/sapi4-microsoft-mary/n26.wav b/voices/sapi4-microsoft-mary/n26.wav
new file mode 100644
index 0000000..09b1fd4
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n26.wav differ
diff --git a/voices/sapi4-microsoft-mary/n27.wav b/voices/sapi4-microsoft-mary/n27.wav
new file mode 100644
index 0000000..8d718d5
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n27.wav differ
diff --git a/voices/sapi4-microsoft-mary/n28.wav b/voices/sapi4-microsoft-mary/n28.wav
new file mode 100644
index 0000000..cc7e344
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n28.wav differ
diff --git a/voices/sapi4-microsoft-mary/n29.wav b/voices/sapi4-microsoft-mary/n29.wav
new file mode 100644
index 0000000..4fae473
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n29.wav differ
diff --git a/voices/sapi4-microsoft-mary/n3.wav b/voices/sapi4-microsoft-mary/n3.wav
new file mode 100644
index 0000000..cba7f13
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n3.wav differ
diff --git a/voices/sapi4-microsoft-mary/n30.wav b/voices/sapi4-microsoft-mary/n30.wav
new file mode 100644
index 0000000..fa65127
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n30.wav differ
diff --git a/voices/sapi4-microsoft-mary/n31.wav b/voices/sapi4-microsoft-mary/n31.wav
new file mode 100644
index 0000000..000ff9a
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n31.wav differ
diff --git a/voices/sapi4-microsoft-mary/n32.wav b/voices/sapi4-microsoft-mary/n32.wav
new file mode 100644
index 0000000..8f61218
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n32.wav differ
diff --git a/voices/sapi4-microsoft-mary/n33.wav b/voices/sapi4-microsoft-mary/n33.wav
new file mode 100644
index 0000000..4b89b89
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n33.wav differ
diff --git a/voices/sapi4-microsoft-mary/n34.wav b/voices/sapi4-microsoft-mary/n34.wav
new file mode 100644
index 0000000..b46bc8b
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n34.wav differ
diff --git a/voices/sapi4-microsoft-mary/n35.wav b/voices/sapi4-microsoft-mary/n35.wav
new file mode 100644
index 0000000..0a54b83
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n35.wav differ
diff --git a/voices/sapi4-microsoft-mary/n36.wav b/voices/sapi4-microsoft-mary/n36.wav
new file mode 100644
index 0000000..92d071a
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n36.wav differ
diff --git a/voices/sapi4-microsoft-mary/n37.wav b/voices/sapi4-microsoft-mary/n37.wav
new file mode 100644
index 0000000..076036f
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n37.wav differ
diff --git a/voices/sapi4-microsoft-mary/n38.wav b/voices/sapi4-microsoft-mary/n38.wav
new file mode 100644
index 0000000..f38a624
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n38.wav differ
diff --git a/voices/sapi4-microsoft-mary/n39.wav b/voices/sapi4-microsoft-mary/n39.wav
new file mode 100644
index 0000000..c5ad9d1
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n39.wav differ
diff --git a/voices/sapi4-microsoft-mary/n4.wav b/voices/sapi4-microsoft-mary/n4.wav
new file mode 100644
index 0000000..cfdb081
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n4.wav differ
diff --git a/voices/sapi4-microsoft-mary/n40.wav b/voices/sapi4-microsoft-mary/n40.wav
new file mode 100644
index 0000000..b6da4e9
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n40.wav differ
diff --git a/voices/sapi4-microsoft-mary/n41.wav b/voices/sapi4-microsoft-mary/n41.wav
new file mode 100644
index 0000000..8834e00
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n41.wav differ
diff --git a/voices/sapi4-microsoft-mary/n42.wav b/voices/sapi4-microsoft-mary/n42.wav
new file mode 100644
index 0000000..280162e
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n42.wav differ
diff --git a/voices/sapi4-microsoft-mary/n43.wav b/voices/sapi4-microsoft-mary/n43.wav
new file mode 100644
index 0000000..1ebc074
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n43.wav differ
diff --git a/voices/sapi4-microsoft-mary/n44.wav b/voices/sapi4-microsoft-mary/n44.wav
new file mode 100644
index 0000000..4908683
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n44.wav differ
diff --git a/voices/sapi4-microsoft-mary/n45.wav b/voices/sapi4-microsoft-mary/n45.wav
new file mode 100644
index 0000000..9c5bad3
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n45.wav differ
diff --git a/voices/sapi4-microsoft-mary/n46.wav b/voices/sapi4-microsoft-mary/n46.wav
new file mode 100644
index 0000000..1f1a7bc
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n46.wav differ
diff --git a/voices/sapi4-microsoft-mary/n47.wav b/voices/sapi4-microsoft-mary/n47.wav
new file mode 100644
index 0000000..ad0f762
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n47.wav differ
diff --git a/voices/sapi4-microsoft-mary/n48.wav b/voices/sapi4-microsoft-mary/n48.wav
new file mode 100644
index 0000000..884e2ea
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n48.wav differ
diff --git a/voices/sapi4-microsoft-mary/n49.wav b/voices/sapi4-microsoft-mary/n49.wav
new file mode 100644
index 0000000..2b771ee
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n49.wav differ
diff --git a/voices/sapi4-microsoft-mary/n5.wav b/voices/sapi4-microsoft-mary/n5.wav
new file mode 100644
index 0000000..3d8182c
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n5.wav differ
diff --git a/voices/sapi4-microsoft-mary/n50.wav b/voices/sapi4-microsoft-mary/n50.wav
new file mode 100644
index 0000000..b6c34f3
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n50.wav differ
diff --git a/voices/sapi4-microsoft-mary/n51.wav b/voices/sapi4-microsoft-mary/n51.wav
new file mode 100644
index 0000000..a883a12
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n51.wav differ
diff --git a/voices/sapi4-microsoft-mary/n52.wav b/voices/sapi4-microsoft-mary/n52.wav
new file mode 100644
index 0000000..3d4cdc2
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n52.wav differ
diff --git a/voices/sapi4-microsoft-mary/n53.wav b/voices/sapi4-microsoft-mary/n53.wav
new file mode 100644
index 0000000..4a98b6a
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n53.wav differ
diff --git a/voices/sapi4-microsoft-mary/n54.wav b/voices/sapi4-microsoft-mary/n54.wav
new file mode 100644
index 0000000..1b0dfe2
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n54.wav differ
diff --git a/voices/sapi4-microsoft-mary/n55.wav b/voices/sapi4-microsoft-mary/n55.wav
new file mode 100644
index 0000000..656bfe7
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n55.wav differ
diff --git a/voices/sapi4-microsoft-mary/n56.wav b/voices/sapi4-microsoft-mary/n56.wav
new file mode 100644
index 0000000..dac9e42
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n56.wav differ
diff --git a/voices/sapi4-microsoft-mary/n57.wav b/voices/sapi4-microsoft-mary/n57.wav
new file mode 100644
index 0000000..59a21ec
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n57.wav differ
diff --git a/voices/sapi4-microsoft-mary/n58.wav b/voices/sapi4-microsoft-mary/n58.wav
new file mode 100644
index 0000000..555c6b8
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n58.wav differ
diff --git a/voices/sapi4-microsoft-mary/n59.wav b/voices/sapi4-microsoft-mary/n59.wav
new file mode 100644
index 0000000..b81858f
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n59.wav differ
diff --git a/voices/sapi4-microsoft-mary/n6.wav b/voices/sapi4-microsoft-mary/n6.wav
new file mode 100644
index 0000000..4bcc2fa
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n6.wav differ
diff --git a/voices/sapi4-microsoft-mary/n7.wav b/voices/sapi4-microsoft-mary/n7.wav
new file mode 100644
index 0000000..2116a5d
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n7.wav differ
diff --git a/voices/sapi4-microsoft-mary/n8.wav b/voices/sapi4-microsoft-mary/n8.wav
new file mode 100644
index 0000000..6e05b1c
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n8.wav differ
diff --git a/voices/sapi4-microsoft-mary/n9.wav b/voices/sapi4-microsoft-mary/n9.wav
new file mode 100644
index 0000000..e724116
Binary files /dev/null and b/voices/sapi4-microsoft-mary/n9.wav differ
diff --git a/voices/sapi4-microsoft-mary/noon.wav b/voices/sapi4-microsoft-mary/noon.wav
new file mode 100644
index 0000000..b807c87
Binary files /dev/null and b/voices/sapi4-microsoft-mary/noon.wav differ
diff --git a/voices/sapi4-microsoft-mary/oclock.wav b/voices/sapi4-microsoft-mary/oclock.wav
new file mode 100644
index 0000000..a6fa743
Binary files /dev/null and b/voices/sapi4-microsoft-mary/oclock.wav differ
diff --git a/voices/sapi4-microsoft-mary/oh.wav b/voices/sapi4-microsoft-mary/oh.wav
new file mode 100644
index 0000000..cddfa64
Binary files /dev/null and b/voices/sapi4-microsoft-mary/oh.wav differ
diff --git a/voices/sapi4-microsoft-mary/phrase.wav b/voices/sapi4-microsoft-mary/phrase.wav
new file mode 100644
index 0000000..32f2b99
Binary files /dev/null and b/voices/sapi4-microsoft-mary/phrase.wav differ
diff --git a/voices/sapi4-microsoft-mary/pm.wav b/voices/sapi4-microsoft-mary/pm.wav
new file mode 100644
index 0000000..f8aa607
Binary files /dev/null and b/voices/sapi4-microsoft-mary/pm.wav differ
diff --git a/voices/sapi4-microsoft-mary/precisely.wav b/voices/sapi4-microsoft-mary/precisely.wav
new file mode 100644
index 0000000..c98ac19
Binary files /dev/null and b/voices/sapi4-microsoft-mary/precisely.wav differ
diff --git a/voices/sapi4-microsoft-mary/s10.wav b/voices/sapi4-microsoft-mary/s10.wav
new file mode 100644
index 0000000..5bb3b7c
Binary files /dev/null and b/voices/sapi4-microsoft-mary/s10.wav differ
diff --git a/voices/sapi4-microsoft-mary/s20.wav b/voices/sapi4-microsoft-mary/s20.wav
new file mode 100644
index 0000000..12f4a16
Binary files /dev/null and b/voices/sapi4-microsoft-mary/s20.wav differ
diff --git a/voices/sapi4-microsoft-mary/s30.wav b/voices/sapi4-microsoft-mary/s30.wav
new file mode 100644
index 0000000..25d191c
Binary files /dev/null and b/voices/sapi4-microsoft-mary/s30.wav differ
diff --git a/voices/sapi4-microsoft-mary/s40.wav b/voices/sapi4-microsoft-mary/s40.wav
new file mode 100644
index 0000000..7477c70
Binary files /dev/null and b/voices/sapi4-microsoft-mary/s40.wav differ
diff --git a/voices/sapi4-microsoft-mary/s50.wav b/voices/sapi4-microsoft-mary/s50.wav
new file mode 100644
index 0000000..ad5218a
Binary files /dev/null and b/voices/sapi4-microsoft-mary/s50.wav differ
diff --git a/voices/sapi4-microsoft-mary/voice.conf b/voices/sapi4-microsoft-mary/voice.conf
new file mode 100644
index 0000000..93d832f
--- /dev/null
+++ b/voices/sapi4-microsoft-mary/voice.conf
@@ -0,0 +1,16 @@
+; Voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py sapi4:microsoft-mary. The synthesiser belongs to its owners;
+; see NOTICE.md.
+
+[voice]
+name=Microsoft Mary (SAPI4)
+description=Microsoft Speech API 4 voice
+mode=tim
+sequence=phrase+hour+minute+seconds+pips
+period=10
+; no pips.wav: the module makes the pips (1 kHz, the third one marks the time)
+
+[source]
+engine=sapi4
+voice=microsoft-mary
+synthesiser=Microsoft Speech API 4 runtime and voices, spoken by https://www.tetyys.com/SAPI4/
diff --git a/voices/sapi4-microsoft-mike-tel/am.wav b/voices/sapi4-microsoft-mike-tel/am.wav
new file mode 100644
index 0000000..3d93ab9
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/am.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/greet_afternoon.wav b/voices/sapi4-microsoft-mike-tel/greet_afternoon.wav
new file mode 100644
index 0000000..514e637
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/greet_afternoon.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/greet_evening.wav b/voices/sapi4-microsoft-mike-tel/greet_evening.wav
new file mode 100644
index 0000000..6a56203
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/greet_evening.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/greet_morning.wav b/voices/sapi4-microsoft-mike-tel/greet_morning.wav
new file mode 100644
index 0000000..bfd5d41
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/greet_morning.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/its.wav b/voices/sapi4-microsoft-mike-tel/its.wav
new file mode 100644
index 0000000..4a725c6
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/its.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/m1.wav b/voices/sapi4-microsoft-mike-tel/m1.wav
new file mode 100644
index 0000000..4471e79
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/m1.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/m2.wav b/voices/sapi4-microsoft-mike-tel/m2.wav
new file mode 100644
index 0000000..4bdd85a
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/m2.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/m3.wav b/voices/sapi4-microsoft-mike-tel/m3.wav
new file mode 100644
index 0000000..1455f21
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/m3.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/m4.wav b/voices/sapi4-microsoft-mike-tel/m4.wav
new file mode 100644
index 0000000..f7f17e1
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/m4.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/m5.wav b/voices/sapi4-microsoft-mike-tel/m5.wav
new file mode 100644
index 0000000..ecdb9e5
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/m5.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/m6.wav b/voices/sapi4-microsoft-mike-tel/m6.wav
new file mode 100644
index 0000000..218fe90
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/m6.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/m7.wav b/voices/sapi4-microsoft-mike-tel/m7.wav
new file mode 100644
index 0000000..5b79f3d
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/m7.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/m8.wav b/voices/sapi4-microsoft-mike-tel/m8.wav
new file mode 100644
index 0000000..b763d0a
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/m8.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/m9.wav b/voices/sapi4-microsoft-mike-tel/m9.wav
new file mode 100644
index 0000000..692e870
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/m9.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/midnight.wav b/voices/sapi4-microsoft-mike-tel/midnight.wav
new file mode 100644
index 0000000..a3dbd95
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/midnight.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n0.wav b/voices/sapi4-microsoft-mike-tel/n0.wav
new file mode 100644
index 0000000..ec54d49
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n0.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n1.wav b/voices/sapi4-microsoft-mike-tel/n1.wav
new file mode 100644
index 0000000..a6b48b2
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n1.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n10.wav b/voices/sapi4-microsoft-mike-tel/n10.wav
new file mode 100644
index 0000000..ca04d61
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n10.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n11.wav b/voices/sapi4-microsoft-mike-tel/n11.wav
new file mode 100644
index 0000000..a5f6c14
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n11.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n12.wav b/voices/sapi4-microsoft-mike-tel/n12.wav
new file mode 100644
index 0000000..698ebd7
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n12.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n13.wav b/voices/sapi4-microsoft-mike-tel/n13.wav
new file mode 100644
index 0000000..5e150c8
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n13.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n14.wav b/voices/sapi4-microsoft-mike-tel/n14.wav
new file mode 100644
index 0000000..e7e5931
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n14.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n15.wav b/voices/sapi4-microsoft-mike-tel/n15.wav
new file mode 100644
index 0000000..2d7d527
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n15.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n16.wav b/voices/sapi4-microsoft-mike-tel/n16.wav
new file mode 100644
index 0000000..c7f656e
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n16.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n17.wav b/voices/sapi4-microsoft-mike-tel/n17.wav
new file mode 100644
index 0000000..0e6d064
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n17.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n18.wav b/voices/sapi4-microsoft-mike-tel/n18.wav
new file mode 100644
index 0000000..08b4d13
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n18.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n19.wav b/voices/sapi4-microsoft-mike-tel/n19.wav
new file mode 100644
index 0000000..bd91c7b
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n19.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n2.wav b/voices/sapi4-microsoft-mike-tel/n2.wav
new file mode 100644
index 0000000..1464786
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n2.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n20.wav b/voices/sapi4-microsoft-mike-tel/n20.wav
new file mode 100644
index 0000000..aba36ac
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n20.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n21.wav b/voices/sapi4-microsoft-mike-tel/n21.wav
new file mode 100644
index 0000000..cdf0fd3
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n21.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n22.wav b/voices/sapi4-microsoft-mike-tel/n22.wav
new file mode 100644
index 0000000..9cd91cf
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n22.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n23.wav b/voices/sapi4-microsoft-mike-tel/n23.wav
new file mode 100644
index 0000000..67c8e0a
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n23.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n24.wav b/voices/sapi4-microsoft-mike-tel/n24.wav
new file mode 100644
index 0000000..a7fc5ce
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n24.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n25.wav b/voices/sapi4-microsoft-mike-tel/n25.wav
new file mode 100644
index 0000000..75c8206
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n25.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n26.wav b/voices/sapi4-microsoft-mike-tel/n26.wav
new file mode 100644
index 0000000..7443836
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n26.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n27.wav b/voices/sapi4-microsoft-mike-tel/n27.wav
new file mode 100644
index 0000000..cf46e64
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n27.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n28.wav b/voices/sapi4-microsoft-mike-tel/n28.wav
new file mode 100644
index 0000000..1f73a2a
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n28.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n29.wav b/voices/sapi4-microsoft-mike-tel/n29.wav
new file mode 100644
index 0000000..b9496a8
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n29.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n3.wav b/voices/sapi4-microsoft-mike-tel/n3.wav
new file mode 100644
index 0000000..d6290fc
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n3.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n30.wav b/voices/sapi4-microsoft-mike-tel/n30.wav
new file mode 100644
index 0000000..b6b229f
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n30.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n31.wav b/voices/sapi4-microsoft-mike-tel/n31.wav
new file mode 100644
index 0000000..1a4585c
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n31.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n32.wav b/voices/sapi4-microsoft-mike-tel/n32.wav
new file mode 100644
index 0000000..83f9c29
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n32.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n33.wav b/voices/sapi4-microsoft-mike-tel/n33.wav
new file mode 100644
index 0000000..ac1eb87
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n33.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n34.wav b/voices/sapi4-microsoft-mike-tel/n34.wav
new file mode 100644
index 0000000..3192d16
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n34.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n35.wav b/voices/sapi4-microsoft-mike-tel/n35.wav
new file mode 100644
index 0000000..b249b09
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n35.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n36.wav b/voices/sapi4-microsoft-mike-tel/n36.wav
new file mode 100644
index 0000000..ffda1f8
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n36.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n37.wav b/voices/sapi4-microsoft-mike-tel/n37.wav
new file mode 100644
index 0000000..db01edc
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n37.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n38.wav b/voices/sapi4-microsoft-mike-tel/n38.wav
new file mode 100644
index 0000000..611ecc5
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n38.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n39.wav b/voices/sapi4-microsoft-mike-tel/n39.wav
new file mode 100644
index 0000000..efbc060
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n39.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n4.wav b/voices/sapi4-microsoft-mike-tel/n4.wav
new file mode 100644
index 0000000..1c34034
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n4.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n40.wav b/voices/sapi4-microsoft-mike-tel/n40.wav
new file mode 100644
index 0000000..8e46fd4
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n40.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n41.wav b/voices/sapi4-microsoft-mike-tel/n41.wav
new file mode 100644
index 0000000..d81bbfe
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n41.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n42.wav b/voices/sapi4-microsoft-mike-tel/n42.wav
new file mode 100644
index 0000000..2e203e1
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n42.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n43.wav b/voices/sapi4-microsoft-mike-tel/n43.wav
new file mode 100644
index 0000000..cd76fb5
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n43.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n44.wav b/voices/sapi4-microsoft-mike-tel/n44.wav
new file mode 100644
index 0000000..437583b
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n44.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n45.wav b/voices/sapi4-microsoft-mike-tel/n45.wav
new file mode 100644
index 0000000..4c0cfb7
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n45.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n46.wav b/voices/sapi4-microsoft-mike-tel/n46.wav
new file mode 100644
index 0000000..0036f14
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n46.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n47.wav b/voices/sapi4-microsoft-mike-tel/n47.wav
new file mode 100644
index 0000000..513bda7
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n47.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n48.wav b/voices/sapi4-microsoft-mike-tel/n48.wav
new file mode 100644
index 0000000..4a59888
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n48.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n49.wav b/voices/sapi4-microsoft-mike-tel/n49.wav
new file mode 100644
index 0000000..8c37ea4
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n49.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n5.wav b/voices/sapi4-microsoft-mike-tel/n5.wav
new file mode 100644
index 0000000..7ef8cca
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n5.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n50.wav b/voices/sapi4-microsoft-mike-tel/n50.wav
new file mode 100644
index 0000000..7b0489a
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n50.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n51.wav b/voices/sapi4-microsoft-mike-tel/n51.wav
new file mode 100644
index 0000000..52dc04f
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n51.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n52.wav b/voices/sapi4-microsoft-mike-tel/n52.wav
new file mode 100644
index 0000000..902477f
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n52.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n53.wav b/voices/sapi4-microsoft-mike-tel/n53.wav
new file mode 100644
index 0000000..3249f9b
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n53.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n54.wav b/voices/sapi4-microsoft-mike-tel/n54.wav
new file mode 100644
index 0000000..9c153b3
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n54.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n55.wav b/voices/sapi4-microsoft-mike-tel/n55.wav
new file mode 100644
index 0000000..c561925
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n55.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n56.wav b/voices/sapi4-microsoft-mike-tel/n56.wav
new file mode 100644
index 0000000..589d5b2
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n56.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n57.wav b/voices/sapi4-microsoft-mike-tel/n57.wav
new file mode 100644
index 0000000..1fc4883
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n57.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n58.wav b/voices/sapi4-microsoft-mike-tel/n58.wav
new file mode 100644
index 0000000..35db49f
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n58.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n59.wav b/voices/sapi4-microsoft-mike-tel/n59.wav
new file mode 100644
index 0000000..9b2adf2
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n59.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n6.wav b/voices/sapi4-microsoft-mike-tel/n6.wav
new file mode 100644
index 0000000..e6cbb55
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n6.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n7.wav b/voices/sapi4-microsoft-mike-tel/n7.wav
new file mode 100644
index 0000000..5788b1a
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n7.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n8.wav b/voices/sapi4-microsoft-mike-tel/n8.wav
new file mode 100644
index 0000000..db8f412
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n8.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/n9.wav b/voices/sapi4-microsoft-mike-tel/n9.wav
new file mode 100644
index 0000000..e92e67e
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/n9.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/noon.wav b/voices/sapi4-microsoft-mike-tel/noon.wav
new file mode 100644
index 0000000..edc9577
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/noon.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/oclock.wav b/voices/sapi4-microsoft-mike-tel/oclock.wav
new file mode 100644
index 0000000..f190f9d
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/oclock.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/oh.wav b/voices/sapi4-microsoft-mike-tel/oh.wav
new file mode 100644
index 0000000..0b7b027
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/oh.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/phrase.wav b/voices/sapi4-microsoft-mike-tel/phrase.wav
new file mode 100644
index 0000000..23eacc1
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/phrase.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/pm.wav b/voices/sapi4-microsoft-mike-tel/pm.wav
new file mode 100644
index 0000000..b043bb1
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/pm.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/precisely.wav b/voices/sapi4-microsoft-mike-tel/precisely.wav
new file mode 100644
index 0000000..2cf48c3
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/precisely.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/s10.wav b/voices/sapi4-microsoft-mike-tel/s10.wav
new file mode 100644
index 0000000..c331d62
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/s10.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/s20.wav b/voices/sapi4-microsoft-mike-tel/s20.wav
new file mode 100644
index 0000000..da8f815
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/s20.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/s30.wav b/voices/sapi4-microsoft-mike-tel/s30.wav
new file mode 100644
index 0000000..319f9a0
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/s30.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/s40.wav b/voices/sapi4-microsoft-mike-tel/s40.wav
new file mode 100644
index 0000000..03ba50e
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/s40.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/s50.wav b/voices/sapi4-microsoft-mike-tel/s50.wav
new file mode 100644
index 0000000..5ed2883
Binary files /dev/null and b/voices/sapi4-microsoft-mike-tel/s50.wav differ
diff --git a/voices/sapi4-microsoft-mike-tel/voice.conf b/voices/sapi4-microsoft-mike-tel/voice.conf
new file mode 100644
index 0000000..58dc531
--- /dev/null
+++ b/voices/sapi4-microsoft-mike-tel/voice.conf
@@ -0,0 +1,16 @@
+; Voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py sapi4:microsoft-mike-tel. The synthesiser belongs to its owners;
+; see NOTICE.md.
+
+[voice]
+name=Microsoft Mike for Telephone (SAPI4)
+description=Microsoft Speech API 4 voice tuned for telephone lines
+mode=tim
+sequence=phrase+hour+minute+seconds+pips
+period=10
+; no pips.wav: the module makes the pips (1 kHz, the third one marks the time)
+
+[source]
+engine=sapi4
+voice=microsoft-mike-tel
+synthesiser=Microsoft Speech API 4 runtime and voices, spoken by https://www.tetyys.com/SAPI4/
diff --git a/voices/sapi4-microsoft-mike/am.wav b/voices/sapi4-microsoft-mike/am.wav
new file mode 100644
index 0000000..def05d3
Binary files /dev/null and b/voices/sapi4-microsoft-mike/am.wav differ
diff --git a/voices/sapi4-microsoft-mike/greet_afternoon.wav b/voices/sapi4-microsoft-mike/greet_afternoon.wav
new file mode 100644
index 0000000..399dd3d
Binary files /dev/null and b/voices/sapi4-microsoft-mike/greet_afternoon.wav differ
diff --git a/voices/sapi4-microsoft-mike/greet_evening.wav b/voices/sapi4-microsoft-mike/greet_evening.wav
new file mode 100644
index 0000000..2a06c65
Binary files /dev/null and b/voices/sapi4-microsoft-mike/greet_evening.wav differ
diff --git a/voices/sapi4-microsoft-mike/greet_morning.wav b/voices/sapi4-microsoft-mike/greet_morning.wav
new file mode 100644
index 0000000..f00ef36
Binary files /dev/null and b/voices/sapi4-microsoft-mike/greet_morning.wav differ
diff --git a/voices/sapi4-microsoft-mike/its.wav b/voices/sapi4-microsoft-mike/its.wav
new file mode 100644
index 0000000..5fa8af4
Binary files /dev/null and b/voices/sapi4-microsoft-mike/its.wav differ
diff --git a/voices/sapi4-microsoft-mike/m1.wav b/voices/sapi4-microsoft-mike/m1.wav
new file mode 100644
index 0000000..3c4f60c
Binary files /dev/null and b/voices/sapi4-microsoft-mike/m1.wav differ
diff --git a/voices/sapi4-microsoft-mike/m2.wav b/voices/sapi4-microsoft-mike/m2.wav
new file mode 100644
index 0000000..1e1a091
Binary files /dev/null and b/voices/sapi4-microsoft-mike/m2.wav differ
diff --git a/voices/sapi4-microsoft-mike/m3.wav b/voices/sapi4-microsoft-mike/m3.wav
new file mode 100644
index 0000000..2c25b8d
Binary files /dev/null and b/voices/sapi4-microsoft-mike/m3.wav differ
diff --git a/voices/sapi4-microsoft-mike/m4.wav b/voices/sapi4-microsoft-mike/m4.wav
new file mode 100644
index 0000000..5ce967d
Binary files /dev/null and b/voices/sapi4-microsoft-mike/m4.wav differ
diff --git a/voices/sapi4-microsoft-mike/m5.wav b/voices/sapi4-microsoft-mike/m5.wav
new file mode 100644
index 0000000..0c1d261
Binary files /dev/null and b/voices/sapi4-microsoft-mike/m5.wav differ
diff --git a/voices/sapi4-microsoft-mike/m6.wav b/voices/sapi4-microsoft-mike/m6.wav
new file mode 100644
index 0000000..2a5f94f
Binary files /dev/null and b/voices/sapi4-microsoft-mike/m6.wav differ
diff --git a/voices/sapi4-microsoft-mike/m7.wav b/voices/sapi4-microsoft-mike/m7.wav
new file mode 100644
index 0000000..7fefc0f
Binary files /dev/null and b/voices/sapi4-microsoft-mike/m7.wav differ
diff --git a/voices/sapi4-microsoft-mike/m8.wav b/voices/sapi4-microsoft-mike/m8.wav
new file mode 100644
index 0000000..fd67bd2
Binary files /dev/null and b/voices/sapi4-microsoft-mike/m8.wav differ
diff --git a/voices/sapi4-microsoft-mike/m9.wav b/voices/sapi4-microsoft-mike/m9.wav
new file mode 100644
index 0000000..2285b9a
Binary files /dev/null and b/voices/sapi4-microsoft-mike/m9.wav differ
diff --git a/voices/sapi4-microsoft-mike/midnight.wav b/voices/sapi4-microsoft-mike/midnight.wav
new file mode 100644
index 0000000..14d5a34
Binary files /dev/null and b/voices/sapi4-microsoft-mike/midnight.wav differ
diff --git a/voices/sapi4-microsoft-mike/n0.wav b/voices/sapi4-microsoft-mike/n0.wav
new file mode 100644
index 0000000..db74008
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n0.wav differ
diff --git a/voices/sapi4-microsoft-mike/n1.wav b/voices/sapi4-microsoft-mike/n1.wav
new file mode 100644
index 0000000..d97f636
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n1.wav differ
diff --git a/voices/sapi4-microsoft-mike/n10.wav b/voices/sapi4-microsoft-mike/n10.wav
new file mode 100644
index 0000000..bd86e4c
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n10.wav differ
diff --git a/voices/sapi4-microsoft-mike/n11.wav b/voices/sapi4-microsoft-mike/n11.wav
new file mode 100644
index 0000000..6269087
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n11.wav differ
diff --git a/voices/sapi4-microsoft-mike/n12.wav b/voices/sapi4-microsoft-mike/n12.wav
new file mode 100644
index 0000000..c490b95
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n12.wav differ
diff --git a/voices/sapi4-microsoft-mike/n13.wav b/voices/sapi4-microsoft-mike/n13.wav
new file mode 100644
index 0000000..74ae4f7
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n13.wav differ
diff --git a/voices/sapi4-microsoft-mike/n14.wav b/voices/sapi4-microsoft-mike/n14.wav
new file mode 100644
index 0000000..c38ea42
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n14.wav differ
diff --git a/voices/sapi4-microsoft-mike/n15.wav b/voices/sapi4-microsoft-mike/n15.wav
new file mode 100644
index 0000000..f2adc6d
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n15.wav differ
diff --git a/voices/sapi4-microsoft-mike/n16.wav b/voices/sapi4-microsoft-mike/n16.wav
new file mode 100644
index 0000000..cb46ee3
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n16.wav differ
diff --git a/voices/sapi4-microsoft-mike/n17.wav b/voices/sapi4-microsoft-mike/n17.wav
new file mode 100644
index 0000000..038101e
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n17.wav differ
diff --git a/voices/sapi4-microsoft-mike/n18.wav b/voices/sapi4-microsoft-mike/n18.wav
new file mode 100644
index 0000000..8f58724
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n18.wav differ
diff --git a/voices/sapi4-microsoft-mike/n19.wav b/voices/sapi4-microsoft-mike/n19.wav
new file mode 100644
index 0000000..6ad81aa
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n19.wav differ
diff --git a/voices/sapi4-microsoft-mike/n2.wav b/voices/sapi4-microsoft-mike/n2.wav
new file mode 100644
index 0000000..8cbc4ac
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n2.wav differ
diff --git a/voices/sapi4-microsoft-mike/n20.wav b/voices/sapi4-microsoft-mike/n20.wav
new file mode 100644
index 0000000..c9f6cb8
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n20.wav differ
diff --git a/voices/sapi4-microsoft-mike/n21.wav b/voices/sapi4-microsoft-mike/n21.wav
new file mode 100644
index 0000000..27342c4
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n21.wav differ
diff --git a/voices/sapi4-microsoft-mike/n22.wav b/voices/sapi4-microsoft-mike/n22.wav
new file mode 100644
index 0000000..0c8c51e
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n22.wav differ
diff --git a/voices/sapi4-microsoft-mike/n23.wav b/voices/sapi4-microsoft-mike/n23.wav
new file mode 100644
index 0000000..0116583
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n23.wav differ
diff --git a/voices/sapi4-microsoft-mike/n24.wav b/voices/sapi4-microsoft-mike/n24.wav
new file mode 100644
index 0000000..25a7c5a
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n24.wav differ
diff --git a/voices/sapi4-microsoft-mike/n25.wav b/voices/sapi4-microsoft-mike/n25.wav
new file mode 100644
index 0000000..ac34e87
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n25.wav differ
diff --git a/voices/sapi4-microsoft-mike/n26.wav b/voices/sapi4-microsoft-mike/n26.wav
new file mode 100644
index 0000000..4955aff
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n26.wav differ
diff --git a/voices/sapi4-microsoft-mike/n27.wav b/voices/sapi4-microsoft-mike/n27.wav
new file mode 100644
index 0000000..84de528
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n27.wav differ
diff --git a/voices/sapi4-microsoft-mike/n28.wav b/voices/sapi4-microsoft-mike/n28.wav
new file mode 100644
index 0000000..40685f2
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n28.wav differ
diff --git a/voices/sapi4-microsoft-mike/n29.wav b/voices/sapi4-microsoft-mike/n29.wav
new file mode 100644
index 0000000..12e7ba3
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n29.wav differ
diff --git a/voices/sapi4-microsoft-mike/n3.wav b/voices/sapi4-microsoft-mike/n3.wav
new file mode 100644
index 0000000..d6f07a6
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n3.wav differ
diff --git a/voices/sapi4-microsoft-mike/n30.wav b/voices/sapi4-microsoft-mike/n30.wav
new file mode 100644
index 0000000..902a304
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n30.wav differ
diff --git a/voices/sapi4-microsoft-mike/n31.wav b/voices/sapi4-microsoft-mike/n31.wav
new file mode 100644
index 0000000..5eddf72
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n31.wav differ
diff --git a/voices/sapi4-microsoft-mike/n32.wav b/voices/sapi4-microsoft-mike/n32.wav
new file mode 100644
index 0000000..f62a874
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n32.wav differ
diff --git a/voices/sapi4-microsoft-mike/n33.wav b/voices/sapi4-microsoft-mike/n33.wav
new file mode 100644
index 0000000..3dde248
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n33.wav differ
diff --git a/voices/sapi4-microsoft-mike/n34.wav b/voices/sapi4-microsoft-mike/n34.wav
new file mode 100644
index 0000000..488fc36
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n34.wav differ
diff --git a/voices/sapi4-microsoft-mike/n35.wav b/voices/sapi4-microsoft-mike/n35.wav
new file mode 100644
index 0000000..5d68fd7
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n35.wav differ
diff --git a/voices/sapi4-microsoft-mike/n36.wav b/voices/sapi4-microsoft-mike/n36.wav
new file mode 100644
index 0000000..72f31ea
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n36.wav differ
diff --git a/voices/sapi4-microsoft-mike/n37.wav b/voices/sapi4-microsoft-mike/n37.wav
new file mode 100644
index 0000000..dde53c1
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n37.wav differ
diff --git a/voices/sapi4-microsoft-mike/n38.wav b/voices/sapi4-microsoft-mike/n38.wav
new file mode 100644
index 0000000..7b7add2
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n38.wav differ
diff --git a/voices/sapi4-microsoft-mike/n39.wav b/voices/sapi4-microsoft-mike/n39.wav
new file mode 100644
index 0000000..bddda68
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n39.wav differ
diff --git a/voices/sapi4-microsoft-mike/n4.wav b/voices/sapi4-microsoft-mike/n4.wav
new file mode 100644
index 0000000..9306ea4
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n4.wav differ
diff --git a/voices/sapi4-microsoft-mike/n40.wav b/voices/sapi4-microsoft-mike/n40.wav
new file mode 100644
index 0000000..19000a9
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n40.wav differ
diff --git a/voices/sapi4-microsoft-mike/n41.wav b/voices/sapi4-microsoft-mike/n41.wav
new file mode 100644
index 0000000..48c6177
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n41.wav differ
diff --git a/voices/sapi4-microsoft-mike/n42.wav b/voices/sapi4-microsoft-mike/n42.wav
new file mode 100644
index 0000000..35dd486
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n42.wav differ
diff --git a/voices/sapi4-microsoft-mike/n43.wav b/voices/sapi4-microsoft-mike/n43.wav
new file mode 100644
index 0000000..37df61d
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n43.wav differ
diff --git a/voices/sapi4-microsoft-mike/n44.wav b/voices/sapi4-microsoft-mike/n44.wav
new file mode 100644
index 0000000..705e536
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n44.wav differ
diff --git a/voices/sapi4-microsoft-mike/n45.wav b/voices/sapi4-microsoft-mike/n45.wav
new file mode 100644
index 0000000..ac2df3e
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n45.wav differ
diff --git a/voices/sapi4-microsoft-mike/n46.wav b/voices/sapi4-microsoft-mike/n46.wav
new file mode 100644
index 0000000..70608e8
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n46.wav differ
diff --git a/voices/sapi4-microsoft-mike/n47.wav b/voices/sapi4-microsoft-mike/n47.wav
new file mode 100644
index 0000000..77bc613
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n47.wav differ
diff --git a/voices/sapi4-microsoft-mike/n48.wav b/voices/sapi4-microsoft-mike/n48.wav
new file mode 100644
index 0000000..a9c88e8
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n48.wav differ
diff --git a/voices/sapi4-microsoft-mike/n49.wav b/voices/sapi4-microsoft-mike/n49.wav
new file mode 100644
index 0000000..fca51c0
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n49.wav differ
diff --git a/voices/sapi4-microsoft-mike/n5.wav b/voices/sapi4-microsoft-mike/n5.wav
new file mode 100644
index 0000000..9a461ba
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n5.wav differ
diff --git a/voices/sapi4-microsoft-mike/n50.wav b/voices/sapi4-microsoft-mike/n50.wav
new file mode 100644
index 0000000..378aae3
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n50.wav differ
diff --git a/voices/sapi4-microsoft-mike/n51.wav b/voices/sapi4-microsoft-mike/n51.wav
new file mode 100644
index 0000000..407ea11
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n51.wav differ
diff --git a/voices/sapi4-microsoft-mike/n52.wav b/voices/sapi4-microsoft-mike/n52.wav
new file mode 100644
index 0000000..ff37650
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n52.wav differ
diff --git a/voices/sapi4-microsoft-mike/n53.wav b/voices/sapi4-microsoft-mike/n53.wav
new file mode 100644
index 0000000..8a69a18
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n53.wav differ
diff --git a/voices/sapi4-microsoft-mike/n54.wav b/voices/sapi4-microsoft-mike/n54.wav
new file mode 100644
index 0000000..8ce0f92
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n54.wav differ
diff --git a/voices/sapi4-microsoft-mike/n55.wav b/voices/sapi4-microsoft-mike/n55.wav
new file mode 100644
index 0000000..b9c8929
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n55.wav differ
diff --git a/voices/sapi4-microsoft-mike/n56.wav b/voices/sapi4-microsoft-mike/n56.wav
new file mode 100644
index 0000000..ea9ccf2
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n56.wav differ
diff --git a/voices/sapi4-microsoft-mike/n57.wav b/voices/sapi4-microsoft-mike/n57.wav
new file mode 100644
index 0000000..1ee52d5
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n57.wav differ
diff --git a/voices/sapi4-microsoft-mike/n58.wav b/voices/sapi4-microsoft-mike/n58.wav
new file mode 100644
index 0000000..f30da44
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n58.wav differ
diff --git a/voices/sapi4-microsoft-mike/n59.wav b/voices/sapi4-microsoft-mike/n59.wav
new file mode 100644
index 0000000..10d8531
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n59.wav differ
diff --git a/voices/sapi4-microsoft-mike/n6.wav b/voices/sapi4-microsoft-mike/n6.wav
new file mode 100644
index 0000000..9ad113a
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n6.wav differ
diff --git a/voices/sapi4-microsoft-mike/n7.wav b/voices/sapi4-microsoft-mike/n7.wav
new file mode 100644
index 0000000..9db525c
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n7.wav differ
diff --git a/voices/sapi4-microsoft-mike/n8.wav b/voices/sapi4-microsoft-mike/n8.wav
new file mode 100644
index 0000000..39e0103
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n8.wav differ
diff --git a/voices/sapi4-microsoft-mike/n9.wav b/voices/sapi4-microsoft-mike/n9.wav
new file mode 100644
index 0000000..b63300f
Binary files /dev/null and b/voices/sapi4-microsoft-mike/n9.wav differ
diff --git a/voices/sapi4-microsoft-mike/noon.wav b/voices/sapi4-microsoft-mike/noon.wav
new file mode 100644
index 0000000..eeaff2c
Binary files /dev/null and b/voices/sapi4-microsoft-mike/noon.wav differ
diff --git a/voices/sapi4-microsoft-mike/oclock.wav b/voices/sapi4-microsoft-mike/oclock.wav
new file mode 100644
index 0000000..1507bff
Binary files /dev/null and b/voices/sapi4-microsoft-mike/oclock.wav differ
diff --git a/voices/sapi4-microsoft-mike/oh.wav b/voices/sapi4-microsoft-mike/oh.wav
new file mode 100644
index 0000000..c07a7a7
Binary files /dev/null and b/voices/sapi4-microsoft-mike/oh.wav differ
diff --git a/voices/sapi4-microsoft-mike/phrase.wav b/voices/sapi4-microsoft-mike/phrase.wav
new file mode 100644
index 0000000..1535ee9
Binary files /dev/null and b/voices/sapi4-microsoft-mike/phrase.wav differ
diff --git a/voices/sapi4-microsoft-mike/pm.wav b/voices/sapi4-microsoft-mike/pm.wav
new file mode 100644
index 0000000..9b4cf01
Binary files /dev/null and b/voices/sapi4-microsoft-mike/pm.wav differ
diff --git a/voices/sapi4-microsoft-mike/precisely.wav b/voices/sapi4-microsoft-mike/precisely.wav
new file mode 100644
index 0000000..fc8b3ec
Binary files /dev/null and b/voices/sapi4-microsoft-mike/precisely.wav differ
diff --git a/voices/sapi4-microsoft-mike/s10.wav b/voices/sapi4-microsoft-mike/s10.wav
new file mode 100644
index 0000000..9e0c708
Binary files /dev/null and b/voices/sapi4-microsoft-mike/s10.wav differ
diff --git a/voices/sapi4-microsoft-mike/s20.wav b/voices/sapi4-microsoft-mike/s20.wav
new file mode 100644
index 0000000..75a0634
Binary files /dev/null and b/voices/sapi4-microsoft-mike/s20.wav differ
diff --git a/voices/sapi4-microsoft-mike/s30.wav b/voices/sapi4-microsoft-mike/s30.wav
new file mode 100644
index 0000000..5b4f061
Binary files /dev/null and b/voices/sapi4-microsoft-mike/s30.wav differ
diff --git a/voices/sapi4-microsoft-mike/s40.wav b/voices/sapi4-microsoft-mike/s40.wav
new file mode 100644
index 0000000..f8abf86
Binary files /dev/null and b/voices/sapi4-microsoft-mike/s40.wav differ
diff --git a/voices/sapi4-microsoft-mike/s50.wav b/voices/sapi4-microsoft-mike/s50.wav
new file mode 100644
index 0000000..e039575
Binary files /dev/null and b/voices/sapi4-microsoft-mike/s50.wav differ
diff --git a/voices/sapi4-microsoft-mike/voice.conf b/voices/sapi4-microsoft-mike/voice.conf
new file mode 100644
index 0000000..3e1c28b
--- /dev/null
+++ b/voices/sapi4-microsoft-mike/voice.conf
@@ -0,0 +1,16 @@
+; Voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py sapi4:microsoft-mike. The synthesiser belongs to its owners;
+; see NOTICE.md.
+
+[voice]
+name=Microsoft Mike (SAPI4)
+description=Microsoft Speech API 4 voice
+mode=tim
+sequence=phrase+hour+minute+seconds+pips
+period=10
+; no pips.wav: the module makes the pips (1 kHz, the third one marks the time)
+
+[source]
+engine=sapi4
+voice=microsoft-mike
+synthesiser=Microsoft Speech API 4 runtime and voices, spoken by https://www.tetyys.com/SAPI4/
diff --git a/voices/sapi4-microsoft-sam/am.wav b/voices/sapi4-microsoft-sam/am.wav
new file mode 100644
index 0000000..8e40874
Binary files /dev/null and b/voices/sapi4-microsoft-sam/am.wav differ
diff --git a/voices/sapi4-microsoft-sam/greet_afternoon.wav b/voices/sapi4-microsoft-sam/greet_afternoon.wav
new file mode 100644
index 0000000..7a8e44c
Binary files /dev/null and b/voices/sapi4-microsoft-sam/greet_afternoon.wav differ
diff --git a/voices/sapi4-microsoft-sam/greet_evening.wav b/voices/sapi4-microsoft-sam/greet_evening.wav
new file mode 100644
index 0000000..de00293
Binary files /dev/null and b/voices/sapi4-microsoft-sam/greet_evening.wav differ
diff --git a/voices/sapi4-microsoft-sam/greet_morning.wav b/voices/sapi4-microsoft-sam/greet_morning.wav
new file mode 100644
index 0000000..9a2f654
Binary files /dev/null and b/voices/sapi4-microsoft-sam/greet_morning.wav differ
diff --git a/voices/sapi4-microsoft-sam/its.wav b/voices/sapi4-microsoft-sam/its.wav
new file mode 100644
index 0000000..ac94407
Binary files /dev/null and b/voices/sapi4-microsoft-sam/its.wav differ
diff --git a/voices/sapi4-microsoft-sam/m1.wav b/voices/sapi4-microsoft-sam/m1.wav
new file mode 100644
index 0000000..badcd88
Binary files /dev/null and b/voices/sapi4-microsoft-sam/m1.wav differ
diff --git a/voices/sapi4-microsoft-sam/m2.wav b/voices/sapi4-microsoft-sam/m2.wav
new file mode 100644
index 0000000..29f4950
Binary files /dev/null and b/voices/sapi4-microsoft-sam/m2.wav differ
diff --git a/voices/sapi4-microsoft-sam/m3.wav b/voices/sapi4-microsoft-sam/m3.wav
new file mode 100644
index 0000000..22e7bc1
Binary files /dev/null and b/voices/sapi4-microsoft-sam/m3.wav differ
diff --git a/voices/sapi4-microsoft-sam/m4.wav b/voices/sapi4-microsoft-sam/m4.wav
new file mode 100644
index 0000000..866173f
Binary files /dev/null and b/voices/sapi4-microsoft-sam/m4.wav differ
diff --git a/voices/sapi4-microsoft-sam/m5.wav b/voices/sapi4-microsoft-sam/m5.wav
new file mode 100644
index 0000000..c94ad4d
Binary files /dev/null and b/voices/sapi4-microsoft-sam/m5.wav differ
diff --git a/voices/sapi4-microsoft-sam/m6.wav b/voices/sapi4-microsoft-sam/m6.wav
new file mode 100644
index 0000000..ba06852
Binary files /dev/null and b/voices/sapi4-microsoft-sam/m6.wav differ
diff --git a/voices/sapi4-microsoft-sam/m7.wav b/voices/sapi4-microsoft-sam/m7.wav
new file mode 100644
index 0000000..d6195b0
Binary files /dev/null and b/voices/sapi4-microsoft-sam/m7.wav differ
diff --git a/voices/sapi4-microsoft-sam/m8.wav b/voices/sapi4-microsoft-sam/m8.wav
new file mode 100644
index 0000000..bfedca6
Binary files /dev/null and b/voices/sapi4-microsoft-sam/m8.wav differ
diff --git a/voices/sapi4-microsoft-sam/m9.wav b/voices/sapi4-microsoft-sam/m9.wav
new file mode 100644
index 0000000..37cbd01
Binary files /dev/null and b/voices/sapi4-microsoft-sam/m9.wav differ
diff --git a/voices/sapi4-microsoft-sam/midnight.wav b/voices/sapi4-microsoft-sam/midnight.wav
new file mode 100644
index 0000000..a7af96c
Binary files /dev/null and b/voices/sapi4-microsoft-sam/midnight.wav differ
diff --git a/voices/sapi4-microsoft-sam/n0.wav b/voices/sapi4-microsoft-sam/n0.wav
new file mode 100644
index 0000000..fc369b7
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n0.wav differ
diff --git a/voices/sapi4-microsoft-sam/n1.wav b/voices/sapi4-microsoft-sam/n1.wav
new file mode 100644
index 0000000..620b255
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n1.wav differ
diff --git a/voices/sapi4-microsoft-sam/n10.wav b/voices/sapi4-microsoft-sam/n10.wav
new file mode 100644
index 0000000..1ae6c93
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n10.wav differ
diff --git a/voices/sapi4-microsoft-sam/n11.wav b/voices/sapi4-microsoft-sam/n11.wav
new file mode 100644
index 0000000..f1d315f
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n11.wav differ
diff --git a/voices/sapi4-microsoft-sam/n12.wav b/voices/sapi4-microsoft-sam/n12.wav
new file mode 100644
index 0000000..3015aca
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n12.wav differ
diff --git a/voices/sapi4-microsoft-sam/n13.wav b/voices/sapi4-microsoft-sam/n13.wav
new file mode 100644
index 0000000..1ffbe9c
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n13.wav differ
diff --git a/voices/sapi4-microsoft-sam/n14.wav b/voices/sapi4-microsoft-sam/n14.wav
new file mode 100644
index 0000000..d15750c
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n14.wav differ
diff --git a/voices/sapi4-microsoft-sam/n15.wav b/voices/sapi4-microsoft-sam/n15.wav
new file mode 100644
index 0000000..fae941f
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n15.wav differ
diff --git a/voices/sapi4-microsoft-sam/n16.wav b/voices/sapi4-microsoft-sam/n16.wav
new file mode 100644
index 0000000..17b2f19
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n16.wav differ
diff --git a/voices/sapi4-microsoft-sam/n17.wav b/voices/sapi4-microsoft-sam/n17.wav
new file mode 100644
index 0000000..0e937e6
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n17.wav differ
diff --git a/voices/sapi4-microsoft-sam/n18.wav b/voices/sapi4-microsoft-sam/n18.wav
new file mode 100644
index 0000000..e496109
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n18.wav differ
diff --git a/voices/sapi4-microsoft-sam/n19.wav b/voices/sapi4-microsoft-sam/n19.wav
new file mode 100644
index 0000000..5c075f8
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n19.wav differ
diff --git a/voices/sapi4-microsoft-sam/n2.wav b/voices/sapi4-microsoft-sam/n2.wav
new file mode 100644
index 0000000..e02b6bb
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n2.wav differ
diff --git a/voices/sapi4-microsoft-sam/n20.wav b/voices/sapi4-microsoft-sam/n20.wav
new file mode 100644
index 0000000..7b833e1
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n20.wav differ
diff --git a/voices/sapi4-microsoft-sam/n21.wav b/voices/sapi4-microsoft-sam/n21.wav
new file mode 100644
index 0000000..ffa303a
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n21.wav differ
diff --git a/voices/sapi4-microsoft-sam/n22.wav b/voices/sapi4-microsoft-sam/n22.wav
new file mode 100644
index 0000000..ebfb6ed
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n22.wav differ
diff --git a/voices/sapi4-microsoft-sam/n23.wav b/voices/sapi4-microsoft-sam/n23.wav
new file mode 100644
index 0000000..9a9f395
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n23.wav differ
diff --git a/voices/sapi4-microsoft-sam/n24.wav b/voices/sapi4-microsoft-sam/n24.wav
new file mode 100644
index 0000000..19ec096
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n24.wav differ
diff --git a/voices/sapi4-microsoft-sam/n25.wav b/voices/sapi4-microsoft-sam/n25.wav
new file mode 100644
index 0000000..3941d4f
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n25.wav differ
diff --git a/voices/sapi4-microsoft-sam/n26.wav b/voices/sapi4-microsoft-sam/n26.wav
new file mode 100644
index 0000000..4aa74f5
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n26.wav differ
diff --git a/voices/sapi4-microsoft-sam/n27.wav b/voices/sapi4-microsoft-sam/n27.wav
new file mode 100644
index 0000000..378fccc
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n27.wav differ
diff --git a/voices/sapi4-microsoft-sam/n28.wav b/voices/sapi4-microsoft-sam/n28.wav
new file mode 100644
index 0000000..b456907
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n28.wav differ
diff --git a/voices/sapi4-microsoft-sam/n29.wav b/voices/sapi4-microsoft-sam/n29.wav
new file mode 100644
index 0000000..5e6f298
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n29.wav differ
diff --git a/voices/sapi4-microsoft-sam/n3.wav b/voices/sapi4-microsoft-sam/n3.wav
new file mode 100644
index 0000000..2f9f352
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n3.wav differ
diff --git a/voices/sapi4-microsoft-sam/n30.wav b/voices/sapi4-microsoft-sam/n30.wav
new file mode 100644
index 0000000..119b99b
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n30.wav differ
diff --git a/voices/sapi4-microsoft-sam/n31.wav b/voices/sapi4-microsoft-sam/n31.wav
new file mode 100644
index 0000000..a66e404
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n31.wav differ
diff --git a/voices/sapi4-microsoft-sam/n32.wav b/voices/sapi4-microsoft-sam/n32.wav
new file mode 100644
index 0000000..7269c7c
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n32.wav differ
diff --git a/voices/sapi4-microsoft-sam/n33.wav b/voices/sapi4-microsoft-sam/n33.wav
new file mode 100644
index 0000000..f89b21d
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n33.wav differ
diff --git a/voices/sapi4-microsoft-sam/n34.wav b/voices/sapi4-microsoft-sam/n34.wav
new file mode 100644
index 0000000..23632a4
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n34.wav differ
diff --git a/voices/sapi4-microsoft-sam/n35.wav b/voices/sapi4-microsoft-sam/n35.wav
new file mode 100644
index 0000000..b60adc0
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n35.wav differ
diff --git a/voices/sapi4-microsoft-sam/n36.wav b/voices/sapi4-microsoft-sam/n36.wav
new file mode 100644
index 0000000..bf1e06a
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n36.wav differ
diff --git a/voices/sapi4-microsoft-sam/n37.wav b/voices/sapi4-microsoft-sam/n37.wav
new file mode 100644
index 0000000..4dc8e72
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n37.wav differ
diff --git a/voices/sapi4-microsoft-sam/n38.wav b/voices/sapi4-microsoft-sam/n38.wav
new file mode 100644
index 0000000..27916a5
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n38.wav differ
diff --git a/voices/sapi4-microsoft-sam/n39.wav b/voices/sapi4-microsoft-sam/n39.wav
new file mode 100644
index 0000000..c88faf8
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n39.wav differ
diff --git a/voices/sapi4-microsoft-sam/n4.wav b/voices/sapi4-microsoft-sam/n4.wav
new file mode 100644
index 0000000..042cef0
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n4.wav differ
diff --git a/voices/sapi4-microsoft-sam/n40.wav b/voices/sapi4-microsoft-sam/n40.wav
new file mode 100644
index 0000000..255f4df
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n40.wav differ
diff --git a/voices/sapi4-microsoft-sam/n41.wav b/voices/sapi4-microsoft-sam/n41.wav
new file mode 100644
index 0000000..8271167
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n41.wav differ
diff --git a/voices/sapi4-microsoft-sam/n42.wav b/voices/sapi4-microsoft-sam/n42.wav
new file mode 100644
index 0000000..9c813f9
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n42.wav differ
diff --git a/voices/sapi4-microsoft-sam/n43.wav b/voices/sapi4-microsoft-sam/n43.wav
new file mode 100644
index 0000000..2b1f4d9
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n43.wav differ
diff --git a/voices/sapi4-microsoft-sam/n44.wav b/voices/sapi4-microsoft-sam/n44.wav
new file mode 100644
index 0000000..3fa5e86
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n44.wav differ
diff --git a/voices/sapi4-microsoft-sam/n45.wav b/voices/sapi4-microsoft-sam/n45.wav
new file mode 100644
index 0000000..5fd4ad5
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n45.wav differ
diff --git a/voices/sapi4-microsoft-sam/n46.wav b/voices/sapi4-microsoft-sam/n46.wav
new file mode 100644
index 0000000..1750443
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n46.wav differ
diff --git a/voices/sapi4-microsoft-sam/n47.wav b/voices/sapi4-microsoft-sam/n47.wav
new file mode 100644
index 0000000..c05b7c9
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n47.wav differ
diff --git a/voices/sapi4-microsoft-sam/n48.wav b/voices/sapi4-microsoft-sam/n48.wav
new file mode 100644
index 0000000..9046adf
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n48.wav differ
diff --git a/voices/sapi4-microsoft-sam/n49.wav b/voices/sapi4-microsoft-sam/n49.wav
new file mode 100644
index 0000000..aa5dc42
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n49.wav differ
diff --git a/voices/sapi4-microsoft-sam/n5.wav b/voices/sapi4-microsoft-sam/n5.wav
new file mode 100644
index 0000000..702592b
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n5.wav differ
diff --git a/voices/sapi4-microsoft-sam/n50.wav b/voices/sapi4-microsoft-sam/n50.wav
new file mode 100644
index 0000000..cbaf73b
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n50.wav differ
diff --git a/voices/sapi4-microsoft-sam/n51.wav b/voices/sapi4-microsoft-sam/n51.wav
new file mode 100644
index 0000000..663975e
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n51.wav differ
diff --git a/voices/sapi4-microsoft-sam/n52.wav b/voices/sapi4-microsoft-sam/n52.wav
new file mode 100644
index 0000000..ab35c10
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n52.wav differ
diff --git a/voices/sapi4-microsoft-sam/n53.wav b/voices/sapi4-microsoft-sam/n53.wav
new file mode 100644
index 0000000..6b3d4b1
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n53.wav differ
diff --git a/voices/sapi4-microsoft-sam/n54.wav b/voices/sapi4-microsoft-sam/n54.wav
new file mode 100644
index 0000000..d210e5f
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n54.wav differ
diff --git a/voices/sapi4-microsoft-sam/n55.wav b/voices/sapi4-microsoft-sam/n55.wav
new file mode 100644
index 0000000..2b62472
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n55.wav differ
diff --git a/voices/sapi4-microsoft-sam/n56.wav b/voices/sapi4-microsoft-sam/n56.wav
new file mode 100644
index 0000000..67df042
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n56.wav differ
diff --git a/voices/sapi4-microsoft-sam/n57.wav b/voices/sapi4-microsoft-sam/n57.wav
new file mode 100644
index 0000000..665472b
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n57.wav differ
diff --git a/voices/sapi4-microsoft-sam/n58.wav b/voices/sapi4-microsoft-sam/n58.wav
new file mode 100644
index 0000000..c1f654a
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n58.wav differ
diff --git a/voices/sapi4-microsoft-sam/n59.wav b/voices/sapi4-microsoft-sam/n59.wav
new file mode 100644
index 0000000..0cf8dcf
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n59.wav differ
diff --git a/voices/sapi4-microsoft-sam/n6.wav b/voices/sapi4-microsoft-sam/n6.wav
new file mode 100644
index 0000000..62b7a6a
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n6.wav differ
diff --git a/voices/sapi4-microsoft-sam/n7.wav b/voices/sapi4-microsoft-sam/n7.wav
new file mode 100644
index 0000000..39d0eea
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n7.wav differ
diff --git a/voices/sapi4-microsoft-sam/n8.wav b/voices/sapi4-microsoft-sam/n8.wav
new file mode 100644
index 0000000..b099ba7
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n8.wav differ
diff --git a/voices/sapi4-microsoft-sam/n9.wav b/voices/sapi4-microsoft-sam/n9.wav
new file mode 100644
index 0000000..a8e8987
Binary files /dev/null and b/voices/sapi4-microsoft-sam/n9.wav differ
diff --git a/voices/sapi4-microsoft-sam/noon.wav b/voices/sapi4-microsoft-sam/noon.wav
new file mode 100644
index 0000000..9bea3ae
Binary files /dev/null and b/voices/sapi4-microsoft-sam/noon.wav differ
diff --git a/voices/sapi4-microsoft-sam/oclock.wav b/voices/sapi4-microsoft-sam/oclock.wav
new file mode 100644
index 0000000..b6e74b9
Binary files /dev/null and b/voices/sapi4-microsoft-sam/oclock.wav differ
diff --git a/voices/sapi4-microsoft-sam/oh.wav b/voices/sapi4-microsoft-sam/oh.wav
new file mode 100644
index 0000000..5ba0e5c
Binary files /dev/null and b/voices/sapi4-microsoft-sam/oh.wav differ
diff --git a/voices/sapi4-microsoft-sam/phrase.wav b/voices/sapi4-microsoft-sam/phrase.wav
new file mode 100644
index 0000000..5f492ab
Binary files /dev/null and b/voices/sapi4-microsoft-sam/phrase.wav differ
diff --git a/voices/sapi4-microsoft-sam/pm.wav b/voices/sapi4-microsoft-sam/pm.wav
new file mode 100644
index 0000000..fce4f2c
Binary files /dev/null and b/voices/sapi4-microsoft-sam/pm.wav differ
diff --git a/voices/sapi4-microsoft-sam/precisely.wav b/voices/sapi4-microsoft-sam/precisely.wav
new file mode 100644
index 0000000..187dd0b
Binary files /dev/null and b/voices/sapi4-microsoft-sam/precisely.wav differ
diff --git a/voices/sapi4-microsoft-sam/s10.wav b/voices/sapi4-microsoft-sam/s10.wav
new file mode 100644
index 0000000..fbb7762
Binary files /dev/null and b/voices/sapi4-microsoft-sam/s10.wav differ
diff --git a/voices/sapi4-microsoft-sam/s20.wav b/voices/sapi4-microsoft-sam/s20.wav
new file mode 100644
index 0000000..63b7c03
Binary files /dev/null and b/voices/sapi4-microsoft-sam/s20.wav differ
diff --git a/voices/sapi4-microsoft-sam/s30.wav b/voices/sapi4-microsoft-sam/s30.wav
new file mode 100644
index 0000000..30ab3a9
Binary files /dev/null and b/voices/sapi4-microsoft-sam/s30.wav differ
diff --git a/voices/sapi4-microsoft-sam/s40.wav b/voices/sapi4-microsoft-sam/s40.wav
new file mode 100644
index 0000000..102b0dc
Binary files /dev/null and b/voices/sapi4-microsoft-sam/s40.wav differ
diff --git a/voices/sapi4-microsoft-sam/s50.wav b/voices/sapi4-microsoft-sam/s50.wav
new file mode 100644
index 0000000..a313a0a
Binary files /dev/null and b/voices/sapi4-microsoft-sam/s50.wav differ
diff --git a/voices/sapi4-microsoft-sam/voice.conf b/voices/sapi4-microsoft-sam/voice.conf
new file mode 100644
index 0000000..785117f
--- /dev/null
+++ b/voices/sapi4-microsoft-sam/voice.conf
@@ -0,0 +1,16 @@
+; Voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py sapi4:microsoft-sam. The synthesiser belongs to its owners;
+; see NOTICE.md.
+
+[voice]
+name=Microsoft Sam (SAPI4)
+description=Microsoft Speech API 4 voice, the voice of Windows 2000 and XP's Narrator
+mode=tim
+sequence=phrase+hour+minute+seconds+pips
+period=10
+; no pips.wav: the module makes the pips (1 kHz, the third one marks the time)
+
+[source]
+engine=sapi4
+voice=microsoft-sam
+synthesiser=Microsoft Speech API 4 runtime and voices, spoken by https://www.tetyys.com/SAPI4/
diff --git a/voices/sapi4-robosoft-one/am.wav b/voices/sapi4-robosoft-one/am.wav
new file mode 100644
index 0000000..244c380
Binary files /dev/null and b/voices/sapi4-robosoft-one/am.wav differ
diff --git a/voices/sapi4-robosoft-one/greet_afternoon.wav b/voices/sapi4-robosoft-one/greet_afternoon.wav
new file mode 100644
index 0000000..340cd65
Binary files /dev/null and b/voices/sapi4-robosoft-one/greet_afternoon.wav differ
diff --git a/voices/sapi4-robosoft-one/greet_evening.wav b/voices/sapi4-robosoft-one/greet_evening.wav
new file mode 100644
index 0000000..ba92371
Binary files /dev/null and b/voices/sapi4-robosoft-one/greet_evening.wav differ
diff --git a/voices/sapi4-robosoft-one/greet_morning.wav b/voices/sapi4-robosoft-one/greet_morning.wav
new file mode 100644
index 0000000..216c51f
Binary files /dev/null and b/voices/sapi4-robosoft-one/greet_morning.wav differ
diff --git a/voices/sapi4-robosoft-one/its.wav b/voices/sapi4-robosoft-one/its.wav
new file mode 100644
index 0000000..70a894d
Binary files /dev/null and b/voices/sapi4-robosoft-one/its.wav differ
diff --git a/voices/sapi4-robosoft-one/m1.wav b/voices/sapi4-robosoft-one/m1.wav
new file mode 100644
index 0000000..b67ad98
Binary files /dev/null and b/voices/sapi4-robosoft-one/m1.wav differ
diff --git a/voices/sapi4-robosoft-one/m2.wav b/voices/sapi4-robosoft-one/m2.wav
new file mode 100644
index 0000000..8e11d51
Binary files /dev/null and b/voices/sapi4-robosoft-one/m2.wav differ
diff --git a/voices/sapi4-robosoft-one/m3.wav b/voices/sapi4-robosoft-one/m3.wav
new file mode 100644
index 0000000..9f9bd0e
Binary files /dev/null and b/voices/sapi4-robosoft-one/m3.wav differ
diff --git a/voices/sapi4-robosoft-one/m4.wav b/voices/sapi4-robosoft-one/m4.wav
new file mode 100644
index 0000000..b136271
Binary files /dev/null and b/voices/sapi4-robosoft-one/m4.wav differ
diff --git a/voices/sapi4-robosoft-one/m5.wav b/voices/sapi4-robosoft-one/m5.wav
new file mode 100644
index 0000000..bb919ff
Binary files /dev/null and b/voices/sapi4-robosoft-one/m5.wav differ
diff --git a/voices/sapi4-robosoft-one/m6.wav b/voices/sapi4-robosoft-one/m6.wav
new file mode 100644
index 0000000..594eb14
Binary files /dev/null and b/voices/sapi4-robosoft-one/m6.wav differ
diff --git a/voices/sapi4-robosoft-one/m7.wav b/voices/sapi4-robosoft-one/m7.wav
new file mode 100644
index 0000000..b1e82d6
Binary files /dev/null and b/voices/sapi4-robosoft-one/m7.wav differ
diff --git a/voices/sapi4-robosoft-one/m8.wav b/voices/sapi4-robosoft-one/m8.wav
new file mode 100644
index 0000000..aadcaa9
Binary files /dev/null and b/voices/sapi4-robosoft-one/m8.wav differ
diff --git a/voices/sapi4-robosoft-one/m9.wav b/voices/sapi4-robosoft-one/m9.wav
new file mode 100644
index 0000000..867711c
Binary files /dev/null and b/voices/sapi4-robosoft-one/m9.wav differ
diff --git a/voices/sapi4-robosoft-one/midnight.wav b/voices/sapi4-robosoft-one/midnight.wav
new file mode 100644
index 0000000..8e3af5f
Binary files /dev/null and b/voices/sapi4-robosoft-one/midnight.wav differ
diff --git a/voices/sapi4-robosoft-one/n0.wav b/voices/sapi4-robosoft-one/n0.wav
new file mode 100644
index 0000000..03be20e
Binary files /dev/null and b/voices/sapi4-robosoft-one/n0.wav differ
diff --git a/voices/sapi4-robosoft-one/n1.wav b/voices/sapi4-robosoft-one/n1.wav
new file mode 100644
index 0000000..c479afb
Binary files /dev/null and b/voices/sapi4-robosoft-one/n1.wav differ
diff --git a/voices/sapi4-robosoft-one/n10.wav b/voices/sapi4-robosoft-one/n10.wav
new file mode 100644
index 0000000..a21729e
Binary files /dev/null and b/voices/sapi4-robosoft-one/n10.wav differ
diff --git a/voices/sapi4-robosoft-one/n11.wav b/voices/sapi4-robosoft-one/n11.wav
new file mode 100644
index 0000000..ca75ba4
Binary files /dev/null and b/voices/sapi4-robosoft-one/n11.wav differ
diff --git a/voices/sapi4-robosoft-one/n12.wav b/voices/sapi4-robosoft-one/n12.wav
new file mode 100644
index 0000000..939d274
Binary files /dev/null and b/voices/sapi4-robosoft-one/n12.wav differ
diff --git a/voices/sapi4-robosoft-one/n13.wav b/voices/sapi4-robosoft-one/n13.wav
new file mode 100644
index 0000000..488b7fd
Binary files /dev/null and b/voices/sapi4-robosoft-one/n13.wav differ
diff --git a/voices/sapi4-robosoft-one/n14.wav b/voices/sapi4-robosoft-one/n14.wav
new file mode 100644
index 0000000..8292912
Binary files /dev/null and b/voices/sapi4-robosoft-one/n14.wav differ
diff --git a/voices/sapi4-robosoft-one/n15.wav b/voices/sapi4-robosoft-one/n15.wav
new file mode 100644
index 0000000..0ab9441
Binary files /dev/null and b/voices/sapi4-robosoft-one/n15.wav differ
diff --git a/voices/sapi4-robosoft-one/n16.wav b/voices/sapi4-robosoft-one/n16.wav
new file mode 100644
index 0000000..3921058
Binary files /dev/null and b/voices/sapi4-robosoft-one/n16.wav differ
diff --git a/voices/sapi4-robosoft-one/n17.wav b/voices/sapi4-robosoft-one/n17.wav
new file mode 100644
index 0000000..2b77e37
Binary files /dev/null and b/voices/sapi4-robosoft-one/n17.wav differ
diff --git a/voices/sapi4-robosoft-one/n18.wav b/voices/sapi4-robosoft-one/n18.wav
new file mode 100644
index 0000000..3b7f5f0
Binary files /dev/null and b/voices/sapi4-robosoft-one/n18.wav differ
diff --git a/voices/sapi4-robosoft-one/n19.wav b/voices/sapi4-robosoft-one/n19.wav
new file mode 100644
index 0000000..51f5d89
Binary files /dev/null and b/voices/sapi4-robosoft-one/n19.wav differ
diff --git a/voices/sapi4-robosoft-one/n2.wav b/voices/sapi4-robosoft-one/n2.wav
new file mode 100644
index 0000000..a009817
Binary files /dev/null and b/voices/sapi4-robosoft-one/n2.wav differ
diff --git a/voices/sapi4-robosoft-one/n20.wav b/voices/sapi4-robosoft-one/n20.wav
new file mode 100644
index 0000000..0f9a8d8
Binary files /dev/null and b/voices/sapi4-robosoft-one/n20.wav differ
diff --git a/voices/sapi4-robosoft-one/n21.wav b/voices/sapi4-robosoft-one/n21.wav
new file mode 100644
index 0000000..bb5d4b3
Binary files /dev/null and b/voices/sapi4-robosoft-one/n21.wav differ
diff --git a/voices/sapi4-robosoft-one/n22.wav b/voices/sapi4-robosoft-one/n22.wav
new file mode 100644
index 0000000..0ed75a6
Binary files /dev/null and b/voices/sapi4-robosoft-one/n22.wav differ
diff --git a/voices/sapi4-robosoft-one/n23.wav b/voices/sapi4-robosoft-one/n23.wav
new file mode 100644
index 0000000..afeba0a
Binary files /dev/null and b/voices/sapi4-robosoft-one/n23.wav differ
diff --git a/voices/sapi4-robosoft-one/n24.wav b/voices/sapi4-robosoft-one/n24.wav
new file mode 100644
index 0000000..5baf309
Binary files /dev/null and b/voices/sapi4-robosoft-one/n24.wav differ
diff --git a/voices/sapi4-robosoft-one/n25.wav b/voices/sapi4-robosoft-one/n25.wav
new file mode 100644
index 0000000..f283e5b
Binary files /dev/null and b/voices/sapi4-robosoft-one/n25.wav differ
diff --git a/voices/sapi4-robosoft-one/n26.wav b/voices/sapi4-robosoft-one/n26.wav
new file mode 100644
index 0000000..947cef0
Binary files /dev/null and b/voices/sapi4-robosoft-one/n26.wav differ
diff --git a/voices/sapi4-robosoft-one/n27.wav b/voices/sapi4-robosoft-one/n27.wav
new file mode 100644
index 0000000..c5fb7e2
Binary files /dev/null and b/voices/sapi4-robosoft-one/n27.wav differ
diff --git a/voices/sapi4-robosoft-one/n28.wav b/voices/sapi4-robosoft-one/n28.wav
new file mode 100644
index 0000000..59437a6
Binary files /dev/null and b/voices/sapi4-robosoft-one/n28.wav differ
diff --git a/voices/sapi4-robosoft-one/n29.wav b/voices/sapi4-robosoft-one/n29.wav
new file mode 100644
index 0000000..e60187c
Binary files /dev/null and b/voices/sapi4-robosoft-one/n29.wav differ
diff --git a/voices/sapi4-robosoft-one/n3.wav b/voices/sapi4-robosoft-one/n3.wav
new file mode 100644
index 0000000..2ee64e6
Binary files /dev/null and b/voices/sapi4-robosoft-one/n3.wav differ
diff --git a/voices/sapi4-robosoft-one/n30.wav b/voices/sapi4-robosoft-one/n30.wav
new file mode 100644
index 0000000..f2a7dd1
Binary files /dev/null and b/voices/sapi4-robosoft-one/n30.wav differ
diff --git a/voices/sapi4-robosoft-one/n31.wav b/voices/sapi4-robosoft-one/n31.wav
new file mode 100644
index 0000000..565a302
Binary files /dev/null and b/voices/sapi4-robosoft-one/n31.wav differ
diff --git a/voices/sapi4-robosoft-one/n32.wav b/voices/sapi4-robosoft-one/n32.wav
new file mode 100644
index 0000000..ed6b402
Binary files /dev/null and b/voices/sapi4-robosoft-one/n32.wav differ
diff --git a/voices/sapi4-robosoft-one/n33.wav b/voices/sapi4-robosoft-one/n33.wav
new file mode 100644
index 0000000..99f3acc
Binary files /dev/null and b/voices/sapi4-robosoft-one/n33.wav differ
diff --git a/voices/sapi4-robosoft-one/n34.wav b/voices/sapi4-robosoft-one/n34.wav
new file mode 100644
index 0000000..a9fa3cd
Binary files /dev/null and b/voices/sapi4-robosoft-one/n34.wav differ
diff --git a/voices/sapi4-robosoft-one/n35.wav b/voices/sapi4-robosoft-one/n35.wav
new file mode 100644
index 0000000..efdfba0
Binary files /dev/null and b/voices/sapi4-robosoft-one/n35.wav differ
diff --git a/voices/sapi4-robosoft-one/n36.wav b/voices/sapi4-robosoft-one/n36.wav
new file mode 100644
index 0000000..7b1ce66
Binary files /dev/null and b/voices/sapi4-robosoft-one/n36.wav differ
diff --git a/voices/sapi4-robosoft-one/n37.wav b/voices/sapi4-robosoft-one/n37.wav
new file mode 100644
index 0000000..51b0e7a
Binary files /dev/null and b/voices/sapi4-robosoft-one/n37.wav differ
diff --git a/voices/sapi4-robosoft-one/n38.wav b/voices/sapi4-robosoft-one/n38.wav
new file mode 100644
index 0000000..4dab16b
Binary files /dev/null and b/voices/sapi4-robosoft-one/n38.wav differ
diff --git a/voices/sapi4-robosoft-one/n39.wav b/voices/sapi4-robosoft-one/n39.wav
new file mode 100644
index 0000000..4cfd04b
Binary files /dev/null and b/voices/sapi4-robosoft-one/n39.wav differ
diff --git a/voices/sapi4-robosoft-one/n4.wav b/voices/sapi4-robosoft-one/n4.wav
new file mode 100644
index 0000000..cc1632e
Binary files /dev/null and b/voices/sapi4-robosoft-one/n4.wav differ
diff --git a/voices/sapi4-robosoft-one/n40.wav b/voices/sapi4-robosoft-one/n40.wav
new file mode 100644
index 0000000..ffd2a60
Binary files /dev/null and b/voices/sapi4-robosoft-one/n40.wav differ
diff --git a/voices/sapi4-robosoft-one/n41.wav b/voices/sapi4-robosoft-one/n41.wav
new file mode 100644
index 0000000..b7ab47c
Binary files /dev/null and b/voices/sapi4-robosoft-one/n41.wav differ
diff --git a/voices/sapi4-robosoft-one/n42.wav b/voices/sapi4-robosoft-one/n42.wav
new file mode 100644
index 0000000..0906b03
Binary files /dev/null and b/voices/sapi4-robosoft-one/n42.wav differ
diff --git a/voices/sapi4-robosoft-one/n43.wav b/voices/sapi4-robosoft-one/n43.wav
new file mode 100644
index 0000000..69b40ba
Binary files /dev/null and b/voices/sapi4-robosoft-one/n43.wav differ
diff --git a/voices/sapi4-robosoft-one/n44.wav b/voices/sapi4-robosoft-one/n44.wav
new file mode 100644
index 0000000..ac51f68
Binary files /dev/null and b/voices/sapi4-robosoft-one/n44.wav differ
diff --git a/voices/sapi4-robosoft-one/n45.wav b/voices/sapi4-robosoft-one/n45.wav
new file mode 100644
index 0000000..f1b3b50
Binary files /dev/null and b/voices/sapi4-robosoft-one/n45.wav differ
diff --git a/voices/sapi4-robosoft-one/n46.wav b/voices/sapi4-robosoft-one/n46.wav
new file mode 100644
index 0000000..dfef628
Binary files /dev/null and b/voices/sapi4-robosoft-one/n46.wav differ
diff --git a/voices/sapi4-robosoft-one/n47.wav b/voices/sapi4-robosoft-one/n47.wav
new file mode 100644
index 0000000..f5e9bb6
Binary files /dev/null and b/voices/sapi4-robosoft-one/n47.wav differ
diff --git a/voices/sapi4-robosoft-one/n48.wav b/voices/sapi4-robosoft-one/n48.wav
new file mode 100644
index 0000000..a8e7f87
Binary files /dev/null and b/voices/sapi4-robosoft-one/n48.wav differ
diff --git a/voices/sapi4-robosoft-one/n49.wav b/voices/sapi4-robosoft-one/n49.wav
new file mode 100644
index 0000000..8a9cdef
Binary files /dev/null and b/voices/sapi4-robosoft-one/n49.wav differ
diff --git a/voices/sapi4-robosoft-one/n5.wav b/voices/sapi4-robosoft-one/n5.wav
new file mode 100644
index 0000000..356b425
Binary files /dev/null and b/voices/sapi4-robosoft-one/n5.wav differ
diff --git a/voices/sapi4-robosoft-one/n50.wav b/voices/sapi4-robosoft-one/n50.wav
new file mode 100644
index 0000000..b7f2d93
Binary files /dev/null and b/voices/sapi4-robosoft-one/n50.wav differ
diff --git a/voices/sapi4-robosoft-one/n51.wav b/voices/sapi4-robosoft-one/n51.wav
new file mode 100644
index 0000000..ce3ee5f
Binary files /dev/null and b/voices/sapi4-robosoft-one/n51.wav differ
diff --git a/voices/sapi4-robosoft-one/n52.wav b/voices/sapi4-robosoft-one/n52.wav
new file mode 100644
index 0000000..2555ea7
Binary files /dev/null and b/voices/sapi4-robosoft-one/n52.wav differ
diff --git a/voices/sapi4-robosoft-one/n53.wav b/voices/sapi4-robosoft-one/n53.wav
new file mode 100644
index 0000000..ffc7b7f
Binary files /dev/null and b/voices/sapi4-robosoft-one/n53.wav differ
diff --git a/voices/sapi4-robosoft-one/n54.wav b/voices/sapi4-robosoft-one/n54.wav
new file mode 100644
index 0000000..2497b54
Binary files /dev/null and b/voices/sapi4-robosoft-one/n54.wav differ
diff --git a/voices/sapi4-robosoft-one/n55.wav b/voices/sapi4-robosoft-one/n55.wav
new file mode 100644
index 0000000..5fb68b0
Binary files /dev/null and b/voices/sapi4-robosoft-one/n55.wav differ
diff --git a/voices/sapi4-robosoft-one/n56.wav b/voices/sapi4-robosoft-one/n56.wav
new file mode 100644
index 0000000..30d1abe
Binary files /dev/null and b/voices/sapi4-robosoft-one/n56.wav differ
diff --git a/voices/sapi4-robosoft-one/n57.wav b/voices/sapi4-robosoft-one/n57.wav
new file mode 100644
index 0000000..8ebf091
Binary files /dev/null and b/voices/sapi4-robosoft-one/n57.wav differ
diff --git a/voices/sapi4-robosoft-one/n58.wav b/voices/sapi4-robosoft-one/n58.wav
new file mode 100644
index 0000000..69a2de5
Binary files /dev/null and b/voices/sapi4-robosoft-one/n58.wav differ
diff --git a/voices/sapi4-robosoft-one/n59.wav b/voices/sapi4-robosoft-one/n59.wav
new file mode 100644
index 0000000..ccafab5
Binary files /dev/null and b/voices/sapi4-robosoft-one/n59.wav differ
diff --git a/voices/sapi4-robosoft-one/n6.wav b/voices/sapi4-robosoft-one/n6.wav
new file mode 100644
index 0000000..ff820ea
Binary files /dev/null and b/voices/sapi4-robosoft-one/n6.wav differ
diff --git a/voices/sapi4-robosoft-one/n7.wav b/voices/sapi4-robosoft-one/n7.wav
new file mode 100644
index 0000000..8122e78
Binary files /dev/null and b/voices/sapi4-robosoft-one/n7.wav differ
diff --git a/voices/sapi4-robosoft-one/n8.wav b/voices/sapi4-robosoft-one/n8.wav
new file mode 100644
index 0000000..8c61d54
Binary files /dev/null and b/voices/sapi4-robosoft-one/n8.wav differ
diff --git a/voices/sapi4-robosoft-one/n9.wav b/voices/sapi4-robosoft-one/n9.wav
new file mode 100644
index 0000000..f6fa4ba
Binary files /dev/null and b/voices/sapi4-robosoft-one/n9.wav differ
diff --git a/voices/sapi4-robosoft-one/noon.wav b/voices/sapi4-robosoft-one/noon.wav
new file mode 100644
index 0000000..e72db2c
Binary files /dev/null and b/voices/sapi4-robosoft-one/noon.wav differ
diff --git a/voices/sapi4-robosoft-one/oclock.wav b/voices/sapi4-robosoft-one/oclock.wav
new file mode 100644
index 0000000..03757b5
Binary files /dev/null and b/voices/sapi4-robosoft-one/oclock.wav differ
diff --git a/voices/sapi4-robosoft-one/oh.wav b/voices/sapi4-robosoft-one/oh.wav
new file mode 100644
index 0000000..d427c6a
Binary files /dev/null and b/voices/sapi4-robosoft-one/oh.wav differ
diff --git a/voices/sapi4-robosoft-one/phrase.wav b/voices/sapi4-robosoft-one/phrase.wav
new file mode 100644
index 0000000..0b735cc
Binary files /dev/null and b/voices/sapi4-robosoft-one/phrase.wav differ
diff --git a/voices/sapi4-robosoft-one/pm.wav b/voices/sapi4-robosoft-one/pm.wav
new file mode 100644
index 0000000..c56de0d
Binary files /dev/null and b/voices/sapi4-robosoft-one/pm.wav differ
diff --git a/voices/sapi4-robosoft-one/precisely.wav b/voices/sapi4-robosoft-one/precisely.wav
new file mode 100644
index 0000000..8295cb6
Binary files /dev/null and b/voices/sapi4-robosoft-one/precisely.wav differ
diff --git a/voices/sapi4-robosoft-one/s10.wav b/voices/sapi4-robosoft-one/s10.wav
new file mode 100644
index 0000000..1095709
Binary files /dev/null and b/voices/sapi4-robosoft-one/s10.wav differ
diff --git a/voices/sapi4-robosoft-one/s20.wav b/voices/sapi4-robosoft-one/s20.wav
new file mode 100644
index 0000000..1a6e9d3
Binary files /dev/null and b/voices/sapi4-robosoft-one/s20.wav differ
diff --git a/voices/sapi4-robosoft-one/s30.wav b/voices/sapi4-robosoft-one/s30.wav
new file mode 100644
index 0000000..e7dd786
Binary files /dev/null and b/voices/sapi4-robosoft-one/s30.wav differ
diff --git a/voices/sapi4-robosoft-one/s40.wav b/voices/sapi4-robosoft-one/s40.wav
new file mode 100644
index 0000000..5489157
Binary files /dev/null and b/voices/sapi4-robosoft-one/s40.wav differ
diff --git a/voices/sapi4-robosoft-one/s50.wav b/voices/sapi4-robosoft-one/s50.wav
new file mode 100644
index 0000000..8b6a4a9
Binary files /dev/null and b/voices/sapi4-robosoft-one/s50.wav differ
diff --git a/voices/sapi4-robosoft-one/voice.conf b/voices/sapi4-robosoft-one/voice.conf
new file mode 100644
index 0000000..8f65fed
--- /dev/null
+++ b/voices/sapi4-robosoft-one/voice.conf
@@ -0,0 +1,16 @@
+; Voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py sapi4:robosoft-one. The synthesiser belongs to its owners;
+; see NOTICE.md.
+
+[voice]
+name=RoboSoft One (SAPI4)
+description=SAPI4 novelty voice
+mode=tim
+sequence=phrase+hour+minute+seconds+pips
+period=10
+; no pips.wav: the module makes the pips (1 kHz, the third one marks the time)
+
+[source]
+engine=sapi4
+voice=robosoft-one
+synthesiser=Microsoft Speech API 4 runtime and voices, spoken by https://www.tetyys.com/SAPI4/
diff --git a/voices/sapi4-truvoice-female1/am.wav b/voices/sapi4-truvoice-female1/am.wav
new file mode 100644
index 0000000..5ce98f3
Binary files /dev/null and b/voices/sapi4-truvoice-female1/am.wav differ
diff --git a/voices/sapi4-truvoice-female1/greet_afternoon.wav b/voices/sapi4-truvoice-female1/greet_afternoon.wav
new file mode 100644
index 0000000..23b37b9
Binary files /dev/null and b/voices/sapi4-truvoice-female1/greet_afternoon.wav differ
diff --git a/voices/sapi4-truvoice-female1/greet_evening.wav b/voices/sapi4-truvoice-female1/greet_evening.wav
new file mode 100644
index 0000000..c97b635
Binary files /dev/null and b/voices/sapi4-truvoice-female1/greet_evening.wav differ
diff --git a/voices/sapi4-truvoice-female1/greet_morning.wav b/voices/sapi4-truvoice-female1/greet_morning.wav
new file mode 100644
index 0000000..b548014
Binary files /dev/null and b/voices/sapi4-truvoice-female1/greet_morning.wav differ
diff --git a/voices/sapi4-truvoice-female1/its.wav b/voices/sapi4-truvoice-female1/its.wav
new file mode 100644
index 0000000..18f1393
Binary files /dev/null and b/voices/sapi4-truvoice-female1/its.wav differ
diff --git a/voices/sapi4-truvoice-female1/m1.wav b/voices/sapi4-truvoice-female1/m1.wav
new file mode 100644
index 0000000..ba4caaf
Binary files /dev/null and b/voices/sapi4-truvoice-female1/m1.wav differ
diff --git a/voices/sapi4-truvoice-female1/m2.wav b/voices/sapi4-truvoice-female1/m2.wav
new file mode 100644
index 0000000..281ac41
Binary files /dev/null and b/voices/sapi4-truvoice-female1/m2.wav differ
diff --git a/voices/sapi4-truvoice-female1/m3.wav b/voices/sapi4-truvoice-female1/m3.wav
new file mode 100644
index 0000000..a9514c2
Binary files /dev/null and b/voices/sapi4-truvoice-female1/m3.wav differ
diff --git a/voices/sapi4-truvoice-female1/m4.wav b/voices/sapi4-truvoice-female1/m4.wav
new file mode 100644
index 0000000..c7e4ce2
Binary files /dev/null and b/voices/sapi4-truvoice-female1/m4.wav differ
diff --git a/voices/sapi4-truvoice-female1/m5.wav b/voices/sapi4-truvoice-female1/m5.wav
new file mode 100644
index 0000000..bb7068a
Binary files /dev/null and b/voices/sapi4-truvoice-female1/m5.wav differ
diff --git a/voices/sapi4-truvoice-female1/m6.wav b/voices/sapi4-truvoice-female1/m6.wav
new file mode 100644
index 0000000..4341fa2
Binary files /dev/null and b/voices/sapi4-truvoice-female1/m6.wav differ
diff --git a/voices/sapi4-truvoice-female1/m7.wav b/voices/sapi4-truvoice-female1/m7.wav
new file mode 100644
index 0000000..98cca43
Binary files /dev/null and b/voices/sapi4-truvoice-female1/m7.wav differ
diff --git a/voices/sapi4-truvoice-female1/m8.wav b/voices/sapi4-truvoice-female1/m8.wav
new file mode 100644
index 0000000..d9402c5
Binary files /dev/null and b/voices/sapi4-truvoice-female1/m8.wav differ
diff --git a/voices/sapi4-truvoice-female1/m9.wav b/voices/sapi4-truvoice-female1/m9.wav
new file mode 100644
index 0000000..4dc3a95
Binary files /dev/null and b/voices/sapi4-truvoice-female1/m9.wav differ
diff --git a/voices/sapi4-truvoice-female1/midnight.wav b/voices/sapi4-truvoice-female1/midnight.wav
new file mode 100644
index 0000000..47f9d22
Binary files /dev/null and b/voices/sapi4-truvoice-female1/midnight.wav differ
diff --git a/voices/sapi4-truvoice-female1/n0.wav b/voices/sapi4-truvoice-female1/n0.wav
new file mode 100644
index 0000000..79f43dc
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n0.wav differ
diff --git a/voices/sapi4-truvoice-female1/n1.wav b/voices/sapi4-truvoice-female1/n1.wav
new file mode 100644
index 0000000..f847643
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n1.wav differ
diff --git a/voices/sapi4-truvoice-female1/n10.wav b/voices/sapi4-truvoice-female1/n10.wav
new file mode 100644
index 0000000..575e172
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n10.wav differ
diff --git a/voices/sapi4-truvoice-female1/n11.wav b/voices/sapi4-truvoice-female1/n11.wav
new file mode 100644
index 0000000..aa4a3f7
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n11.wav differ
diff --git a/voices/sapi4-truvoice-female1/n12.wav b/voices/sapi4-truvoice-female1/n12.wav
new file mode 100644
index 0000000..9d9d651
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n12.wav differ
diff --git a/voices/sapi4-truvoice-female1/n13.wav b/voices/sapi4-truvoice-female1/n13.wav
new file mode 100644
index 0000000..18f9203
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n13.wav differ
diff --git a/voices/sapi4-truvoice-female1/n14.wav b/voices/sapi4-truvoice-female1/n14.wav
new file mode 100644
index 0000000..d14d9bb
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n14.wav differ
diff --git a/voices/sapi4-truvoice-female1/n15.wav b/voices/sapi4-truvoice-female1/n15.wav
new file mode 100644
index 0000000..8c43b0f
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n15.wav differ
diff --git a/voices/sapi4-truvoice-female1/n16.wav b/voices/sapi4-truvoice-female1/n16.wav
new file mode 100644
index 0000000..cdcdf86
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n16.wav differ
diff --git a/voices/sapi4-truvoice-female1/n17.wav b/voices/sapi4-truvoice-female1/n17.wav
new file mode 100644
index 0000000..8c7da0f
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n17.wav differ
diff --git a/voices/sapi4-truvoice-female1/n18.wav b/voices/sapi4-truvoice-female1/n18.wav
new file mode 100644
index 0000000..2bd0049
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n18.wav differ
diff --git a/voices/sapi4-truvoice-female1/n19.wav b/voices/sapi4-truvoice-female1/n19.wav
new file mode 100644
index 0000000..f9148ca
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n19.wav differ
diff --git a/voices/sapi4-truvoice-female1/n2.wav b/voices/sapi4-truvoice-female1/n2.wav
new file mode 100644
index 0000000..f2b03b3
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n2.wav differ
diff --git a/voices/sapi4-truvoice-female1/n20.wav b/voices/sapi4-truvoice-female1/n20.wav
new file mode 100644
index 0000000..d0c5ef3
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n20.wav differ
diff --git a/voices/sapi4-truvoice-female1/n21.wav b/voices/sapi4-truvoice-female1/n21.wav
new file mode 100644
index 0000000..3cb3a51
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n21.wav differ
diff --git a/voices/sapi4-truvoice-female1/n22.wav b/voices/sapi4-truvoice-female1/n22.wav
new file mode 100644
index 0000000..ed3a225
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n22.wav differ
diff --git a/voices/sapi4-truvoice-female1/n23.wav b/voices/sapi4-truvoice-female1/n23.wav
new file mode 100644
index 0000000..4418977
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n23.wav differ
diff --git a/voices/sapi4-truvoice-female1/n24.wav b/voices/sapi4-truvoice-female1/n24.wav
new file mode 100644
index 0000000..740cce2
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n24.wav differ
diff --git a/voices/sapi4-truvoice-female1/n25.wav b/voices/sapi4-truvoice-female1/n25.wav
new file mode 100644
index 0000000..bab994e
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n25.wav differ
diff --git a/voices/sapi4-truvoice-female1/n26.wav b/voices/sapi4-truvoice-female1/n26.wav
new file mode 100644
index 0000000..e8cd714
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n26.wav differ
diff --git a/voices/sapi4-truvoice-female1/n27.wav b/voices/sapi4-truvoice-female1/n27.wav
new file mode 100644
index 0000000..c0241d2
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n27.wav differ
diff --git a/voices/sapi4-truvoice-female1/n28.wav b/voices/sapi4-truvoice-female1/n28.wav
new file mode 100644
index 0000000..a2444fe
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n28.wav differ
diff --git a/voices/sapi4-truvoice-female1/n29.wav b/voices/sapi4-truvoice-female1/n29.wav
new file mode 100644
index 0000000..435deea
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n29.wav differ
diff --git a/voices/sapi4-truvoice-female1/n3.wav b/voices/sapi4-truvoice-female1/n3.wav
new file mode 100644
index 0000000..c56fe5d
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n3.wav differ
diff --git a/voices/sapi4-truvoice-female1/n30.wav b/voices/sapi4-truvoice-female1/n30.wav
new file mode 100644
index 0000000..9a44733
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n30.wav differ
diff --git a/voices/sapi4-truvoice-female1/n31.wav b/voices/sapi4-truvoice-female1/n31.wav
new file mode 100644
index 0000000..f91c3a2
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n31.wav differ
diff --git a/voices/sapi4-truvoice-female1/n32.wav b/voices/sapi4-truvoice-female1/n32.wav
new file mode 100644
index 0000000..8e658b8
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n32.wav differ
diff --git a/voices/sapi4-truvoice-female1/n33.wav b/voices/sapi4-truvoice-female1/n33.wav
new file mode 100644
index 0000000..8534177
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n33.wav differ
diff --git a/voices/sapi4-truvoice-female1/n34.wav b/voices/sapi4-truvoice-female1/n34.wav
new file mode 100644
index 0000000..67aec38
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n34.wav differ
diff --git a/voices/sapi4-truvoice-female1/n35.wav b/voices/sapi4-truvoice-female1/n35.wav
new file mode 100644
index 0000000..cd764ba
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n35.wav differ
diff --git a/voices/sapi4-truvoice-female1/n36.wav b/voices/sapi4-truvoice-female1/n36.wav
new file mode 100644
index 0000000..ec46449
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n36.wav differ
diff --git a/voices/sapi4-truvoice-female1/n37.wav b/voices/sapi4-truvoice-female1/n37.wav
new file mode 100644
index 0000000..d412fa8
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n37.wav differ
diff --git a/voices/sapi4-truvoice-female1/n38.wav b/voices/sapi4-truvoice-female1/n38.wav
new file mode 100644
index 0000000..1b8bbfd
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n38.wav differ
diff --git a/voices/sapi4-truvoice-female1/n39.wav b/voices/sapi4-truvoice-female1/n39.wav
new file mode 100644
index 0000000..f4b9e39
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n39.wav differ
diff --git a/voices/sapi4-truvoice-female1/n4.wav b/voices/sapi4-truvoice-female1/n4.wav
new file mode 100644
index 0000000..3d4a721
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n4.wav differ
diff --git a/voices/sapi4-truvoice-female1/n40.wav b/voices/sapi4-truvoice-female1/n40.wav
new file mode 100644
index 0000000..4c67b85
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n40.wav differ
diff --git a/voices/sapi4-truvoice-female1/n41.wav b/voices/sapi4-truvoice-female1/n41.wav
new file mode 100644
index 0000000..bdc28f3
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n41.wav differ
diff --git a/voices/sapi4-truvoice-female1/n42.wav b/voices/sapi4-truvoice-female1/n42.wav
new file mode 100644
index 0000000..e896ad2
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n42.wav differ
diff --git a/voices/sapi4-truvoice-female1/n43.wav b/voices/sapi4-truvoice-female1/n43.wav
new file mode 100644
index 0000000..0f216b4
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n43.wav differ
diff --git a/voices/sapi4-truvoice-female1/n44.wav b/voices/sapi4-truvoice-female1/n44.wav
new file mode 100644
index 0000000..8b9c7a6
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n44.wav differ
diff --git a/voices/sapi4-truvoice-female1/n45.wav b/voices/sapi4-truvoice-female1/n45.wav
new file mode 100644
index 0000000..2dc8554
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n45.wav differ
diff --git a/voices/sapi4-truvoice-female1/n46.wav b/voices/sapi4-truvoice-female1/n46.wav
new file mode 100644
index 0000000..ec0f42d
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n46.wav differ
diff --git a/voices/sapi4-truvoice-female1/n47.wav b/voices/sapi4-truvoice-female1/n47.wav
new file mode 100644
index 0000000..63af717
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n47.wav differ
diff --git a/voices/sapi4-truvoice-female1/n48.wav b/voices/sapi4-truvoice-female1/n48.wav
new file mode 100644
index 0000000..616dcbf
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n48.wav differ
diff --git a/voices/sapi4-truvoice-female1/n49.wav b/voices/sapi4-truvoice-female1/n49.wav
new file mode 100644
index 0000000..0a4b0ff
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n49.wav differ
diff --git a/voices/sapi4-truvoice-female1/n5.wav b/voices/sapi4-truvoice-female1/n5.wav
new file mode 100644
index 0000000..0ef6ac4
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n5.wav differ
diff --git a/voices/sapi4-truvoice-female1/n50.wav b/voices/sapi4-truvoice-female1/n50.wav
new file mode 100644
index 0000000..5cb6621
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n50.wav differ
diff --git a/voices/sapi4-truvoice-female1/n51.wav b/voices/sapi4-truvoice-female1/n51.wav
new file mode 100644
index 0000000..9a98d39
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n51.wav differ
diff --git a/voices/sapi4-truvoice-female1/n52.wav b/voices/sapi4-truvoice-female1/n52.wav
new file mode 100644
index 0000000..2492a26
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n52.wav differ
diff --git a/voices/sapi4-truvoice-female1/n53.wav b/voices/sapi4-truvoice-female1/n53.wav
new file mode 100644
index 0000000..12c0938
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n53.wav differ
diff --git a/voices/sapi4-truvoice-female1/n54.wav b/voices/sapi4-truvoice-female1/n54.wav
new file mode 100644
index 0000000..828a90e
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n54.wav differ
diff --git a/voices/sapi4-truvoice-female1/n55.wav b/voices/sapi4-truvoice-female1/n55.wav
new file mode 100644
index 0000000..38a8b1a
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n55.wav differ
diff --git a/voices/sapi4-truvoice-female1/n56.wav b/voices/sapi4-truvoice-female1/n56.wav
new file mode 100644
index 0000000..7bec2fb
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n56.wav differ
diff --git a/voices/sapi4-truvoice-female1/n57.wav b/voices/sapi4-truvoice-female1/n57.wav
new file mode 100644
index 0000000..8ab4a5d
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n57.wav differ
diff --git a/voices/sapi4-truvoice-female1/n58.wav b/voices/sapi4-truvoice-female1/n58.wav
new file mode 100644
index 0000000..3349635
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n58.wav differ
diff --git a/voices/sapi4-truvoice-female1/n59.wav b/voices/sapi4-truvoice-female1/n59.wav
new file mode 100644
index 0000000..48f3683
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n59.wav differ
diff --git a/voices/sapi4-truvoice-female1/n6.wav b/voices/sapi4-truvoice-female1/n6.wav
new file mode 100644
index 0000000..ba1125c
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n6.wav differ
diff --git a/voices/sapi4-truvoice-female1/n7.wav b/voices/sapi4-truvoice-female1/n7.wav
new file mode 100644
index 0000000..d627c47
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n7.wav differ
diff --git a/voices/sapi4-truvoice-female1/n8.wav b/voices/sapi4-truvoice-female1/n8.wav
new file mode 100644
index 0000000..1acb6e8
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n8.wav differ
diff --git a/voices/sapi4-truvoice-female1/n9.wav b/voices/sapi4-truvoice-female1/n9.wav
new file mode 100644
index 0000000..d87d193
Binary files /dev/null and b/voices/sapi4-truvoice-female1/n9.wav differ
diff --git a/voices/sapi4-truvoice-female1/noon.wav b/voices/sapi4-truvoice-female1/noon.wav
new file mode 100644
index 0000000..9eca232
Binary files /dev/null and b/voices/sapi4-truvoice-female1/noon.wav differ
diff --git a/voices/sapi4-truvoice-female1/oclock.wav b/voices/sapi4-truvoice-female1/oclock.wav
new file mode 100644
index 0000000..4163971
Binary files /dev/null and b/voices/sapi4-truvoice-female1/oclock.wav differ
diff --git a/voices/sapi4-truvoice-female1/oh.wav b/voices/sapi4-truvoice-female1/oh.wav
new file mode 100644
index 0000000..de7f1b2
Binary files /dev/null and b/voices/sapi4-truvoice-female1/oh.wav differ
diff --git a/voices/sapi4-truvoice-female1/phrase.wav b/voices/sapi4-truvoice-female1/phrase.wav
new file mode 100644
index 0000000..c0da5c7
Binary files /dev/null and b/voices/sapi4-truvoice-female1/phrase.wav differ
diff --git a/voices/sapi4-truvoice-female1/pm.wav b/voices/sapi4-truvoice-female1/pm.wav
new file mode 100644
index 0000000..286dc06
Binary files /dev/null and b/voices/sapi4-truvoice-female1/pm.wav differ
diff --git a/voices/sapi4-truvoice-female1/precisely.wav b/voices/sapi4-truvoice-female1/precisely.wav
new file mode 100644
index 0000000..cf32633
Binary files /dev/null and b/voices/sapi4-truvoice-female1/precisely.wav differ
diff --git a/voices/sapi4-truvoice-female1/s10.wav b/voices/sapi4-truvoice-female1/s10.wav
new file mode 100644
index 0000000..957aedf
Binary files /dev/null and b/voices/sapi4-truvoice-female1/s10.wav differ
diff --git a/voices/sapi4-truvoice-female1/s20.wav b/voices/sapi4-truvoice-female1/s20.wav
new file mode 100644
index 0000000..4e948fc
Binary files /dev/null and b/voices/sapi4-truvoice-female1/s20.wav differ
diff --git a/voices/sapi4-truvoice-female1/s30.wav b/voices/sapi4-truvoice-female1/s30.wav
new file mode 100644
index 0000000..b468fd3
Binary files /dev/null and b/voices/sapi4-truvoice-female1/s30.wav differ
diff --git a/voices/sapi4-truvoice-female1/s40.wav b/voices/sapi4-truvoice-female1/s40.wav
new file mode 100644
index 0000000..463acbb
Binary files /dev/null and b/voices/sapi4-truvoice-female1/s40.wav differ
diff --git a/voices/sapi4-truvoice-female1/s50.wav b/voices/sapi4-truvoice-female1/s50.wav
new file mode 100644
index 0000000..9fe8e56
Binary files /dev/null and b/voices/sapi4-truvoice-female1/s50.wav differ
diff --git a/voices/sapi4-truvoice-female1/voice.conf b/voices/sapi4-truvoice-female1/voice.conf
new file mode 100644
index 0000000..f886f86
--- /dev/null
+++ b/voices/sapi4-truvoice-female1/voice.conf
@@ -0,0 +1,16 @@
+; Voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py sapi4:truvoice-female1. The synthesiser belongs to its owners;
+; see NOTICE.md.
+
+[voice]
+name=TruVoice Adult Female #1 (SAPI4)
+description=Lernout & Hauspie TruVoice
+mode=tim
+sequence=phrase+hour+minute+seconds+pips
+period=10
+; no pips.wav: the module makes the pips (1 kHz, the third one marks the time)
+
+[source]
+engine=sapi4
+voice=truvoice-female1
+synthesiser=Microsoft Speech API 4 runtime and voices, spoken by https://www.tetyys.com/SAPI4/
diff --git a/voices/sapi4-truvoice-male1/am.wav b/voices/sapi4-truvoice-male1/am.wav
new file mode 100644
index 0000000..8791b0e
Binary files /dev/null and b/voices/sapi4-truvoice-male1/am.wav differ
diff --git a/voices/sapi4-truvoice-male1/greet_afternoon.wav b/voices/sapi4-truvoice-male1/greet_afternoon.wav
new file mode 100644
index 0000000..83d9bd8
Binary files /dev/null and b/voices/sapi4-truvoice-male1/greet_afternoon.wav differ
diff --git a/voices/sapi4-truvoice-male1/greet_evening.wav b/voices/sapi4-truvoice-male1/greet_evening.wav
new file mode 100644
index 0000000..b33c2d5
Binary files /dev/null and b/voices/sapi4-truvoice-male1/greet_evening.wav differ
diff --git a/voices/sapi4-truvoice-male1/greet_morning.wav b/voices/sapi4-truvoice-male1/greet_morning.wav
new file mode 100644
index 0000000..f52cdd7
Binary files /dev/null and b/voices/sapi4-truvoice-male1/greet_morning.wav differ
diff --git a/voices/sapi4-truvoice-male1/its.wav b/voices/sapi4-truvoice-male1/its.wav
new file mode 100644
index 0000000..2877077
Binary files /dev/null and b/voices/sapi4-truvoice-male1/its.wav differ
diff --git a/voices/sapi4-truvoice-male1/m1.wav b/voices/sapi4-truvoice-male1/m1.wav
new file mode 100644
index 0000000..0526387
Binary files /dev/null and b/voices/sapi4-truvoice-male1/m1.wav differ
diff --git a/voices/sapi4-truvoice-male1/m2.wav b/voices/sapi4-truvoice-male1/m2.wav
new file mode 100644
index 0000000..179a152
Binary files /dev/null and b/voices/sapi4-truvoice-male1/m2.wav differ
diff --git a/voices/sapi4-truvoice-male1/m3.wav b/voices/sapi4-truvoice-male1/m3.wav
new file mode 100644
index 0000000..3dd8bc8
Binary files /dev/null and b/voices/sapi4-truvoice-male1/m3.wav differ
diff --git a/voices/sapi4-truvoice-male1/m4.wav b/voices/sapi4-truvoice-male1/m4.wav
new file mode 100644
index 0000000..0b6767c
Binary files /dev/null and b/voices/sapi4-truvoice-male1/m4.wav differ
diff --git a/voices/sapi4-truvoice-male1/m5.wav b/voices/sapi4-truvoice-male1/m5.wav
new file mode 100644
index 0000000..503852b
Binary files /dev/null and b/voices/sapi4-truvoice-male1/m5.wav differ
diff --git a/voices/sapi4-truvoice-male1/m6.wav b/voices/sapi4-truvoice-male1/m6.wav
new file mode 100644
index 0000000..af0806a
Binary files /dev/null and b/voices/sapi4-truvoice-male1/m6.wav differ
diff --git a/voices/sapi4-truvoice-male1/m7.wav b/voices/sapi4-truvoice-male1/m7.wav
new file mode 100644
index 0000000..c5208e5
Binary files /dev/null and b/voices/sapi4-truvoice-male1/m7.wav differ
diff --git a/voices/sapi4-truvoice-male1/m8.wav b/voices/sapi4-truvoice-male1/m8.wav
new file mode 100644
index 0000000..4b5f390
Binary files /dev/null and b/voices/sapi4-truvoice-male1/m8.wav differ
diff --git a/voices/sapi4-truvoice-male1/m9.wav b/voices/sapi4-truvoice-male1/m9.wav
new file mode 100644
index 0000000..5e252d3
Binary files /dev/null and b/voices/sapi4-truvoice-male1/m9.wav differ
diff --git a/voices/sapi4-truvoice-male1/midnight.wav b/voices/sapi4-truvoice-male1/midnight.wav
new file mode 100644
index 0000000..7cf5424
Binary files /dev/null and b/voices/sapi4-truvoice-male1/midnight.wav differ
diff --git a/voices/sapi4-truvoice-male1/n0.wav b/voices/sapi4-truvoice-male1/n0.wav
new file mode 100644
index 0000000..f0063d1
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n0.wav differ
diff --git a/voices/sapi4-truvoice-male1/n1.wav b/voices/sapi4-truvoice-male1/n1.wav
new file mode 100644
index 0000000..7733b4e
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n1.wav differ
diff --git a/voices/sapi4-truvoice-male1/n10.wav b/voices/sapi4-truvoice-male1/n10.wav
new file mode 100644
index 0000000..4b52d0f
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n10.wav differ
diff --git a/voices/sapi4-truvoice-male1/n11.wav b/voices/sapi4-truvoice-male1/n11.wav
new file mode 100644
index 0000000..2163e95
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n11.wav differ
diff --git a/voices/sapi4-truvoice-male1/n12.wav b/voices/sapi4-truvoice-male1/n12.wav
new file mode 100644
index 0000000..99e27f0
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n12.wav differ
diff --git a/voices/sapi4-truvoice-male1/n13.wav b/voices/sapi4-truvoice-male1/n13.wav
new file mode 100644
index 0000000..59b0569
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n13.wav differ
diff --git a/voices/sapi4-truvoice-male1/n14.wav b/voices/sapi4-truvoice-male1/n14.wav
new file mode 100644
index 0000000..fa27432
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n14.wav differ
diff --git a/voices/sapi4-truvoice-male1/n15.wav b/voices/sapi4-truvoice-male1/n15.wav
new file mode 100644
index 0000000..14aaea8
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n15.wav differ
diff --git a/voices/sapi4-truvoice-male1/n16.wav b/voices/sapi4-truvoice-male1/n16.wav
new file mode 100644
index 0000000..08c01b2
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n16.wav differ
diff --git a/voices/sapi4-truvoice-male1/n17.wav b/voices/sapi4-truvoice-male1/n17.wav
new file mode 100644
index 0000000..1803d98
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n17.wav differ
diff --git a/voices/sapi4-truvoice-male1/n18.wav b/voices/sapi4-truvoice-male1/n18.wav
new file mode 100644
index 0000000..c496efb
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n18.wav differ
diff --git a/voices/sapi4-truvoice-male1/n19.wav b/voices/sapi4-truvoice-male1/n19.wav
new file mode 100644
index 0000000..99143df
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n19.wav differ
diff --git a/voices/sapi4-truvoice-male1/n2.wav b/voices/sapi4-truvoice-male1/n2.wav
new file mode 100644
index 0000000..5bc6e3a
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n2.wav differ
diff --git a/voices/sapi4-truvoice-male1/n20.wav b/voices/sapi4-truvoice-male1/n20.wav
new file mode 100644
index 0000000..7b762d4
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n20.wav differ
diff --git a/voices/sapi4-truvoice-male1/n21.wav b/voices/sapi4-truvoice-male1/n21.wav
new file mode 100644
index 0000000..61aa0be
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n21.wav differ
diff --git a/voices/sapi4-truvoice-male1/n22.wav b/voices/sapi4-truvoice-male1/n22.wav
new file mode 100644
index 0000000..effa8aa
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n22.wav differ
diff --git a/voices/sapi4-truvoice-male1/n23.wav b/voices/sapi4-truvoice-male1/n23.wav
new file mode 100644
index 0000000..a3efb6e
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n23.wav differ
diff --git a/voices/sapi4-truvoice-male1/n24.wav b/voices/sapi4-truvoice-male1/n24.wav
new file mode 100644
index 0000000..ce4fd52
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n24.wav differ
diff --git a/voices/sapi4-truvoice-male1/n25.wav b/voices/sapi4-truvoice-male1/n25.wav
new file mode 100644
index 0000000..5d2831b
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n25.wav differ
diff --git a/voices/sapi4-truvoice-male1/n26.wav b/voices/sapi4-truvoice-male1/n26.wav
new file mode 100644
index 0000000..10e40a0
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n26.wav differ
diff --git a/voices/sapi4-truvoice-male1/n27.wav b/voices/sapi4-truvoice-male1/n27.wav
new file mode 100644
index 0000000..be7ae5e
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n27.wav differ
diff --git a/voices/sapi4-truvoice-male1/n28.wav b/voices/sapi4-truvoice-male1/n28.wav
new file mode 100644
index 0000000..203c5fb
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n28.wav differ
diff --git a/voices/sapi4-truvoice-male1/n29.wav b/voices/sapi4-truvoice-male1/n29.wav
new file mode 100644
index 0000000..94e8a5b
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n29.wav differ
diff --git a/voices/sapi4-truvoice-male1/n3.wav b/voices/sapi4-truvoice-male1/n3.wav
new file mode 100644
index 0000000..134cbb9
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n3.wav differ
diff --git a/voices/sapi4-truvoice-male1/n30.wav b/voices/sapi4-truvoice-male1/n30.wav
new file mode 100644
index 0000000..7a5a5d7
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n30.wav differ
diff --git a/voices/sapi4-truvoice-male1/n31.wav b/voices/sapi4-truvoice-male1/n31.wav
new file mode 100644
index 0000000..26d2c16
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n31.wav differ
diff --git a/voices/sapi4-truvoice-male1/n32.wav b/voices/sapi4-truvoice-male1/n32.wav
new file mode 100644
index 0000000..0793517
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n32.wav differ
diff --git a/voices/sapi4-truvoice-male1/n33.wav b/voices/sapi4-truvoice-male1/n33.wav
new file mode 100644
index 0000000..d0bf609
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n33.wav differ
diff --git a/voices/sapi4-truvoice-male1/n34.wav b/voices/sapi4-truvoice-male1/n34.wav
new file mode 100644
index 0000000..a79db25
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n34.wav differ
diff --git a/voices/sapi4-truvoice-male1/n35.wav b/voices/sapi4-truvoice-male1/n35.wav
new file mode 100644
index 0000000..d83044b
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n35.wav differ
diff --git a/voices/sapi4-truvoice-male1/n36.wav b/voices/sapi4-truvoice-male1/n36.wav
new file mode 100644
index 0000000..e1c6f13
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n36.wav differ
diff --git a/voices/sapi4-truvoice-male1/n37.wav b/voices/sapi4-truvoice-male1/n37.wav
new file mode 100644
index 0000000..abd71cb
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n37.wav differ
diff --git a/voices/sapi4-truvoice-male1/n38.wav b/voices/sapi4-truvoice-male1/n38.wav
new file mode 100644
index 0000000..8221e22
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n38.wav differ
diff --git a/voices/sapi4-truvoice-male1/n39.wav b/voices/sapi4-truvoice-male1/n39.wav
new file mode 100644
index 0000000..ece15c5
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n39.wav differ
diff --git a/voices/sapi4-truvoice-male1/n4.wav b/voices/sapi4-truvoice-male1/n4.wav
new file mode 100644
index 0000000..8e59e66
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n4.wav differ
diff --git a/voices/sapi4-truvoice-male1/n40.wav b/voices/sapi4-truvoice-male1/n40.wav
new file mode 100644
index 0000000..9712b8f
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n40.wav differ
diff --git a/voices/sapi4-truvoice-male1/n41.wav b/voices/sapi4-truvoice-male1/n41.wav
new file mode 100644
index 0000000..6193236
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n41.wav differ
diff --git a/voices/sapi4-truvoice-male1/n42.wav b/voices/sapi4-truvoice-male1/n42.wav
new file mode 100644
index 0000000..d0d067a
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n42.wav differ
diff --git a/voices/sapi4-truvoice-male1/n43.wav b/voices/sapi4-truvoice-male1/n43.wav
new file mode 100644
index 0000000..cc5c3ee
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n43.wav differ
diff --git a/voices/sapi4-truvoice-male1/n44.wav b/voices/sapi4-truvoice-male1/n44.wav
new file mode 100644
index 0000000..4fb4312
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n44.wav differ
diff --git a/voices/sapi4-truvoice-male1/n45.wav b/voices/sapi4-truvoice-male1/n45.wav
new file mode 100644
index 0000000..9597cf0
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n45.wav differ
diff --git a/voices/sapi4-truvoice-male1/n46.wav b/voices/sapi4-truvoice-male1/n46.wav
new file mode 100644
index 0000000..3c96d8e
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n46.wav differ
diff --git a/voices/sapi4-truvoice-male1/n47.wav b/voices/sapi4-truvoice-male1/n47.wav
new file mode 100644
index 0000000..817bd32
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n47.wav differ
diff --git a/voices/sapi4-truvoice-male1/n48.wav b/voices/sapi4-truvoice-male1/n48.wav
new file mode 100644
index 0000000..f7d73bb
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n48.wav differ
diff --git a/voices/sapi4-truvoice-male1/n49.wav b/voices/sapi4-truvoice-male1/n49.wav
new file mode 100644
index 0000000..58a0d36
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n49.wav differ
diff --git a/voices/sapi4-truvoice-male1/n5.wav b/voices/sapi4-truvoice-male1/n5.wav
new file mode 100644
index 0000000..7387991
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n5.wav differ
diff --git a/voices/sapi4-truvoice-male1/n50.wav b/voices/sapi4-truvoice-male1/n50.wav
new file mode 100644
index 0000000..3ceb147
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n50.wav differ
diff --git a/voices/sapi4-truvoice-male1/n51.wav b/voices/sapi4-truvoice-male1/n51.wav
new file mode 100644
index 0000000..9c284fa
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n51.wav differ
diff --git a/voices/sapi4-truvoice-male1/n52.wav b/voices/sapi4-truvoice-male1/n52.wav
new file mode 100644
index 0000000..ac359e3
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n52.wav differ
diff --git a/voices/sapi4-truvoice-male1/n53.wav b/voices/sapi4-truvoice-male1/n53.wav
new file mode 100644
index 0000000..b4f7c5c
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n53.wav differ
diff --git a/voices/sapi4-truvoice-male1/n54.wav b/voices/sapi4-truvoice-male1/n54.wav
new file mode 100644
index 0000000..788428c
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n54.wav differ
diff --git a/voices/sapi4-truvoice-male1/n55.wav b/voices/sapi4-truvoice-male1/n55.wav
new file mode 100644
index 0000000..cc07040
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n55.wav differ
diff --git a/voices/sapi4-truvoice-male1/n56.wav b/voices/sapi4-truvoice-male1/n56.wav
new file mode 100644
index 0000000..cecf08d
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n56.wav differ
diff --git a/voices/sapi4-truvoice-male1/n57.wav b/voices/sapi4-truvoice-male1/n57.wav
new file mode 100644
index 0000000..0bb0096
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n57.wav differ
diff --git a/voices/sapi4-truvoice-male1/n58.wav b/voices/sapi4-truvoice-male1/n58.wav
new file mode 100644
index 0000000..d1d857b
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n58.wav differ
diff --git a/voices/sapi4-truvoice-male1/n59.wav b/voices/sapi4-truvoice-male1/n59.wav
new file mode 100644
index 0000000..100179b
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n59.wav differ
diff --git a/voices/sapi4-truvoice-male1/n6.wav b/voices/sapi4-truvoice-male1/n6.wav
new file mode 100644
index 0000000..3cae2c7
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n6.wav differ
diff --git a/voices/sapi4-truvoice-male1/n7.wav b/voices/sapi4-truvoice-male1/n7.wav
new file mode 100644
index 0000000..6c99432
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n7.wav differ
diff --git a/voices/sapi4-truvoice-male1/n8.wav b/voices/sapi4-truvoice-male1/n8.wav
new file mode 100644
index 0000000..c3a66a0
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n8.wav differ
diff --git a/voices/sapi4-truvoice-male1/n9.wav b/voices/sapi4-truvoice-male1/n9.wav
new file mode 100644
index 0000000..a7eb1b7
Binary files /dev/null and b/voices/sapi4-truvoice-male1/n9.wav differ
diff --git a/voices/sapi4-truvoice-male1/noon.wav b/voices/sapi4-truvoice-male1/noon.wav
new file mode 100644
index 0000000..e162d99
Binary files /dev/null and b/voices/sapi4-truvoice-male1/noon.wav differ
diff --git a/voices/sapi4-truvoice-male1/oclock.wav b/voices/sapi4-truvoice-male1/oclock.wav
new file mode 100644
index 0000000..75cb981
Binary files /dev/null and b/voices/sapi4-truvoice-male1/oclock.wav differ
diff --git a/voices/sapi4-truvoice-male1/oh.wav b/voices/sapi4-truvoice-male1/oh.wav
new file mode 100644
index 0000000..6911c40
Binary files /dev/null and b/voices/sapi4-truvoice-male1/oh.wav differ
diff --git a/voices/sapi4-truvoice-male1/phrase.wav b/voices/sapi4-truvoice-male1/phrase.wav
new file mode 100644
index 0000000..025e093
Binary files /dev/null and b/voices/sapi4-truvoice-male1/phrase.wav differ
diff --git a/voices/sapi4-truvoice-male1/pm.wav b/voices/sapi4-truvoice-male1/pm.wav
new file mode 100644
index 0000000..0e3c681
Binary files /dev/null and b/voices/sapi4-truvoice-male1/pm.wav differ
diff --git a/voices/sapi4-truvoice-male1/precisely.wav b/voices/sapi4-truvoice-male1/precisely.wav
new file mode 100644
index 0000000..71636fd
Binary files /dev/null and b/voices/sapi4-truvoice-male1/precisely.wav differ
diff --git a/voices/sapi4-truvoice-male1/s10.wav b/voices/sapi4-truvoice-male1/s10.wav
new file mode 100644
index 0000000..d5af193
Binary files /dev/null and b/voices/sapi4-truvoice-male1/s10.wav differ
diff --git a/voices/sapi4-truvoice-male1/s20.wav b/voices/sapi4-truvoice-male1/s20.wav
new file mode 100644
index 0000000..84aaf64
Binary files /dev/null and b/voices/sapi4-truvoice-male1/s20.wav differ
diff --git a/voices/sapi4-truvoice-male1/s30.wav b/voices/sapi4-truvoice-male1/s30.wav
new file mode 100644
index 0000000..8c5c8ff
Binary files /dev/null and b/voices/sapi4-truvoice-male1/s30.wav differ
diff --git a/voices/sapi4-truvoice-male1/s40.wav b/voices/sapi4-truvoice-male1/s40.wav
new file mode 100644
index 0000000..053b1ae
Binary files /dev/null and b/voices/sapi4-truvoice-male1/s40.wav differ
diff --git a/voices/sapi4-truvoice-male1/s50.wav b/voices/sapi4-truvoice-male1/s50.wav
new file mode 100644
index 0000000..bdc87bb
Binary files /dev/null and b/voices/sapi4-truvoice-male1/s50.wav differ
diff --git a/voices/sapi4-truvoice-male1/voice.conf b/voices/sapi4-truvoice-male1/voice.conf
new file mode 100644
index 0000000..29b9b2d
--- /dev/null
+++ b/voices/sapi4-truvoice-male1/voice.conf
@@ -0,0 +1,16 @@
+; Voice for app_speakingclock (docs/voice-format.md), made by
+; tools/synth_voices.py sapi4:truvoice-male1. The synthesiser belongs to its owners;
+; see NOTICE.md.
+
+[voice]
+name=TruVoice Adult Male #1 (SAPI4)
+description=Lernout & Hauspie TruVoice
+mode=tim
+sequence=phrase+hour+minute+seconds+pips
+period=10
+; no pips.wav: the module makes the pips (1 kHz, the third one marks the time)
+
+[source]
+engine=sapi4
+voice=truvoice-male1
+synthesiser=Microsoft Speech API 4 runtime and voices, spoken by https://www.tetyys.com/SAPI4/