question

MikeV avatar image
MikeV asked

How to get Alexa to read a web page?

I would like to ask "Alexa, read <website name>" and have her start reading the site aloud.

Is there an existing skill, or capability we can add to our skills, to do this?

Thanks, Mike

alexa skills kit
10 |3000 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.

Lotoreo avatar image
Lotoreo answered

Getting the webpage text is not hard. (E.g.: http://stackoverflow.com/questions/6287297/reading-content-from-url-with-node-js) Getting Alexa to read something is not hard either, I assume.

The main problem in my opinion is to get Alexa to correctly hear the webpage you say. Would it suffice for you to have a set of readable websites, where you create an intent for each of them?

4 comments
10 |3000 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.

Lotoreo,

1) apologies for that work and home delayed this response

2) Thanks!

3) I don't follow... I am quite new to Java.

Getting the webpage text is not hard. (E.g.: http://stackoverflow.com/questions/6287297/reading-content-from-url-with-node-js) Getting Alexa to read something is not hard either, I assume.

OK... how to learn more

The main problem in my opinion is to get Alexa to correctly hear the webpage you say. Would it suffice for you to have a set of readable websites, where you create an intent for each of them?

Unsure I follow... I was hoping to "point" Alexa to a specific site -

https://spaceflightnow.com/launch-schedule/ - and have her read the first # (3-5 is likely) things she finds (the next 3-5 launches).

Thanks, Mike

0 Likes 0 ·

Hey,

Okay, if you only want one specific webpage, things are easy.

To create your first skill follow e.g. this tuturial: https://developer.amazon.com/blogs/post/Tx3DVGG0K0TPUGQ/New-Alexa-Skills-Kit-Template:-Step-by-Step-Guide-to-Build-a-Fact-Skill

That will create some example code for you. Follow the example until you are able to ask your Alexa device for facts, before you start editing anything on the code. Then you can be sure you set up everything correctly. Then search for the " 'GetFact': function () { ". Edit this code, to suite your needs, i.e. to create the code that reads out pages. (as in the example I reffered to, but with changing google.com to your page. You will need to search for the substring you actually want to read out.).

Then update the utterances to "read the next launches".

0 Likes 0 ·

Lotoreo,

Thanks.

I / our family has five fact skills.

I'll try updating GetFact to pull information from a page.

Then, once this works, I could do the same in a Flash Briefing

Mike

0 Likes 0 ·
Show more comments
Amit avatar image
Amit answered

I have created the similar skill website reader, here is the link https://www.amazon.in/gp/aw/d/B07CRK3DP5/ref=mp_s_a_1_1?ie=UTF8&qid=1526134130&sr=8-1&pi=AC_SX118_SY170_FMwebp_QL65&keywords=Website+reader&dpPl=1&dpID=518hETTmCkL&ref=plSrch

The website must have rss/atom link. You can read more on the link provided

1 comment
10 |3000 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.

Can you share the source code of the project?

0 Likes 0 ·