question

krista avatar image
krista asked ·

How to save short voice message in any text format?

I am developing a custom skill using AMAZON.SearchQuery slot type that accepts speech input. After user has spoken message, Alexa repeats it and asks, would you like to save it? Invoking AMAZON.Yes intent. (This part works good)

If user says Yes, then I want that short message to be saved as any text type (presume JSON) in a dropbox folder that is shared within few ppl.

Any hints how to provide this functionality? Presume it would be something as If else statement?

alexa skills kitskillhow-toskill builderskills
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

Tsuneki@Amazon avatar image
Tsuneki@Amazon answered ·

Hi there,

Thank you for posting.

You can retrieve slot value by

var slotvalue = this.event.request.intent.slots.[slotname].value

Also, you can save the value using session attributes.

Please check dropbox api document how to access and save on it.

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.