Home Loop Audio File in Alexa
Reply: 0

Loop Audio File in Alexa

Dakota Lynch
1#
Dakota Lynch Published in 2018-02-13 04:19:08Z

What's the simplest way to make my Alexa skill loop this function? The below code features a static URL, but in the end this will be updated each time the function is looped.

'RandomVerse': function () {


   connection.query('SELECT versetext, book, reference  FROM myverses ORDER BY RAND() LIMIT 1', 
    function (error, results, fields) {
    console.log(error);
    console.log(results[0].versetext);
    const AUDIO ='<audio src="https://s3.amazonaws.com/..." />'
    this.emit(':tell', AUDIO);

     }.bind(this));


    },
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.32649 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO