Play of already encoded G729 audio files

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Play of already encoded G729 audio files

Tronch
Hi.

I'm using Adhearsion 2.5.3 with Freeswitch (latest master).

In order to avoid transcoding (and cpu load), I would like to pre-encode my wav files to G729 codec.

I encoded the files using the tool provided with freeswitch (fs_encode).

Using a Freeswitch dial plan application I hear the file correctly (it has a G729 extension).

In Adhearsion, when I call the controller play method, I hear a corrupted audio file.

It seems that Adhearsion, via ssml, is saying to Freeswitch that the audio file has a different encoding (I suspect wav) than G729.

Note: if I call the play method with the wav file (not the encoded one), the file is correctly encoded at runtime (which is what I want to avoid).

What am I doing wrong? Or what I want to do is not possible?

Thank you for your help,
Matt.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Play of already encoded G729 audio files

Ben Klang-2
Adhearsion doesn’t tell FreeSWITCH anything about the encoding of the audio file, it simply passes a path to that file.

Can you provide TRACE level logs where the problem occurs?

/BAK/
-- 
Ben Klang
Principal/Technology Strategist, Mojo Lingo
+1.404.475.4841

Mojo Lingo -- Voice applications that work like magic
Twitter: @MojoLingo

Il giorno Jun 15, 2014, alle ore 1:06 PM, Tronch <[hidden email]> ha scritto:

Hi.

I'm using Adhearsion 2.5.3 with Freeswitch (latest master).

In order to avoid transcoding (and cpu load), I would like to pre-encode my wav files to G729 codec.

I encoded the files using the tool provided with freeswitch (fs_encode).

Using a Freeswitch dial plan application I hear the file correctly (it has a G729 extension).

In Adhearsion, when I call the controller play method, I hear a corrupted audio file.

It seems that Adhearsion, via ssml, is saying to Freeswitch that the audio file has a different encoding (I suspect wav) than G729.

Note: if I call the play method with the wav file (not the encoded one), the file is correctly encoded at runtime (which is what I want to avoid).

What am I doing wrong? Or what I want to do is not possible?

Thank you for your help,
Matt.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.


signature.asc (858 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Play of already encoded G729 audio files

Tronch
Hi Ben.

Here it's the relevant log part:

[2014-06-15 12:20:32.417] DEBUG Adhearsion::Call: e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1: Executing command #<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, request_id="10d4e90a-86cd-461e-acf0-c90696fa11f0", voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, url=nil, content_type="application/ssml+xml", value=<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>>]>
[2014-06-15 12:20:32.421] TRACE Punchblock::Connection::XMPP: SENDING: (/usr/local/rvm/gems/ruby-1.9.3-p547/gems/blather-1.0.0/lib/blather/client/client.rb:149:in `write') <iq type="set" to="e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <output xmlns="urn:xmpp:rayo:output:1">
    <document content-type="application/ssml+xml"><![CDATA[<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>]]></document>
  </output>
</iq>
[2014-06-15 12:20:32.443] TRACE Punchblock::Connection::XMPP: RECEIVING (iq) <iq from="e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1" to="usera@127.0.0.1" type="result" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <ref xmlns="urn:xmpp:rayo:1" uri="xmpp:e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1/output-1"/>
</iq>

As you can see from the last two rows, the play lasts for only few milliseconds but the audio file is several seconds long.
Could it be a bug of Freeswitch mod_ssml?

Thank you,
Matt.



Adhearsion doesn’t tell FreeSWITCH anything about the encoding of the audio file, it simply passes a path to that file.

Can you provide TRACE level logs where the problem occurs?

/BAK/
-- 
Ben Klang
Principal/Technology Strategist, Mojo Lingo
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="nfy025gwJLAJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">bkl...@...
+1.404.475.4841

Mojo Lingo -- Voice applications that work like magic
<a href="http://mojolingo.com/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmojolingo.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEdz1VI9Wu7PPmqtzifmF6XsODIog';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmojolingo.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEdz1VI9Wu7PPmqtzifmF6XsODIog';return true;">http://mojolingo.com
Twitter: @MojoLingo


Hi.

I'm using Adhearsion 2.5.3 with Freeswitch (latest master).

In order to avoid transcoding (and cpu load), I would like to pre-encode my wav files to G729 codec.

I encoded the files using the tool provided with freeswitch (fs_encode).

Using a Freeswitch dial plan application I hear the file correctly (it has a G729 extension).

In Adhearsion, when I call the controller play method, I hear a corrupted audio file.

It seems that Adhearsion, via ssml, is saying to Freeswitch that the audio file has a different encoding (I suspect wav) than G729.

Note: if I call the play method with the wav file (not the encoded one), the file is correctly encoded at runtime (which is what I want to avoid).

What am I doing wrong? Or what I want to do is not possible?

Thank you for your help,
Matt.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="nfy025gwJLAJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Play of already encoded G729 audio files

James Le Cuirot
On Sun, 15 Jun 2014 10:36:46 -0700 (PDT)
Tronch <[hidden email]> wrote:

>   <output xmlns="urn:xmpp:rayo:output:1">
>     <document content-type="application/ssml+xml"><![CDATA[<speak
> xmlns="http://www.w3.org/2001/10/synthesis" version="1.0"
> xml:lang="en-US"> <audio src="welcome.G729"/> </speak>]]></document>
>   </output>

Could it simply be that the file is actually named welcome.g729 and not
welcome.G729? Most filesystems are case-sensitive.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Play of already encoded G729 audio files

Ben Langfeld
In reply to this post by Tronch
It would additionally be helpful to provide logs from FreeSWITCH. These will be more informative than Adhearsion logs.

Em 15/06/2014, às 14:36, Tronch <[hidden email]> escreveu:

Hi Ben.

Here it's the relevant log part:

[2014-06-15 12:20:32.417] DEBUG Adhearsion::Call: [hidden email]: Executing command #<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, request_id="10d4e90a-86cd-461e-acf0-c90696fa11f0", voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, url=nil, content_type="application/ssml+xml", value=<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>>]>
[2014-06-15 12:20:32.421] TRACE Punchblock::Connection::XMPP: SENDING: (/usr/local/rvm/gems/ruby-1.9.3-p547/gems/blather-1.0.0/lib/blather/client/client.rb:149:in `write') <iq type="set" to="[hidden email]" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <output xmlns="urn:xmpp:rayo:output:1">
    <document content-type="application/ssml+xml"><![CDATA[<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>]]></document>
  </output>
</iq>
[2014-06-15 12:20:32.443] TRACE Punchblock::Connection::XMPP: RECEIVING (iq) <iq from="[hidden email]" to="[hidden email]" type="result" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <ref xmlns="urn:xmpp:rayo:1" uri="xmpp:e2625604-[hidden email]/output-1"/>
</iq>

As you can see from the last two rows, the play lasts for only few milliseconds but the audio file is several seconds long.
Could it be a bug of Freeswitch mod_ssml?

Thank you,
Matt.



Adhearsion doesn’t tell FreeSWITCH anything about the encoding of the audio file, it simply passes a path to that file.

Can you provide TRACE level logs where the problem occurs?

/BAK/
-- 
Ben Klang
Principal/Technology Strategist, Mojo Lingo
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="nfy025gwJLAJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">bkl...@...
+1.404.475.4841

Mojo Lingo -- Voice applications that work like magic
<a href="http://mojolingo.com/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmojolingo.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEdz1VI9Wu7PPmqtzifmF6XsODIog';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmojolingo.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEdz1VI9Wu7PPmqtzifmF6XsODIog';return true;">http://mojolingo.com
Twitter: @MojoLingo


Hi.

I'm using Adhearsion 2.5.3 with Freeswitch (latest master).

In order to avoid transcoding (and cpu load), I would like to pre-encode my wav files to G729 codec.

I encoded the files using the tool provided with freeswitch (fs_encode).

Using a Freeswitch dial plan application I hear the file correctly (it has a G729 extension).

In Adhearsion, when I call the controller play method, I hear a corrupted audio file.

It seems that Adhearsion, via ssml, is saying to Freeswitch that the audio file has a different encoding (I suspect wav) than G729.

Note: if I call the play method with the wav file (not the encoded one), the file is correctly encoded at runtime (which is what I want to avoid).

What am I doing wrong? Or what I want to do is not possible?

Thank you for your help,
Matt.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="nfy025gwJLAJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Play of already encoded G729 audio files

Tronch
Hi Ben.

Here are the freeswitch logs:

2014-06-15 12:55:59.531623 [DEBUG] xmpp_streams.c:190 usera@127.0.0.1, 127.0.0.1:52319, c2s_in RECV <iq type="set" to="c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1" id="40fc0650-562e-4ac6-9a3f-ae509b5c187a"><output xmlns="urn:xmpp:rayo:output:1"><document content-type="application/ssml+xml"><![CDATA[<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>]]></document></output></iq>
2014-06-15 12:55:59.531623 [DEBUG] xmpp_streams.c:1058 usera@127.0.0.1, 127.0.0.1:52319, state = READY, node type = NODE_NORMAL
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3858 Lock usera@127.0.0.1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3054 usera@127.0.0.1, recv iq, availability = ONLINE
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3929 Unlock usera@127.0.0.1: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:771 Locate (jid) c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3057 Deliver usera@127.0.0.1 => c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1 <iq type='set' to='c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a' from='usera@127.0.0.1'><output xmlns='urn:xmpp:rayo:output:1'><document content-type='application/ssml+xml'>&lt;speak xmlns=&quot;http://www.w3.org/2001/10/synthesis&quot; version=&quot;1.0&quot; xml:lang=&quot;en-US&quot;&gt;
  &lt;audio src=&quot;welcome.G729&quot;/&gt;
&lt;/speak&gt;</document></output></iq>
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:652 c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1, looking for CALL::set:urn:xmpp:rayo:output:1:output command
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1806 c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1, executing command
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:71 Init c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1435 Lock c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1: ref count = 3
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:771 Locate (jid) usera@127.0.0.1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] rayo_components.c:62 Deliver c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1 => usera@127.0.0.1 <iq from='c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1' to='usera@127.0.0.1' type='result' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a'><ref xmlns='urn:xmpp:rayo:1' uri='xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1'/></iq>
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [id]=[c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1]
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [session]=[c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244]
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:778 Unlock usera@127.0.0.1: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [pause]=[false]
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:689 Got path rayo://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:498 Got path c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:500 Locate (id) c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:812 Open: <speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:738 Skipping empty tts
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:597 Adding <audio>: "welcome.G729"
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:738 Skipping empty tts
2014-06-15 12:55:59.531623 [INFO] mod_native_file.c:94 Opening File [welcome.G729] 8000hz
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:713 Create audio buffer
2014-06-15 12:55:59.531623 [DEBUG] switch_core_media_bug.c:532 Attaching BUG to sofia/internal/1122334455
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:115 Unlock c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1808 c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1, done executing command
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:778 Unlock c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1: ref count = 2
2014-06-15 12:55:59.551666 [DEBUG] xmpp_streams.c:190 usera@127.0.0.1, 127.0.0.1:52319, c2s_in SEND <iq from='c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1' to='usera@127.0.0.1' type='result' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a'><ref xmlns='urn:xmpp:rayo:1' uri='xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1'/></iq>
2014-06-15 12:55:59.591630 [DEBUG] switch_rtp.c:5574 Correct ip/port confirmed.
2014-06-15 12:55:59.591630 [DEBUG] switch_core_io.c:526 Setting BUG Codec G729:18
2014-06-15 12:56:00.391623 [INFO] rayo_output_component.c:414 Done playing
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:117 Unlock c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 0
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:118 Destroy c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1 requested: ref_count = 0
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:118 Destroying c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:56:00.391623 [DEBUG] mod_rayo.c:1410 Unlock c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1: ref count = 1

Thank you,
Matt.



It would additionally be helpful to provide logs from FreeSWITCH. These will be more informative than Adhearsion logs.

Em 15/06/2014, às 14:36, Tronch <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="nKnPr-emASYJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">matteo.t...@...> escreveu:

Hi Ben.

Here it's the relevant log part:

[2014-06-15 12:20:32.417] DEBUG Adhearsion::Call: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="nKnPr-emASYJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1: Executing command #<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, request_id="10d4e90a-86cd-461e-acf0-c90696fa11f0", voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, url=nil, content_type="application/ssml+xml", value=<speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;">http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>>]>
[2014-06-15 12:20:32.421] TRACE Punchblock::Connection::XMPP: SENDING: (/usr/local/rvm/gems/ruby-1.9.3-p547/gems/blather-1.0.0/lib/blather/client/client.rb:149:in `write') <iq type="set" to="<a href="javascript:" target="_blank" gdf-obfuscated-mailto="nKnPr-emASYJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <output xmlns="urn:xmpp:rayo:output:1">
    <document content-type="application/ssml+xml"><![CDATA[<speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;">http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>]]></document>
  </output>
</iq>
[2014-06-15 12:20:32.443] TRACE Punchblock::Connection::XMPP: RECEIVING (iq) <iq from="<a href="javascript:" target="_blank" gdf-obfuscated-mailto="nKnPr-emASYJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1" to="<a href="javascript:" target="_blank" gdf-obfuscated-mailto="nKnPr-emASYJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1" type="result" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <ref xmlns="urn:xmpp:rayo:1" uri="xmpp:e2625604-<a href="javascript:" target="_blank" gdf-obfuscated-mailto="nKnPr-emASYJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">edcd-4da0-b1bf-9d2f97293310@127.0.0.1/output-1"/>
</iq>

As you can see from the last two rows, the play lasts for only few milliseconds but the audio file is several seconds long.
Could it be a bug of Freeswitch mod_ssml?

Thank you,
Matt.



Adhearsion doesn’t tell FreeSWITCH anything about the encoding of the audio file, it simply passes a path to that file.

Can you provide TRACE level logs where the problem occurs?

/BAK/
-- 
Ben Klang
Principal/Technology Strategist, Mojo Lingo
+1.404.475.4841

Mojo Lingo -- Voice applications that work like magic
<a href="http://mojolingo.com/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmojolingo.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEdz1VI9Wu7PPmqtzifmF6XsODIog';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmojolingo.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEdz1VI9Wu7PPmqtzifmF6XsODIog';return true;">http://mojolingo.com
Twitter: @MojoLingo


Hi.

I'm using Adhearsion 2.5.3 with Freeswitch (latest master).

In order to avoid transcoding (and cpu load), I would like to pre-encode my wav files to G729 codec.

I encoded the files using the tool provided with freeswitch (fs_encode).

Using a Freeswitch dial plan application I hear the file correctly (it has a G729 extension).

In Adhearsion, when I call the controller play method, I hear a corrupted audio file.

It seems that Adhearsion, via ssml, is saying to Freeswitch that the audio file has a different encoding (I suspect wav) than G729.

Note: if I call the play method with the wav file (not the encoded one), the file is correctly encoded at runtime (which is what I want to avoid).

What am I doing wrong? Or what I want to do is not possible?

Thank you for your help,
Matt.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="nKnPr-emASYJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Play of already encoded G729 audio files

Ben Langfeld-2
Nothing looks particularly wrong in that log. I'd suggest you file a ticket against FreeSWITCH mod_rayo to query it: http://jira.freeswitch.org


On 16 June 2014 05:48, Tronch <[hidden email]> wrote:
Hi Ben.

Here are the freeswitch logs:

2014-06-15 12:55:59.531623 [DEBUG] xmpp_streams.c:190 [hidden email], 127.0.0.1:52319, c2s_in RECV <iq type="set" to="[hidden email]" id="40fc0650-562e-4ac6-9a3f-ae509b5c187a"><output xmlns="urn:xmpp:rayo:output:1"><document content-type="application/ssml+xml"><![CDATA[<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>]]></document></output></iq>
2014-06-15 12:55:59.531623 [DEBUG] xmpp_streams.c:1058 [hidden email], 127.0.0.1:52319, state = READY, node type = NODE_NORMAL
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3858 Lock [hidden email]: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3054 [hidden email], recv iq, availability = ONLINE
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3929 Unlock [hidden email]: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:771 Locate (jid) [hidden email]: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3057 Deliver [hidden email] => [hidden email] <iq type='set' to='[hidden email]' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a' from='[hidden email]'><output xmlns='urn:xmpp:rayo:output:1'><document content-type='application/ssml+xml'>&lt;speak xmlns=&quot;http://www.w3.org/2001/10/synthesis&quot; version=&quot;1.0&quot; xml:lang=&quot;en-US&quot;&gt;
  &lt;audio src=&quot;welcome.G729&quot;/&gt;
&lt;/speak&gt;</document></output></iq>
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:652 [hidden email], looking for CALL::set:urn:xmpp:rayo:output:1:output command
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1806 [hidden email], executing command
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:71 Init c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1435 Lock [hidden email]: ref count = 3
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:771 Locate (jid) [hidden email]: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] rayo_components.c:62 Deliver c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1 => [hidden email] <iq from='[hidden email]' to='[hidden email]' type='result' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a'><ref xmlns='urn:xmpp:rayo:1' uri='xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1'/></iq>
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [id]=[c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1]
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [session]=[c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244]
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:778 Unlock [hidden email]: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [pause]=[false]
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:689 Got path rayo://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:498 Got path c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:500 Locate (id) c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:812 Open: <speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:738 Skipping empty tts
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:597 Adding <audio>: "welcome.G729"
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:738 Skipping empty tts
2014-06-15 12:55:59.531623 [INFO] mod_native_file.c:94 Opening File [welcome.G729] 8000hz
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:713 Create audio buffer
2014-06-15 12:55:59.531623 [DEBUG] switch_core_media_bug.c:532 Attaching BUG to sofia/internal/<a href="tel:1122334455" value="+551122334455" target="_blank">1122334455
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:115 Unlock c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1808 [hidden email], done executing command
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:778 Unlock [hidden email]: ref count = 2
2014-06-15 12:55:59.551666 [DEBUG] xmpp_streams.c:190 [hidden email], 127.0.0.1:52319, c2s_in SEND <iq from='[hidden email]' to='[hidden email]' type='result' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a'><ref xmlns='urn:xmpp:rayo:1' uri='xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1'/></iq>
2014-06-15 12:55:59.591630 [DEBUG] switch_rtp.c:5574 Correct ip/port confirmed.
2014-06-15 12:55:59.591630 [DEBUG] switch_core_io.c:526 Setting BUG Codec G729:18
2014-06-15 12:56:00.391623 [INFO] rayo_output_component.c:414 Done playing
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:117 Unlock c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 0
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:118 Destroy c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1 requested: ref_count = 0
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:118 Destroying c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:56:00.391623 [DEBUG] mod_rayo.c:1410 Unlock [hidden email]: ref count = 1

Thank you,
Matt.



It would additionally be helpful to provide logs from FreeSWITCH. These will be more informative than Adhearsion logs.

Em 15/06/2014, às 14:36, Tronch <[hidden email]> escreveu:

Hi Ben.

Here it's the relevant log part:

[2014-06-15 12:20:32.417] DEBUG Adhearsion::Call: e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1: Executing command #<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, request_id="10d4e90a-86cd-461e-acf0-c90696fa11f0", voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, url=nil, content_type="application/ssml+xml", value=<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>>]>
[2014-06-15 12:20:32.421] TRACE Punchblock::Connection::XMPP: SENDING: (/usr/local/rvm/gems/ruby-1.9.3-p547/gems/blather-1.0.0/lib/blather/client/client.rb:149:in `write') <iq type="set" to="e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <output xmlns="urn:xmpp:rayo:output:1">
    <document content-type="application/ssml+xml"><![CDATA[<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>]]></document>
  </output>
</iq>
[2014-06-15 12:20:32.443] TRACE Punchblock::Connection::XMPP: RECEIVING (iq) <iq from="e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1" to="us...@127.0.0.1" type="result" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <ref xmlns="urn:xmpp:rayo:1" uri="xmpp:e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1/output-1"/>
</iq>

As you can see from the last two rows, the play lasts for only few milliseconds but the audio file is several seconds long.
Could it be a bug of Freeswitch mod_ssml?

Thank you,
Matt.



Adhearsion doesn’t tell FreeSWITCH anything about the encoding of the audio file, it simply passes a path to that file.

Can you provide TRACE level logs where the problem occurs?

/BAK/
-- 
Ben Klang
Principal/Technology Strategist, Mojo Lingo
<a href="tel:%2B1.404.475.4841" value="+14044754841" target="_blank">+1.404.475.4841

Mojo Lingo -- Voice applications that work like magic
Twitter: @MojoLingo


Hi.

I'm using Adhearsion 2.5.3 with Freeswitch (latest master).

In order to avoid transcoding (and cpu load), I would like to pre-encode my wav files to G729 codec.

I encoded the files using the tool provided with freeswitch (fs_encode).

Using a Freeswitch dial plan application I hear the file correctly (it has a G729 extension).

In Adhearsion, when I call the controller play method, I hear a corrupted audio file.

It seems that Adhearsion, via ssml, is saying to Freeswitch that the audio file has a different encoding (I suspect wav) than G729.

Note: if I call the play method with the wav file (not the encoded one), the file is correctly encoded at runtime (which is what I want to avoid).

What am I doing wrong? Or what I want to do is not possible?

Thank you for your help,
Matt.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Play of already encoded G729 audio files

Christopher Rienzo
There's probably a bug in mod_rayo / native file playback since it's something I've never used.  Should be simple enough to fix, just open a ticket as Ben recommended so I don't forget.



On Mon, Jun 16, 2014 at 6:41 AM, Ben Langfeld <[hidden email]> wrote:
Nothing looks particularly wrong in that log. I'd suggest you file a ticket against FreeSWITCH mod_rayo to query it: http://jira.freeswitch.org


On 16 June 2014 05:48, Tronch <[hidden email]> wrote:
Hi Ben.

Here are the freeswitch logs:

2014-06-15 12:55:59.531623 [DEBUG] xmpp_streams.c:190 [hidden email], 127.0.0.1:52319, c2s_in RECV <iq type="set" to="[hidden email]" id="40fc0650-562e-4ac6-9a3f-ae509b5c187a"><output xmlns="urn:xmpp:rayo:output:1"><document content-type="application/ssml+xml"><![CDATA[<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>]]></document></output></iq>
2014-06-15 12:55:59.531623 [DEBUG] xmpp_streams.c:1058 [hidden email], 127.0.0.1:52319, state = READY, node type = NODE_NORMAL
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3858 Lock [hidden email]: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3054 [hidden email], recv iq, availability = ONLINE
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3929 Unlock [hidden email]: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:771 Locate (jid) [hidden email]: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3057 Deliver [hidden email] => [hidden email] <iq type='set' to='[hidden email]' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a' from='[hidden email]'><output xmlns='urn:xmpp:rayo:output:1'><document content-type='application/ssml+xml'>&lt;speak xmlns=&quot;http://www.w3.org/2001/10/synthesis&quot; version=&quot;1.0&quot; xml:lang=&quot;en-US&quot;&gt;
  &lt;audio src=&quot;welcome.G729&quot;/&gt;
&lt;/speak&gt;</document></output></iq>
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:652 [hidden email], looking for CALL::set:urn:xmpp:rayo:output:1:output command
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1806 [hidden email], executing command
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:71 Init c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1435 Lock [hidden email]: ref count = 3
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:771 Locate (jid) [hidden email]: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] rayo_components.c:62 Deliver c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1 => [hidden email] <iq from='[hidden email]' to='[hidden email]' type='result' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a'><ref xmlns='urn:xmpp:rayo:1' uri='xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1'/></iq>
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [id]=[c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1]
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [session]=[c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244]
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:778 Unlock [hidden email]: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [pause]=[false]
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:689 Got path rayo://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:498 Got path c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:500 Locate (id) c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:812 Open: <speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:738 Skipping empty tts
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:597 Adding <audio>: "welcome.G729"
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:738 Skipping empty tts
2014-06-15 12:55:59.531623 [INFO] mod_native_file.c:94 Opening File [welcome.G729] 8000hz
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:713 Create audio buffer
2014-06-15 12:55:59.531623 [DEBUG] switch_core_media_bug.c:532 Attaching BUG to sofia/internal/<a href="tel:1122334455" value="+551122334455" target="_blank">1122334455
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:115 Unlock c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1808 [hidden email], done executing command
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:778 Unlock [hidden email]: ref count = 2
2014-06-15 12:55:59.551666 [DEBUG] xmpp_streams.c:190 [hidden email], 127.0.0.1:52319, c2s_in SEND <iq from='[hidden email]' to='[hidden email]' type='result' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a'><ref xmlns='urn:xmpp:rayo:1' uri='xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1'/></iq>
2014-06-15 12:55:59.591630 [DEBUG] switch_rtp.c:5574 Correct ip/port confirmed.
2014-06-15 12:55:59.591630 [DEBUG] switch_core_io.c:526 Setting BUG Codec G729:18
2014-06-15 12:56:00.391623 [INFO] rayo_output_component.c:414 Done playing
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:117 Unlock c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 0
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:118 Destroy c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1 requested: ref_count = 0
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:118 Destroying c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:56:00.391623 [DEBUG] mod_rayo.c:1410 Unlock [hidden email]: ref count = 1

Thank you,
Matt.



It would additionally be helpful to provide logs from FreeSWITCH. These will be more informative than Adhearsion logs.

Em 15/06/2014, às 14:36, Tronch <[hidden email]> escreveu:

Hi Ben.

Here it's the relevant log part:

[2014-06-15 12:20:32.417] DEBUG Adhearsion::Call: e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1: Executing command #<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, request_id="10d4e90a-86cd-461e-acf0-c90696fa11f0", voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, url=nil, content_type="application/ssml+xml", value=<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>>]>
[2014-06-15 12:20:32.421] TRACE Punchblock::Connection::XMPP: SENDING: (/usr/local/rvm/gems/ruby-1.9.3-p547/gems/blather-1.0.0/lib/blather/client/client.rb:149:in `write') <iq type="set" to="e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <output xmlns="urn:xmpp:rayo:output:1">
    <document content-type="application/ssml+xml"><![CDATA[<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>]]></document>
  </output>
</iq>
[2014-06-15 12:20:32.443] TRACE Punchblock::Connection::XMPP: RECEIVING (iq) <iq from="e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1" to="us...@127.0.0.1" type="result" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <ref xmlns="urn:xmpp:rayo:1" uri="xmpp:e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1/output-1"/>
</iq>

As you can see from the last two rows, the play lasts for only few milliseconds but the audio file is several seconds long.
Could it be a bug of Freeswitch mod_ssml?

Thank you,
Matt.



Adhearsion doesn’t tell FreeSWITCH anything about the encoding of the audio file, it simply passes a path to that file.

Can you provide TRACE level logs where the problem occurs?

/BAK/
-- 
Ben Klang
Principal/Technology Strategist, Mojo Lingo
<a href="tel:%2B1.404.475.4841" value="+14044754841" target="_blank">+1.404.475.4841

Mojo Lingo -- Voice applications that work like magic
Twitter: @MojoLingo


Hi.

I'm using Adhearsion 2.5.3 with Freeswitch (latest master).

In order to avoid transcoding (and cpu load), I would like to pre-encode my wav files to G729 codec.

I encoded the files using the tool provided with freeswitch (fs_encode).

Using a Freeswitch dial plan application I hear the file correctly (it has a G729 extension).

In Adhearsion, when I call the controller play method, I hear a corrupted audio file.

It seems that Adhearsion, via ssml, is saying to Freeswitch that the audio file has a different encoding (I suspect wav) than G729.

Note: if I call the play method with the wav file (not the encoded one), the file is correctly encoded at runtime (which is what I want to avoid).

What am I doing wrong? Or what I want to do is not possible?

Thank you for your help,
Matt.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Play of already encoded G729 audio files

Tronch

Hi Christopher.

I opened ticket number FS-6598.

Thank you
Matt.


There's probably a bug in mod_rayo / native file playback since it's something I've never used.  Should be simple enough to fix, just open a ticket as Ben recommended so I don't forget.



On Mon, Jun 16, 2014 at 6:41 AM, Ben Langfeld <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">b...@...> wrote:
Nothing looks particularly wrong in that log. I'd suggest you file a ticket against FreeSWITCH mod_rayo to query it: <a href="http://jira.freeswitch.org" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fjira.freeswitch.org\46sa\75D\46sntz\0751\46usg\75AFQjCNEOJYAz1ch1IiZ1qR3DyAeiLQZHtw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fjira.freeswitch.org\46sa\75D\46sntz\0751\46usg\75AFQjCNEOJYAz1ch1IiZ1qR3DyAeiLQZHtw';return true;">http://jira.freeswitch.org


On 16 June 2014 05:48, Tronch <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">matteo.t...@...> wrote:
Hi Ben.

Here are the freeswitch logs:

2014-06-15 12:55:59.531623 [DEBUG] xmpp_streams.c:190 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1, <a href="http://127.0.0.1:52319" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F127.0.0.1%3A52319\46sa\75D\46sntz\0751\46usg\75AFQjCNFdLFVpJsKqN7fQAV_fmW4QGilgOA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F127.0.0.1%3A52319\46sa\75D\46sntz\0751\46usg\75AFQjCNFdLFVpJsKqN7fQAV_fmW4QGilgOA';return true;">127.0.0.1:52319, c2s_in RECV <iq type="set" to="<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1" id="40fc0650-562e-4ac6-9a3f-ae509b5c187a"><output xmlns="urn:xmpp:rayo:output:1"><document content-type="application/ssml+xml"><![CDATA[<speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;">http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>]]></document></output></iq>
2014-06-15 12:55:59.531623 [DEBUG] xmpp_streams.c:1058 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1, <a href="http://127.0.0.1:52319" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F127.0.0.1%3A52319\46sa\75D\46sntz\0751\46usg\75AFQjCNFdLFVpJsKqN7fQAV_fmW4QGilgOA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F127.0.0.1%3A52319\46sa\75D\46sntz\0751\46usg\75AFQjCNFdLFVpJsKqN7fQAV_fmW4QGilgOA';return true;">127.0.0.1:52319, state = READY, node type = NODE_NORMAL
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3858 Lock <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3054 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1, recv iq, availability = ONLINE
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3929 Unlock <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:771 Locate (jid) <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3057 Deliver <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1 => <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1 <iq type='set' to='<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a' from='<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1'><output xmlns='urn:xmpp:rayo:output:1'><document content-type='application/ssml+xml'>&lt;speak xmlns=&quot;<a href="http://www.w3.org/2001/10/synthesis&amp;quot" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis%26quot\46sa\75D\46sntz\0751\46usg\75AFQjCNEuZzy1a6n3rRAggj3evkXyhw8eQQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis%26quot\46sa\75D\46sntz\0751\46usg\75AFQjCNEuZzy1a6n3rRAggj3evkXyhw8eQQ';return true;">http://www.w3.org/2001/10/synthesis&quot; version=&quot;1.0&quot; xml:lang=&quot;en-US&quot;&gt;
  &lt;audio src=&quot;welcome.G729&quot;/&gt;
&lt;/speak&gt;</document></output></iq>
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:652 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1, looking for CALL::set:urn:xmpp:rayo:output:1:output command
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1806 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1, executing command
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:71 Init <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1435 Lock <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1: ref count = 3
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:771 Locate (jid) <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] rayo_components.c:62 Deliver <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1 => <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1 <iq from='<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1' to='<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1' type='result' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a'><ref xmlns='urn:xmpp:rayo:1' uri='<a href="http://xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1'/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fxmpp%3Ac576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\47%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEszhCq32Uy7YKG7OoxO9phqlTZ3g';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fxmpp%3Ac576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\47%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEszhCq32Uy7YKG7OoxO9phqlTZ3g';return true;">xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1'/></iq>
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [id]=[<a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1]
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [session]=[c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244]
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:778 Unlock <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [pause]=[false]
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:689 Got path rayo://<a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:498 Got path <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:500 Locate (id) <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:812 Open: <speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;">http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:738 Skipping empty tts
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:597 Adding <audio>: "welcome.G729"
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:738 Skipping empty tts
2014-06-15 12:55:59.531623 [INFO] mod_native_file.c:94 Opening File [welcome.G729] 8000hz
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:713 Create audio buffer
2014-06-15 12:55:59.531623 [DEBUG] switch_core_media_bug.c:532 Attaching BUG to sofia/internal/1122334455
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:115 Unlock <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1808 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1, done executing command
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:778 Unlock <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1: ref count = 2
2014-06-15 12:55:59.551666 [DEBUG] xmpp_streams.c:190 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1, <a href="http://127.0.0.1:52319" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F127.0.0.1%3A52319\46sa\75D\46sntz\0751\46usg\75AFQjCNFdLFVpJsKqN7fQAV_fmW4QGilgOA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F127.0.0.1%3A52319\46sa\75D\46sntz\0751\46usg\75AFQjCNFdLFVpJsKqN7fQAV_fmW4QGilgOA';return true;">127.0.0.1:52319, c2s_in SEND <iq from='<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1' to='<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">us...@127.0.0.1' type='result' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a'><ref xmlns='urn:xmpp:rayo:1' uri='<a href="http://xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1'/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fxmpp%3Ac576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\47%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEszhCq32Uy7YKG7OoxO9phqlTZ3g';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fxmpp%3Ac576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\47%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEszhCq32Uy7YKG7OoxO9phqlTZ3g';return true;">xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1'/></iq>
2014-06-15 12:55:59.591630 [DEBUG] switch_rtp.c:5574 Correct ip/port confirmed.
2014-06-15 12:55:59.591630 [DEBUG] switch_core_io.c:526 Setting BUG Codec G729:18
2014-06-15 12:56:00.391623 [INFO] rayo_output_component.c:414 Done playing
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:117 Unlock <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 0
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:118 Destroy <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1 requested: ref_count = 0
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:118 Destroying <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\46sa\75D\46sntz\0751\46usg\75AFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:56:00.391623 [DEBUG] mod_rayo.c:1410 Unlock <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1: ref count = 1

Thank you,
Matt.



It would additionally be helpful to provide logs from FreeSWITCH. These will be more informative than Adhearsion logs.

Em 15/06/2014, às 14:36, Tronch <[hidden email]> escreveu:

Hi Ben.

Here it's the relevant log part:

[2014-06-15 12:20:32.417] DEBUG Adhearsion::Call: e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1: Executing command #<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, request_id="10d4e90a-86cd-461e-acf0-c90696fa11f0", voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, url=nil, content_type="application/ssml+xml", value=<speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;">http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>>]>
[2014-06-15 12:20:32.421] TRACE Punchblock::Connection::XMPP: SENDING: (/usr/local/rvm/gems/ruby-1.9.3-p547/gems/blather-1.0.0/lib/blather/client/client.rb:149:in `write') <iq type="set" to="e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <output xmlns="urn:xmpp:rayo:output:1">
    <document content-type="application/ssml+xml"><![CDATA[<speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\46sa\75D\46sntz\0751\46usg\75AFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg';return true;">http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>]]></document>
  </output>
</iq>
[2014-06-15 12:20:32.443] TRACE Punchblock::Connection::XMPP: RECEIVING (iq) <iq from="e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1" to="us...@127.0.0.1" type="result" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <ref xmlns="urn:xmpp:rayo:1" uri="xmpp:e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1/output-1"/>
</iq>

As you can see from the last two rows, the play lasts for only few milliseconds but the audio file is several seconds long.
Could it be a bug of Freeswitch mod_ssml?

Thank you,
Matt.



Adhearsion doesn’t tell FreeSWITCH anything about the encoding of the audio file, it simply passes a path to that file.

Can you provide TRACE level logs where the problem occurs?

/BAK/
-- 
Ben Klang
Principal/Technology Strategist, Mojo Lingo

Mojo Lingo -- Voice applications that work like magic
<a href="http://mojolingo.com/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmojolingo.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEdz1VI9Wu7PPmqtzifmF6XsODIog';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmojolingo.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEdz1VI9Wu7PPmqtzifmF6XsODIog';return true;">http://mojolingo.com
Twitter: @MojoLingo


Hi.

I'm using Adhearsion 2.5.3 with Freeswitch (latest master).

In order to avoid transcoding (and cpu load), I would like to pre-encode my wav files to G729 codec.

I encoded the files using the tool provided with freeswitch (fs_encode).

Using a Freeswitch dial plan application I hear the file correctly (it has a G729 extension).

In Adhearsion, when I call the controller play method, I hear a corrupted audio file.

It seems that Adhearsion, via ssml, is saying to Freeswitch that the audio file has a different encoding (I suspect wav) than G729.

Note: if I call the play method with the wav file (not the encoded one), the file is correctly encoded at runtime (which is what I want to avoid).

What am I doing wrong? Or what I want to do is not possible?

Thank you for your help,
Matt.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Play of already encoded G729 audio files

Giorgio Bianchi
In reply to this post by Christopher Rienzo
Hi all,
I'm trying this solution too but the problem seems not solved yet.
Is there something I could do to solve it and use native G729 files?
Thanks for your support!
Giorgio.

Il giorno lunedì 16 giugno 2014 15:17:56 UTC+2, Christopher Rienzo ha scritto:
There's probably a bug in mod_rayo / native file playback since it's something I've never used.  Should be simple enough to fix, just open a ticket as Ben recommended so I don't forget.



On Mon, Jun 16, 2014 at 6:41 AM, Ben Langfeld <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">b...@...> wrote:
Nothing looks particularly wrong in that log. I'd suggest you file a ticket against FreeSWITCH mod_rayo to query it: <a href="http://jira.freeswitch.org" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjira.freeswitch.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEOJYAz1ch1IiZ1qR3DyAeiLQZHtw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjira.freeswitch.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEOJYAz1ch1IiZ1qR3DyAeiLQZHtw&#39;;return true;">http://jira.freeswitch.org


On 16 June 2014 05:48, Tronch <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">matteo.t...@...> wrote:
Hi Ben.

Here are the freeswitch logs:

2014-06-15 12:55:59.531623 [DEBUG] xmpp_streams.c:190 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1, <a href="http://127.0.0.1:52319" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A52319\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFdLFVpJsKqN7fQAV_fmW4QGilgOA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A52319\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFdLFVpJsKqN7fQAV_fmW4QGilgOA&#39;;return true;">127.0.0.1:52319, c2s_in RECV <iq type="set" to="<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1" id="40fc0650-562e-4ac6-9a3f-ae509b5c187a"><output xmlns="urn:xmpp:rayo:output:1"><document content-type="application/ssml+xml"><![CDATA[<speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg&#39;;return true;">http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>]]></document></output></iq>
2014-06-15 12:55:59.531623 [DEBUG] xmpp_streams.c:1058 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1, <a href="http://127.0.0.1:52319" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A52319\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFdLFVpJsKqN7fQAV_fmW4QGilgOA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A52319\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFdLFVpJsKqN7fQAV_fmW4QGilgOA&#39;;return true;">127.0.0.1:52319, state = READY, node type = NODE_NORMAL
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3858 Lock <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3054 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1, recv iq, availability = ONLINE
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3929 Unlock <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:771 Locate (jid) <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:3057 Deliver <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1 => <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1 <iq type='set' to='<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a' from='<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1'><output xmlns='urn:xmpp:rayo:output:1'><document content-type='application/ssml+xml'>&lt;speak xmlns=&quot;<a href="http://www.w3.org/2001/10/synthesis&amp;quot" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis%26quot\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEuZzy1a6n3rRAggj3evkXyhw8eQQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis%26quot\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEuZzy1a6n3rRAggj3evkXyhw8eQQ&#39;;return true;">http://www.w3.org/2001/10/synthesis&quot; version=&quot;1.0&quot; xml:lang=&quot;en-US&quot;&gt;
  &lt;audio src=&quot;welcome.G729&quot;/&gt;
&lt;/speak&gt;</document></output></iq>
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:652 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1, looking for CALL::set:urn:xmpp:rayo:output:1:output command
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1806 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1, executing command
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:71 Init <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1435 Lock <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1: ref count = 3
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:771 Locate (jid) <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] rayo_components.c:62 Deliver <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1 => <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1 <iq from='<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1' to='<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1' type='result' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a'><ref xmlns='urn:xmpp:rayo:1' uri='<a href="http://xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1&#39;/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fxmpp%3Ac576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x27%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEszhCq32Uy7YKG7OoxO9phqlTZ3g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fxmpp%3Ac576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x27%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEszhCq32Uy7YKG7OoxO9phqlTZ3g&#39;;return true;">xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1'/></iq>
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [id]=[<a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1]
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [session]=[c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244]
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:778 Unlock <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] switch_event.c:1687 Parsing variable [pause]=[false]
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:689 Got path rayo://<a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:498 Got path <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:500 Locate (id) <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 2
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:812 Open: <speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg&#39;;return true;">http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:738 Skipping empty tts
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:597 Adding <audio>: "welcome.G729"
2014-06-15 12:55:59.531623 [DEBUG] mod_ssml.c:738 Skipping empty tts
2014-06-15 12:55:59.531623 [INFO] mod_native_file.c:94 Opening File [welcome.G729] 8000hz
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:713 Create audio buffer
2014-06-15 12:55:59.531623 [DEBUG] switch_core_media_bug.c:532 Attaching BUG to sofia/internal/1122334455
2014-06-15 12:55:59.531623 [DEBUG] rayo_output_component.c:115 Unlock <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 1
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:1808 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1, done executing command
2014-06-15 12:55:59.531623 [DEBUG] mod_rayo.c:778 Unlock <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1: ref count = 2
2014-06-15 12:55:59.551666 [DEBUG] xmpp_streams.c:190 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1, <a href="http://127.0.0.1:52319" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A52319\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFdLFVpJsKqN7fQAV_fmW4QGilgOA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A52319\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFdLFVpJsKqN7fQAV_fmW4QGilgOA&#39;;return true;">127.0.0.1:52319, c2s_in SEND <iq from='<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1' to='<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">us...@127.0.0.1' type='result' id='40fc0650-562e-4ac6-9a3f-ae509b5c187a'><ref xmlns='urn:xmpp:rayo:1' uri='<a href="http://xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1&#39;/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fxmpp%3Ac576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x27%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEszhCq32Uy7YKG7OoxO9phqlTZ3g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fxmpp%3Ac576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x27%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEszhCq32Uy7YKG7OoxO9phqlTZ3g&#39;;return true;">xmpp:c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1'/></iq>
2014-06-15 12:55:59.591630 [DEBUG] switch_rtp.c:5574 Correct ip/port confirmed.
2014-06-15 12:55:59.591630 [DEBUG] switch_core_io.c:526 Setting BUG Codec G729:18
2014-06-15 12:56:00.391623 [INFO] rayo_output_component.c:414 Done playing
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:117 Unlock <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1: ref count = 0
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:118 Destroy <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1 requested: ref_count = 0
2014-06-15 12:56:00.391623 [DEBUG] rayo_components.c:118 Destroying <a href="http://c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fc576eaf8-e7a2-48a4-bfe0-f56cfa3f3244%40127.0.0.1%2Foutput-1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEkmtF9R6bifcWIiDe3vsr4O5d-QQ&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1/output-1
2014-06-15 12:56:00.391623 [DEBUG] mod_rayo.c:1410 Unlock <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">c576eaf8-e7a2-48a4-bfe0-f56cfa3f3244@127.0.0.1: ref count = 1

Thank you,
Matt.



It would additionally be helpful to provide logs from FreeSWITCH. These will be more informative than Adhearsion logs.

Em 15/06/2014, às 14:36, Tronch <[hidden email]> escreveu:

Hi Ben.

Here it's the relevant log part:

[2014-06-15 12:20:32.417] DEBUG Adhearsion::Call: e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1: Executing command #<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, request_id="10d4e90a-86cd-461e-acf0-c90696fa11f0", voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil, render_documents=[#<Punchblock::Component::Output::Document target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Sun, 15 Jun 2014 12:20:32 +0100, url=nil, content_type="application/ssml+xml", value=<speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg&#39;;return true;">http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>>]>
[2014-06-15 12:20:32.421] TRACE Punchblock::Connection::XMPP: SENDING: (/usr/local/rvm/gems/ruby-1.9.3-p547/gems/blather-1.0.0/lib/blather/client/client.rb:149:in `write') <iq type="set" to="e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <output xmlns="urn:xmpp:rayo:output:1">
    <document content-type="application/ssml+xml"><![CDATA[<speak xmlns="<a href="http://www.w3.org/2001/10/synthesis" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F2001%2F10%2Fsynthesis\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFqjm6NM14_EJaEnQY0QPVBzOEhHg&#39;;return true;">http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="welcome.G729"/>
</speak>]]></document>
  </output>
</iq>
[2014-06-15 12:20:32.443] TRACE Punchblock::Connection::XMPP: RECEIVING (iq) <iq from="e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1" to="us...@127.0.0.1" type="result" id="10d4e90a-86cd-461e-acf0-c90696fa11f0">
  <ref xmlns="urn:xmpp:rayo:1" uri="xmpp:e2625604-edcd-4da0-b1bf-9d2f97293310@127.0.0.1/output-1"/>
</iq>

As you can see from the last two rows, the play lasts for only few milliseconds but the audio file is several seconds long.
Could it be a bug of Freeswitch mod_ssml?

Thank you,
Matt.



Adhearsion doesn’t tell FreeSWITCH anything about the encoding of the audio file, it simply passes a path to that file.

Can you provide TRACE level logs where the problem occurs?

/BAK/
-- 
Ben Klang
Principal/Technology Strategist, Mojo Lingo

Mojo Lingo -- Voice applications that work like magic
<a href="http://mojolingo.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fmojolingo.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEdz1VI9Wu7PPmqtzifmF6XsODIog&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fmojolingo.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEdz1VI9Wu7PPmqtzifmF6XsODIog&#39;;return true;">http://mojolingo.com
Twitter: @MojoLingo


Hi.

I'm using Adhearsion 2.5.3 with Freeswitch (latest master).

In order to avoid transcoding (and cpu load), I would like to pre-encode my wav files to G729 codec.

I encoded the files using the tool provided with freeswitch (fs_encode).

Using a Freeswitch dial plan application I hear the file correctly (it has a G729 extension).

In Adhearsion, when I call the controller play method, I hear a corrupted audio file.

It seems that Adhearsion, via ssml, is saying to Freeswitch that the audio file has a different encoding (I suspect wav) than G729.

Note: if I call the play method with the wav file (not the encoded one), the file is correctly encoded at runtime (which is what I want to avoid).

What am I doing wrong? Or what I want to do is not possible?

Thank you for your help,
Matt.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6gYQiNMvsOsJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.