alexa / alexa-skills-kit-sdk-for-nodejs

The Alexa Skills Kit SDK for Node.js helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
Apache License 2.0
3.12k stars 737 forks source link

Reminders API SSML not working with Audio Tag #618

Closed sholkay closed 4 years ago

sholkay commented 4 years ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[x ] Other... Please describe:

Audio tag not working in Reminders API SSML tags,

<speak>
          Testing 1
          <audio src="https://vishalsholkaybucket.s3.amazonaws.com/uk_21042020.mp3" />
          Testing 2
</speak>

Expected Behavior

This would return a reminder in which Alexa will first speak in the following order:

Current Behavior

But in this scenario, the audio file doesn't run andTesting 1 and Testing 2 runs and also there is a gap of some time in both these, I guess the audio is running but it is mute or inaudible to the user, but Alexa speaks testing 2 only after the audio finishes in the background.

Possible Solution

The audio file should run in the Reminders API SSML.

Steps to Reproduce (for bugs)

const reminderRequest = {
                trigger: {
                    type: 'SCHEDULED_RELATIVE',
                    offsetInSeconds: '10',
                },
                alertInfo: {
                    spokenInfo: {
                        content: [{
                            locale: "en-US",
                            text: "Testing", 
                            ssml:  '<speak>Testing 1<audio src="https://vishalsholkaybucket.s3.amazonaws.com/uk_21042020.mp3" /> Testing 2</speak>'
                        }],
                    },
                },
                pushNotification: {
                    status: 'ENABLED',
                },
            };

I am making this reminder request to the Reminders API and then pushing it to the createReminder method. const reminderResponse = await client.createReminder(reminderRequest);

I am using Alexa's skill reminders demo. Nothing else is changed just trying to push the above request in the Reminders API.

Context

Your Environment

Node.js and NPM Info

ShenChen93 commented 4 years ago

Hi @sholkay ,

Thanks for reporting this issue. I used the code you provided above and could reproduced the issue. However, the behavior is slightly different as there's no gap between 'testing1' and 'testing2' when I triggered my demo skill. I will report this issue to service team and will update status here once got their reply.

Thanks, Shen

ShenChen93 commented 4 years ago

Hi @sholkay ,

Got the response from the service team. Unfortunately, audio tag is not supported yet in reminder, the public doc is misleading. The service team will correct the doc and give a list of supported tag.

I also checked with them if there are any way to attach audio in reminder, but it seems this feature is not available right now.

Since it's the feature request on service side, I will close the tt on SDK side.

Thanks, Shen

rat commented 3 years ago

This feature is extremely important for engaging with reminders. I am developing a skill to help autistic children, but without audio tags, their engagement is quite bad.

Is there a possibility that the team has already released this resource? @ShenChen-Amazon

mohamed-arradi commented 3 years ago

This feature is indeed very important where we would like reminders to be customized and catered to a specific audience. All my users are asking me this feature, and therefore they put bad rating as it seems logical for them :).

hqawasmi commented 3 years ago

@ShenChen-Amazon , Hi , is there any updates on the above issue please

zohaibkhan502 commented 2 years ago

Hi @ShenChen-Amazon and @sholkay,

I think the workaround would be if we get the event when the reminder starts beeping we can use the speak tag outside of the reminder Api. Referring to this docs. I gave it a one shot but didn't got any event fired at that time. https://developer.amazon.com/en-US/docs/alexa/smapi/alexa-reminders-api-reference.html#reminderstarted