[Freeswitch-users] cepstral problem

Michael Collins msc at freeswitch.org
Mon Dec 13 22:58:48 MSK 2010


Looking at the source code it seems that this is not currently possible. One
might be able to modify the code to do this but it would take a little bit
of time. You might want to ask Mathieu Parent (tts_commandline author) if he
has any suggestions.

Another option, depending upon what the circumstances are, is you could use
the "system" command to launch swift -f and record it to a wav, and then use
"playback" to play the wav file.

-MC

On Sat, Dec 11, 2010 at 12:04 AM, phone.bytes <phone.bytes at gmail.com> wrote:

>  okay MC, mod_tts_commandline has run for a several days without a
> problem.  Good.
>
> However, now we are trying to get this to speak from a text file instead of
> putting text on the command line.
> Cepstral Swift has a -f option to do this, but it does not work here.
>
> I have looked through the source, and am wondering if this is not supported
> in this mod.
>
> Here is a partial trace that I think supports my conclusions below.
>
> EXECUTE FreeTDM/1:1/7878030 speak(tts_commandline|Callie|-f/tmp/test.txt)
> 2010-12-11 00:26:58.683522 [DEBUG] switch_ivr_play_say.c:2237 OPEN TTS
> tts_commandline
> 2010-12-11 00:26:58.683522 [DEBUG] switch_ivr_play_say.c:2246 Raw Codec
> Activated
> 2010-12-11 00:26:58.683522 [DEBUG] mod_tts_commandline.c:147 Executing:
> swift -p audio/sampling-rate=8000 -n 'Callie' '-f/tmp/test.txt'  -o
> '/tmp/bd5bb8db-ffc2-4830-a971-24a1454c725c.tmp.wav'
> 2010-12-11 00:26:58.696525 [ERR] mod_sndfile.c:194 Error Opening File
> [/tmp/bd5bb8db-ffc2-4830-a971-24a1454c725c.tmp.wav] [System error : No such
> file or directory.]
> 2010-12-11 00:26:58.696525 [ERR] mod_tts_commandline.c:157 Failed to open
> file: /tmp/bd5bb8db-ffc2-4830-a971-24a1454c725c.tmp.wav
> 2010-12-11 00:26:58.696525 [DEBUG] switch_ivr_play_say.c:1935 Speaking
> text: -f/tmp/test.txt
> 2010-12-11 00:26:59.097509 [DEBUG] switch_ivr_play_say.c:2127 done speaking
> text
>
> It seems to almost build the swift command correctly.  However, the -f
> options is inside the single quotes, instead of outside of them like the -o
> (output file) is.
>
> I don't think it is finding the .txt file, as the log later shows that it
> is trying to speak the filename including the -f option, instead of the
> contents of the file.
>
> What do you think?
>
> Thanks
>
>
>
>
> On 12/7/2010 2:17 PM, Michael Collins wrote:
>
> Can you try the mod_tts_commandline way of doing it? The wiki talks about
> using Cepstral IIRC.
> -MC
>
> On Tue, Dec 7, 2010 at 1:12 PM, Phone <phone.bytes at gmail.com> wrote:
>
>> Just wondering if you have had any luck in resolving this issue.
>>
>> We are running Cent 5.5 on FreeSWITCH Version 1.0.head (git-8825b6e
>> 2010-11-28 17-15-39 -0500) with Cepstral 5.1 with the Callie voice.
>>
>> We have good audio for a short period of time, then suddenly the audio
>> is gone.  Watching the logs, it show that it is trying to play the
>> correct TTS, but it is silent.
>>
>> We have tried to unload and reload mod_cepstral, but the only way we
>> have been able to restore the audio is with a FreeSWITCH restart.
>>
>> These voices sound good, but with these issues, it is really not useable.
>>
>> Any Ideas?  Thanks
>>
>>
>>
>>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101213/45e0ca9a/attachment.html 


More information about the FreeSWITCH-users mailing list