Hello guys, welcome to the 35th session of using Microsoft Word framework Louise and cognitive services tutorials for beginners. In this session we will learn how to send speech as a response to know we just send a text message via our booth. However many channels are put speech response to such as cotton. For this let us create a new dialogue mean speech demo of namespaces makes it relatable implement a dialog from these called message received a sync let us generate this matter. Till now we have just used hostessing method to send new messages. But in this session, I'm going to create a reply to the message that user sent so we can track it First of all we need to opt in activity from context.
Then create a reply using create reply method of activity. In parameter pass a text that will be displayed to channel. It can be descriptive, such as your order number, blah blah blah has been registered. You will receive it before this weekend. Thanks for the order to set speech for this message we need to assign text to speak property. Here I'm just adding just your order is received and if the tools are here, by using post a sync method send a reply.
To test speech feature in emulator we need to publish our app. Right click and select Publish after publishing if you are facing any issues, such as there are multiple controllers exist with the same name, then delete main folder from Azure and rebuild your project. Open emulator that has an app ID and password. And here I am sending a text message. We call back response only. That is us Mike I can't hear Hello.
Your order is received and it's details are here. Here we got the text as well as speech. Let us see what we have learned in this session. By using create reply method, we can create a reply to the message. To set speech for this message we need to assign text to speak property. Thanks for watching this video.
If you have any doubt Please feel free to contact me. Have a nice day.