<div dir="ltr">If the wav file exists but is 0 size, mod_sndfile would say this:<div>mod_sndfile.c:281 Error Opening File [/tmp/foo.wav] [File contains data in an unknown format.]<br></div><div>So yes, most likely text2wave is not installed.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 3, 2021 at 1:13 AM mayamatakeshi <<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@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"><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" target="_blank">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>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>