Skip to content
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

SSML generated by app cannot be played by echo (probably wrong usage of lib) #45

Open
luebbert42 opened this issue Dec 4, 2017 · 2 comments

Comments

@luebbert42
Copy link

luebbert42 commented Dec 4, 2017

I am trying to use SSML. This is what I have so far:

$out = 'Test <say-as interpret-as="interjection"> abracadabra!</say-as> Something else';
return \Alexa::say($out, "SSML")->endSession(false);

In the simulator this arrives as:

"outputSpeech": {
      "ssml": "Test <say-as interpret-as=\"interjection\"> abracadabra!</say-as> Something else",
      "type": "SSML"
    },

The simulator can output this, the real device refuses to do that ("problem has occured" -> don't know the correct error msg in English).

Questions:

  • is it correct that the output is not enclosed in a speak-Tag?
  • is it correct that there are backslashes around "interjection"?

In other words: How can I bring SSML to life with this library?

@Olofguard
Copy link
Contributor

Olofguard commented Jan 17, 2018

+1 for anyone looking into this. Anyone using SSML successfully with this library? Haven't really dug into this yet but it's next on my list.

@wertmenschen
Copy link
Contributor

return Alexa::ssml('<speak>' . $text . '<break time="2s"/>' . $text2 . '</speak>'); works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants