summaryrefslogtreecommitdiffstats
path: root/src/speech.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/speech.c')
-rw-r--r--src/speech.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/speech.c b/src/speech.c
index 993c609..2ce3f12 100644
--- a/src/speech.c
+++ b/src/speech.c
@@ -27,24 +27,24 @@
#include <flite/flite.h>
+cst_voice *register_cmu_us_slt(const char *voxdir);
+
struct speech {
cst_voice *voice;
};
struct speech *
-speech_init(const char *voice)
+speech_init(void)
{
struct speech *speech;
- assert(voice && *voice);
-
speech = calloc(1, sizeof(*speech));
if (speech == NULL) {
return NULL;
}
flite_init();
- speech->voice = flite_voice_select(voice);
+ speech->voice = register_cmu_us_slt(NULL);
if (speech->voice == NULL) {
free(speech);
return NULL;