question

usernickyang avatar image
usernickyang asked ·

How can I get the next flash briefing?

On my android app, the AVS response with the speechSynthesizer interface after I want to hear my flash briefing. But I can only hear the first flash briefing I subscribed in Amzon Alexa.

According to the tutorial then I send a speechstarted and a speechfinsihed event.

What should I do next to get the other ones?

alexa voice serviceandroidresponse
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

swasey@amazon avatar image
swasey@amazon answered ·

Flash Briefings are sent to you as the following:

  • A Speak directive saying "Here's your Flash Briefing"
  • Then multiple Play directives.

You're handling the Speak directive fine, but you need to handle the Play directives to get the actual Flash Briefing to play. Here is information about how to handle AudioPlayer directives.

1 comment
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks a lot! I didn't nocite that the response has multiple directives.

But there is a new question.

I receive a HTTP 400 code after I send a PlaybackStarted event.

It is sent after the speechstarted and a speechfinsihed event.

{"header":{"namespace":"System","name":"Exception","messageId":"83a3f1dd-4f4d-40ea-9c4c-6e4e5c093dfd"},"payload":{"code":"INVALID_REQUEST_EXCEPTION","description":"Bad Request"}}
0 Likes 0 ·