<div dir="ltr">$PATH might be a thing? :) Try the full path to the binary?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 4, 2021 at 1:36 PM 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">That was exactly it for the record.<br>
#which text2wave<br>
#                         <-- before apt-get install festival<br>
#which text2wave<br>
/usr/bin/text2wave<br>
# echo 'This is an example of using tts_commandline' | text2wave -f<br>
8000 > test.wav<br>
# file test.wav<br>
test.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16<br>
bit, mono 8000 Hz<br>
# ls -l test.wav<br>
-rw-r--r-- 1 root root 60208 Mar  4 06:44 test.wav<br>
And the freeswitch debug log that shows it works:<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|text2wave|This is an example of using<br>
tts_commandline)<br>
2021-03-04 06:59:14.305216 [DEBUG] switch_ivr_play_say.c:3023 OPEN TTS<br>
tts_commandline<br>
2021-03-04 06:59:14.305216 [DEBUG] switch_ivr_play_say.c:3033 Raw<br>
Codec Activated<br>
2021-03-04 06:59:14.305216 [DEBUG] mod_tts_commandline.c:160<br>
Executing: echo 'This is an example of using tts_commandline' |<br>
text2wave -f 8000 ><br>
'/tmp/05e71313-2a4d-48ce-a1e9-84600859112f.tmp.wav'<br>
2021-03-04 06:59:15.545212 [DEBUG] switch_ivr_play_say.c:2741 Speaking<br>
text: This is an example of using tts_commandline<br>
2021-03-04 06:59:15.545212 [DEBUG] sofia.c:7326 Channel<br>
sofia/internal/<a href="mailto:102@66.151.243.45" target="_blank">102@66.151.243.45</a> entering state [ready][200]<br>
2021-03-04 06:59:15.565210 [DEBUG] switch_rtp.c:7759 Correct audio<br>
ip/port confirmed.<br>
2021-03-04 06:59:19.305225 [DEBUG] switch_ivr_play_say.c:2905 done speaking text<br>
<br>
Thanks for the help.<br>
The reason I tried to start with tts_commandine is I have been<br>
struggling for a couple of weeks to get MRCP to produce something<br>
useful so I thought I would try something simpler and I could swear<br>
mod_tts_commandline was listed as a requirement. But it could have<br>
been on something else as I have been pouring through every document I<br>
can find to figure this out and I probably got confused.<br>
Thanks again!<br>
<br>
On Tue, Mar 2, 2021 at 6:36 PM mayamatakeshi <<a href="mailto:mayamatakeshi@gmail.com" target="_blank">mayamatakeshi@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> 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>
>><br>
>> 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<br>
><br>
><br>
> Since your goal is to use mod_unimrcp I think you should not spend your time with mod_tts_commandline.<br>
> Anyway, what do you get when you run these in the bash shell:<br>
><br>
> 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>
><br>
> Did you install festival? (text2wave comes with it)<br>
><br>
><br>
><br>
> _________________________________________________________________________<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><br>
<br>
<br>
<br>
-- <br>
Lewis Bergman<br>
325-439-0533 Cell<br>
<br>
_________________________________________________________________________<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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><font color="#000000"><br></font></div><div style="font-size:12.8px"><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Brian West | Co-founder and Developer</font></span></p><p style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Need Commercial support? email <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a> </font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">FreeSWITCH Solutions | <a href="https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g" style="color:rgb(17,85,204)" target="_blank">17345 Civic Drive #2531 Brookfield, WI 53045</a></font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Email: </span><span style="color:rgb(17,85,204);font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:brian@freeswitch.com" target="_blank">brian@freeswitch.com</a></span></font></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Mobile: <span title="Call with Google Voice">918-424-9378</span></font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Website: </span><a href="https://www.freeswitch.com/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">https://www.FreeSWITCH.com</span></a></font></p><p dir="ltr" style="font-size:12.8px;line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="background-color:transparent;font-size:9pt;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><a href="https://www.facebook.com/freeswitch" target="_blank"><img alt="https://www.facebook.com/signalwireinc?src=email" src="https://lh6.googleusercontent.com/AYfRoSNaDNtMPRMevPn_GqcVEMd5NDRFi0GlluGUWzV6I5TAY_3T2-Tt0IuIXeUtEdYsgNsM8DOYKRKhjmrG_-n2Ga-LCnoNk46sO8VyEma1sBFYdiGJcLRUvkrD1CYHN79qimeg" width="31" height="31" style="border: none;"></a> </span><span style="background-color:transparent;font-size:9pt;font-family:Tahoma;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><a href="https://twitter.com/freeswitch" target="_blank"><img alt="https://twitter.com/freeswitch" src="https://lh3.googleusercontent.com/W4SqXyybH2qdAozvtoKjcz736qOjk9LHDwldvs1ahc-WVU0putVMSsUH474KDrJ32jsqi6JDjyUWxqeEkN5I1xSlC5ShYrd1b8NIMUkDzDrtbWQfa6A_90UcygqesBtRLgeFirKa" width="31" height="31" style="border: none;"></a></span><br></p></div></div></div></div></div></div></div></div></div></div></div></div></div>