question

Rafael Aguiar Alves avatar image
Rafael Aguiar Alves asked

I need alexa to speak the content of an html file

I need alexa to speak the content of an html file that I have already added to my skill project: "index.html". Could you help me on how to get commands for it to speak the content of the page. In json I managed to do it using const file = require('myfile.json'); but in html I don't know which command. Help me please.

alexaalexa skills
10 |5000

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

1 Answer

Andy Whitworth avatar image
Andy Whitworth answered

You would need to parse the html to extract the element content you want to speak. There are a few npm packages which can parse html, have a look round and try some of those.

10 |5000

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