<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 3, 2021 at 4:12 AM Lewis Bergman <<a href="mailto:lewis.bergman@gmail.com">lewis.bergman@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello all. I am pretty new to Freeswitch and have an experimental container<br>
on Proxmox 6.3 Debian 10 to play with. The goal is to get mod_unimrcp<br>
working. To that end, I have mod_tts_commandline (installed from binary<br>
with FusionPBX as part of the default install) listed in modules.conf.xml<br>
/etc/freeswitch/autoload_configs/modules.conf.xml<br>
<!-- Speech Recognition / Text to Speech --><br>
<load module="mod_unimrcp"/><br>
<load module="mod_tts_commandline"/><br>
<load module="mod_flite"/><br>
I have tried it with and without mod_flite enabled.<br>
Mod_tts_commandline refuses to pull a sound file and the debug log seems to<br>
blame mod_sndfile. This is using the example from the mod_tts_commandline<br>
page<br>
<<a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_tts_commandline#mod_tts_commandline-Configuringmod_tts_commandline" rel="noreferrer" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_tts_commandline#mod_tts_commandline-Configuringmod_tts_commandline</a>><br>
as dialplan shows following the debug log output below:<br>
<br>
2021-02-26 15:19:24.713040 [NOTICE] mod_dptools.c:1406 Channel<br>
[sofia/internal/<a href="mailto:102@66.151.243.45" target="_blank">102@66.151.243.45</a>] has been answered<br>
2021-02-26 15:19:24.713040 [DEBUG] switch_channel.c:3865 (sofia/internal/<br>
<a href="mailto:102@66.151.243.45" target="_blank">102@66.151.243.45</a>) Callstate Change RINGING -> ACTIVE<br>
2021-02-26 15:19:24.713040 [DEBUG] sofia.c:7326 Channel sofia/internal/<br>
<a href="mailto:102@66.151.243.45" target="_blank">102@66.151.243.45</a> entering state [completed][200]<br>
EXECUTE [depth=0] sofia/internal/<a href="mailto:102@66.151.243.45" target="_blank">102@66.151.243.45</a><br>
speak(tts_commandline|pico|This is an example of using tts_commandline)<br>
2021-02-26 15:19:24.713040 [DEBUG] switch_ivr_play_say.c:3023 OPEN TTS<br>
tts_commandline<br>
2021-02-26 15:19:24.713040 [DEBUG] switch_ivr_play_say.c:3033 Raw Codec<br>
Activated<br>
2021-02-26 15:19:24.713040 [DEBUG] mod_tts_commandline.c:160 Executing:<br>
echo 'This is an example of using tts_commandline' | text2wave -f 8000 ><br>
'/tmp/0665a30d-2bb8-40fe-b5a6-9625bd58306e.tmp.wav'<br>
2021-02-26 15:19:25.433013 [WARNING] mod_sndfile.c:281 Error Opening File<br>
[/tmp/0665a30d-2bb8-40fe-b5a6-9625bd58306e.tmp.wav] [File contains data in<br>
an unknown format.]<br>
2021-02-26 15:19:25.433013 [ERR] mod_tts_commandline.c:170 Failed to open<br>
file: /tmp/0665a30d-2bb8-40fe-b5a6-9625bd58306e.tmp.wav</blockquote><div><br></div><div>Since your goal is to use mod_unimrcp I think you should not spend your time with mod_tts_commandline.</div><div>Anyway, what do you get when you run these in the bash shell:</div><div><br></div><div>which text2wave<br>echo 'This is an example of using tts_commandline' | text2wave -f 8000 > test.wav<br>file test.wav<br>ls -l test.wav<br></div><div><br></div><div>Did you install festival? (text2wave comes with it)</div><div><br></div><div><br></div><div><br></div></div></div>