Hello guys, welcome to the 10th session of free customer access using AWS lambda function to do this for beginners, In this session we have created lambda function for generating a single response. In this session we will see how to add session and event result and use ssms Firstly, let us switch to a lambda function that we have created. When we receive the request in fabric language intent, we want to kill the active session for the user needs to start the new session again. For these we need to pass an extra parameter names and session. If you got value in this parameter, then we will set should end session to prove the need to pass through input parameters. After sieving response, Alexa will wait for users to scold.
You see user does not respond in some time, it will again ask for entering the request. For this it will use output range specified in the prompt. For this, that is add one more parameter names show the prompt. If it was true, then sex becomes output, same as false. You can also use different texts. Now, I'm enabling the prompt for handle intent.
Now, we're just setting text that Alexa knows. However, in certain situation, you may want a different kind of pillows that Alexa does. In that situation, we can use SSL. Now, ss ml stands for speech synthesis Markup Language is an XML based markup language for speech synthesis applications. Here are more details about supported XML syntax for Alexa. The link is available in resources.
We can add effects to our speech. Your audio files in speech. Add more break between two sentences. Add more emphasis on a particular word. back for me for work, mortify speech of voices in grocery using same as we can describe how to interpret the text, such as character number, details, data, time, etc. To see how many seven pronouns we can use, this time Copy this open voice and tone.
Basically, yes. The best is 12,345 here's the same number with each digit spoken separately 12345 add new parameters for SSL in response. If we pass ssms, then type the type to ssms and set value for SSL. Display greetings intention. I want to break the Quint. Welcome back and good money.
So right break time equals to three seconds. This copy this function and update our lambda function. Open simulated conversation Welcome to your first Alexa skill. That is Dre Welcome back nilay Good morning. Here are three second grades as we have expected what is right I like setia Haney lay you like C sharp whose it is to get into sports you can see that we have ended the session. Now if you try to use any other command I like no GS sorry, I don't know that one.
Here we do not get a response as a scale session was ended. Let us see what we have learned in this session. By using ssms we can specify speech synthesis Finally response. You think should end session we can end the conversation, so a scan will not get request. Using repo, we can request a user for responding. Thanks for watching this video.
If you have any doubts, please feel free to contact Have a nice day.