adhearsion / adhearsion-asr

Adds speech recognition support to Adhearsion as a plugin.
http://adhearsion.com
MIT License
6 stars 6 forks source link

"unrenderable document error" using #ask with Asterisk/unimrcp #18

Closed JustinAiken closed 10 years ago

JustinAiken commented 10 years ago

With this code:

class ReminderCallController < Adhearsion::CallController
  def run
    answer
    say "Hello there."
    sleep 2
    ask "Press a button.", limit: 1
    hangup
  end
end

The #say works perfect, the #ask fails with:

<Punchblock::ProtocolError> #<Punchblock::ProtocolError: name="unrenderable document error" text="The provided document could not be rendered. See http://adhearsion.com/docs/common_problems#unrenderable-document-error for details." call_id=nil component_id=nil>

ENV:

Asterisk 1.8 Adhearsion 2.5 adhearsion-asr from develop lumenvox (from TDB)

Trace log

benlangfeld commented 10 years ago

renderer: nil: https://gist.github.com/JustinAiken/b0dc53af5fb1caaf01c4#file-adhearison-log-L110

Check the full set of adhearsion-asr config in rake config:show.

JustinAiken commented 10 years ago

Ah, I see: Adhearsion core will use :media_engine if renderer is nil, but adhearsion-asr just uses the renderer no matter what.

TIL :media_engine is deprecated :wink:

bklang commented 10 years ago

Is it worth setting the default renderer and recognizer to :unimrcp?

benlangfeld commented 10 years ago

Nope, because most people don't have MRCP based TTS and ASR available.