New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xml output for #say miss xml header #644
Comments
And then what happens? Does it break? What do you see in Asterisk logs? |
Asterisk didn't log any errors, and foward the xml content to UniMRCP server, but my TTS provider (https://ai.baidu.com/docs#/BSIC-MRCP/top) get the xml content which miss xml header as plain text, and synthesize whole xml content to speech. |
By "XML Header", can you be more specific what you are referring to? This sounds more like a configuration problem between UniMRCP and Baidu, rather than something in Adhearsion. Can you get UniMRCP to work from |
I'm sorry about my terrible English. I try to describe this issue more clearly. Yes, UniMRCP can work with Asterisk from extensions.conf. the xml content from Adhearsion will be forward to Asterisk, and Asterisk forward to UniMRCP/ Baidu. Baidu expect the xml content following MRCP protocol like: but the xml content from Adhearsion like: The text value miss the xml header: Baidu synthesize whole text value to speech, rather than The text value is from Adhearsion: So, I think the issue has three causes: which cause I should to follow? Thanks! |
I use adhearsion with asterisk/UniMRCP. when I call #say function, the xml content sent to asterisk miss xml header. here is out from log:
[2019-08-06 17:13:13.882] DEBUG Adhearsion::Call: b84e7088-655b-4763-a6e5-fb37c60391bb@: Executing command #<Punchblock::Component::Output target_call_id=nil, target_mixer_name=nil, component_id=nil, source_uri=nil, domain=nil, transport=nil, timestamp=Tue, 06 Aug 2019 17:13:13 +0800, request_id="cc7e2e15-b2d2-4e72-ac82-051393063bd4", headers={}, voice=nil, interrupt_on=nil, start_offset=nil, start_paused=nil, repeat_interval=nil, repeat_times=nil, max_time=nil, renderer="unimrcp", 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=Tue, 06 Aug 2019 17:13:13 +0800, url=nil, content_type="application/ssml+xml", value=<speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">你好,大家好</speak>>]>
I miss something, or is that a bug?
OS: MAC OS
The text was updated successfully, but these errors were encountered: