Announcement: The Alexa Skills Community Is Moving To Stack Overflow

For improved usability and experience, Alexa skills related forum support will be transitioned to Stack Overflow. Effective January 10, 2024, the Amazon Developer Forums will no longer be available. For continued Alexa skills support you can reach out to us on Stack Overflow or via Contact Us.

question

Swapnil Chouhan avatar image
Swapnil Chouhan asked

automatically play audio at certain time

Hi, For one Alexa Skill, in which user's need to listen to audio at certain time which we have programatically.

please let me know, if it would be possible to implement it?

any way by which audio file can be played at certain time programatically?
by use of routines and schedules etc?

apialexa skillsroutines
10 |5000

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

Andy Whitworth avatar image
Andy Whitworth answered

You could do this via a virtual button which your scheduler could "press" via an API call. The button presses would be used as the trigger for an Alexa routine to invoke your skill.

Look at the Voice Monkey skill to see how you can setup such a virtual button, or checkout their webpage https://voicemonkey.io/

10 |5000

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

John Zee avatar image
John Zee answered

Yes, it is possible to implement a feature in an Alexa Skill where users can listen to audio at certain times. This can be achieved through a combination of Alexa Skills programming and scheduling mechanisms. Here's a brief overview:

  1. Alexa Skills:

    • Develop an Alexa Skill that includes the audio content you want users to access.
    • Use Alexa Skills Kit (ASK) to handle user requests and responses.
  2. Scheduling Mechanism:

    • Leverage Alexa Routines or Scheduled Events to schedule the audio playback at specific times.
    • Routines can be created by users through the Alexa app, allowing them to set up actions triggered at a specified time.
  3. Skill Invocation:

    • Configure the Alexa Skill to be invoked as part of the routine or scheduled event.
    • The Skill can then deliver the programmed audio content when triggered.

Example Routine Flow:

  • User sets up a routine using the Alexa app.
  • As part of the routine, the user specifies the invocation of your Skill at a specific time.
  • When the scheduled time arrives, the routine triggers your Skill, and your Skill responds by playing the programmed audio content.

Ensure that your Alexa Skill adheres to Amazon's guidelines and policies, and test thoroughly to provide a smooth user experience.

www.gettingoveritapks.com

10 |5000

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