Re: [Adhearsion] Adhearsion PlaybackError

36 views
Skip to first unread message

Ben Langfeld

unread,
May 3, 2013, 7:22:24 AM5/3/13
to adhea...@googlegroups.com
Check trace logs and your FreeSWITCH logs. This error is being returned by FreeSWITCH.

Regards,
Ben Langfeld

Em 03/05/2013, às 00:45, Dan Sterrett <danst...@gmail.com> escreveu:

I am using FreeSWITCH.
I get a 'FILE NOT FOUND' error when I try to play an audio file.

If I call:
  play '/Users/Dan/Projects/github_projects/aucp_phone/audio-files/0.wav'

The call is hung up immediately, and I get this error in the console:

[2013-05-02 15:51:48] ERROR Adhearsion::Call: b9ff47d8-b361-11e2-8447-b9207d62b000: <Adhearsion::CallController::Output::PlaybackError> Output failed due to #<Adhearsion::Error: Engine error: FILE NOT FOUND: #<Punchblock::Component::Output target_call_id="b9ff47d8-b361-11e2-8447-b9207d62b000", component_id="c6d1364f-3345-438c-8886-d72328b9eb0e", target_mixer_name=nil, state_name=:complete, voice=nil, ssml=<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
  <audio src="/Users/Dan/Projects/github_projects/aucp_phone/audio-files/0.wav"/>
</speak>, interrupt_on=nil, start_offset=nil, start_paused=false, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer=nil>>
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/adhearsion-2.3.1/lib/adhearsion/call_controller/output/player.rb:20:in `rescue in output'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/adhearsion-2.3.1/lib/adhearsion/call_controller/output/player.rb:13:in `output'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/adhearsion-2.3.1/lib/adhearsion/call_controller/output/abstract_player.rb:18:in `play_ssml'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/adhearsion-2.3.1/lib/adhearsion/call_controller/output.rb:65:in `play'
/Users/Dan/Projects/github_projects/aucp_phone/lib/employee_call_controller.rb:171:in `run'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/adhearsion-2.3.1/lib/adhearsion/call_controller.rb:106:in `execute!'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/adhearsion-2.3.1/lib/adhearsion/call_controller.rb:81:in `block in exec'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/adhearsion-2.3.1/lib/adhearsion/call_controller.rb:80:in `catch'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/adhearsion-2.3.1/lib/adhearsion/call_controller.rb:80:in `exec'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/adhearsion-2.3.1/lib/adhearsion/call_controller.rb:97:in `exec_with_callback'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/adhearsion-2.3.1/lib/adhearsion/call_controller.rb:91:in `block (2 levels) in bg_exec'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/adhearsion-2.3.1/lib/adhearsion/foundation/exception_handler.rb:5:in `catching_standard_errors'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/adhearsion-2.3.1/lib/adhearsion/call_controller.rb:90:in `block in bg_exec'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `call'
/Users/Dan/.rvm/gems/ruby-2.0.0-p0@aucp/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'

In my adhearsion.rb file, I am not specifying a 'media_engine' or 'default_voice' for punchblock.

Does anyone have a suggestion?

--
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/groups/opt_out.
 
 

Dan Sterrett

unread,
May 3, 2013, 11:53:18 AM5/3/13
to adhea...@googlegroups.com
Thanks Ben.  I got it working.  You were right.  The error was coming from FreeSWITCH because it didn't like the file format I was using (.mp3), so I switched to using a .wav file.  However, the first .wav file I used didn't work, because of how it was compressed.  Eventually, I got it working by compressing it with these settings: 8000 Hz, 16-bit, mono.
Reply all
Reply to author
Forward
0 new messages