Hi, I was trying to run the 'Examples directory lua asr tts' (http://wiki.freeswitch.org/wiki/Examples_directory_lua_asr_tts) in Ubuntu 10.04/32 bits, but I had some problems with the 'session:streamFile()'. If I say something when the prompt is still playing, the audio stucks indefinitely. It seems that the 'break' command isn't doing all its job. I guess that maybe the 'break' is just stop feeding the audio player with new samples, but it is not stopping the player. So, this player keeps reading and playing the same samples continuously ... I really don't know if my guess makes sense and as I don't know C very well, I don't know where to look for a solution in the source code. I Hope you could help me. Thanks, Eduardo -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Lua-ASR-TTS-tp6439449p6439449.... Sent from the freeswitch-users mailing list archive at Nabble.com.
Sorry for the late reply - I missed this one. Are you using the break app or the uuid_break API? Also, are you using the "all" argument? -MC On Sat, Jun 4, 2011 at 8:45 AM, educs13 <educs13@yahoo.com.br> wrote:
Hi,
I was trying to run the 'Examples directory lua asr tts' (http://wiki.freeswitch.org/wiki/Examples_directory_lua_asr_tts) in Ubuntu 10.04/32 bits, but I had some problems with the 'session:streamFile()'.
If I say something when the prompt is still playing, the audio stucks indefinitely. It seems that the 'break' command isn't doing all its job. I guess that maybe the 'break' is just stop feeding the audio player with new samples, but it is not stopping the player. So, this player keeps reading and playing the same samples continuously ...
I really don't know if my guess makes sense and as I don't know C very well, I don't know where to look for a solution in the source code. I Hope you could help me.
Thanks, Eduardo
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Lua-ASR-TTS-tp6439449p6439449.... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi MC, thank you very much! I tried all the following combinations: i) break; ii) break all; iii) uuid_break; iv) uuid_break all; but I always had the same problem... As a "workaround", I changed my script this way: 1) I play the prompt: session:streamFile("/usr/local/freeswitch/sounds/en/us/pizza/GP-DeliveryorTakeout.wav"); 2) I play a short sample of silence. session:streamFile("/home/ubuntu/audio/silence.wav"); With this strategy, if I say something when the prompt is being played, it is stopped and a short sample (duration: ~20 ms) without audio is played. It's not the ideal solution, but, at least, it doesn't stuck. If you have another idea, please tell me. I would like to solve it without "workarounds". Eduardo --- Em seg, 13/6/11, mercutioviz [via freeswitch-users] <ml-node+6471843-2137856909-339117@n2.nabble.com> escreveu: De: mercutioviz [via freeswitch-users] <ml-node+6471843-2137856909-339117@n2.nabble.com> Assunto: Re: Lua ASR TTS Para: "educs13" <educs13@yahoo.com.br> Data: Segunda-feira, 13 de Junho de 2011, 18:14 Sorry for the late reply - I missed this one. Are you using the break app or the uuid_break API? Also, are you using the "all" argument?-MC On Sat, Jun 4, 2011 at 8:45 AM, educs13 <[hidden email]> wrote: Hi, I was trying to run the 'Examples directory lua asr tts' (http://wiki.freeswitch.org/wiki/Examples_directory_lua_asr_tts) in Ubuntu 10.04/32 bits, but I had some problems with the 'session:streamFile()'. If I say something when the prompt is still playing, the audio stucks indefinitely. It seems that the 'break' command isn't doing all its job. I guess that maybe the 'break' is just stop feeding the audio player with new samples, but it is not stopping the player. So, this player keeps reading and playing the same samples continuously ... I really don't know if my guess makes sense and as I don't know C very well, I don't know where to look for a solution in the source code. I Hope you could help me. Thanks, Eduardo -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Lua-ASR-TTS-tp6439449p6439449.... Sent from the freeswitch-users mailing list archive at Nabble.com. _______________________________________________ FreeSWITCH-users mailing list [hidden email] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _______________________________________________ FreeSWITCH-users mailing list [hidden email] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org If you reply to this email, your message will be added to the discussion below: http://freeswitch-users.2379917.n2.nabble.com/Lua-ASR-TTS-tp6439449p6471843.... To unsubscribe from Lua ASR TTS, click here. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Lua-ASR-TTS-tp6439449p6473905.... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (2)
-
educs13
-
Michael Collins