Hello guys, welcome to the 34th session of create custom Alex esky using AWS lambda function tutorials for beginners. In the previous session we have just learned about custom scheme. In this session, we will learn how to create flesh prif. Flesh prepping provides a quick overview of news and other content such as comedy interviews and lists. using Flash briefing skill, you have a chance for your original content to reach customers on a daily basis. We can create flash briefing skill by using RSS or Jason is content will be updated on regular basis.
In this session, we will use Jason Let us open the browser click on Create new ski with any name I'm using the fifth demo. Genie language if you require Note that currently skin concerns suppose only one language for flesh proofing scheme. So you will not be able to change it later. Maybe Amazon can update these in future Click on Next select flash briefing in custom skill we have to specify example utterances. But in case of those predefined modal utterances are predefined click on View example phrases. Here you can see that user may say was my flash briefing on what is a noose new concrete skin here our flash briefings Canvas created.
Here we got section named flash briefing instead of custom as we have created a flash briefing scheme. In custom error message we need to write a message that will be used to answer Under federal records, I'm missing something went wrong. This demo is available right now. You can use any text that you want to. You can use this play icon to hear a voice to know how Alexa will pronounce it. Click on Add a new field.
To create a new field in scheme. In preamble, we need to specify tags that will be displayed before starting or it must start with prom or in I'm using from fifth them. In name, we need to specify a name for this face. I'm using text them. In content update frequency, we need to specify frequency how often our content will be reproducing. I'm using hourly for this, you can use it as per requirement.
The content type can be text or audio For flash briefing we can pass over all text which will be converted to speech, or we can pass audio file directly. In I will use text later we will see audio. In January, we need to specify any generate for free. Let us select entertainment include icon a select icon that will be used for escape. That is select any picture. Radio URL is a very important field.
Here we need to specify URL for our RSS or Jason. Now, let us switch to Visual Studio code and create a Jason for text response. This file contains an error create an object UID contains unique identity for this field item. It must be followed by URL colon UID, Colin G. UID. Hi, I'm using this site to generate geo ID. The link is available in resources.
Next is update date. It must win simple date format time will be UTC. title tags, it contains effects that will be displayed on a card, and Excel will generate a card for each field. main text, it is an optional text that will be used as content for the card REDIRECTION URL. It will continue URL on base user will be redirected when click on read mode button. Let us copy this object generate new g UID and uncertainty Time entitle.
Note that each food item must have unique time. Now see if define. I'm using an s3 bucket to upload the file. Click on the Upload button. Select File that you have created. click on Upload.
Your file is uploaded click on it. We need to make it public. So Alex I can use this appending to the file and paste it in Alex or console. Click on Add your feedback was added. Let us click on Save So we need to test this in echo device. A simulator does not support audio player.
Alexa, what is in news? Here's your flash briefing from fifth demo. This is first item in brief. This is second item in brief. That's all from your flash briefing. Here we got the text or speech response for each food item.
In the mobile application, you can see that it's separated can now I'm going to create a new field for audio string. Click on add new field. In preamble right from the demo. in me, I'm using audio demo. content will be updated on daily basis. Content Type will be audio and select generally and also upload icon.
Let us switch to Visual Studio Code copy this Jason generate new geo ID update its value. Update title text. Here I don't know how to generate text to speech so remove main text. Add a new property named stream URL. It will contain mp3 files that will be played. I have already uploaded some audio files in s3 book So let's open any of them and paste it URL here.
Here I want to add only single item in this field so remove this. Save the file. upload this file to s3 make it public. Now copy this path and paste it. Click on Add you can you see that two fights exist This skill we can also delete it if not required. We need to make audio demo as default fade click on save and accept.
What's my flash briefing here's your flash briefing from fifth demo. That's all from your riffing. Here we got an audio response instead of text to speech. Now let us see what we have learned in this session. A flash briefing provides a quick overview of news and other content such as a comedy interviews and lists. We can use JSON or addresses for this.
We can use text to speech or audio file for this is an example to text to speech. In UID, we need to specify g UID main text contains tags that will allow us to pronounce Well here is an example of the order response. In stream URL, we need to specify a URL of the audio file. Thanks for watching this video. If you have any doubts, please feel free to contact me. Have a nice day.