Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos] / ao-tools / ao-view / aoview_flite.c
index bc702b0f4cd29275810a574636176378c9ac4a0a..abcdc491f5ee2d482d0691e17a20a1551ec16663 100644 (file)
@@ -20,7 +20,9 @@
 #include "aoview.h"
 #include <alsa/asoundlib.h>
 
+cst_voice *register_cmu_us_kal16();
 cst_voice *register_cmu_us_kal();
+
 static cst_voice *voice;
 
 static FILE *pipe_write;
@@ -118,7 +120,13 @@ aoview_flite_start(void)
 
        if (!once) {
                flite_init();
+#if HAVE_REGISTER_CMU_US_KAL16
+               voice = register_cmu_us_kal16();
+#else
+#if HAVE_REGISTER_CMU_US_KAL
                voice = register_cmu_us_kal();
+#endif
+#endif
                if (!voice) {
                        perror("register voice");
                        exit(1);