
With your Speech resource key and echo bot's bot ID, you're ready to try out the UWP Voice Assistant sample. You can also go here for steps on how to create a customized bot, then follow the same steps here to subscribe it to Direct Line Speech, but with your new bot rather than the "echo bot". This guide contains step-by-step instructions to make an "echo bot" and subscribe it to Direct Line Speech.
Bot Framework bot: A bot created using Bot Framework version 4.2 or above that's subscribed to Direct Line Speech to enable voice input and output. For more information, see Create a new Azure Cognitive Services resource. Create a Speech resource on the Azure portal. Speech resource: A resource for Cognitive Speech Services for speech-to-text and text-to-speech conversions. These are the requirements to create a basic dialog service using Direct Line Speech. Translate the text response of the bot to an audio output. Listen to user input and convert it to text. Limited Access Feature Token: Since the ConversationalAgent APIs provide access to microphone audio, they are protected under Limited Access Feature restrictions. To use a Limited Access Feature, you will need to obtain a Limited Access Feature token connected to the package identity of your application from Microsoft.įor a complete voice assistant experience, the application will need a dialog service that. The .bin file provided in the UWP Voice Assistant Sample is trained on the keyword Contoso. Keyword model: Voice activation requires a keyword model from Microsoft in the form of a .bin file. The UWP Voice Assistant Sample provides sample versions of these resources for initial development and testing, so this section is unnecessary for initial development. Some resources necessary for a completely customized voice agent on Windows will require resources from Microsoft. UWP development tools: The Universal Windows Platform development workload in Visual Studio. See the UWP Get set up page to get your machine ready for developing UWP Applications.
Windows version: A PC with a Windows Insider fast ring build of Windows and the Windows Insider version of the Windows SDK. This sample code is verified as working on Windows Insider Release Build 19025.vb_release_analog.191112-1600 using Windows SDK 19018. Any Build or SDK above the specified versions should be compatible. Visual Studio: You will need to install Microsoft Visual Studio 2017, Community Edition or higher. To start developing a voice assistant for Windows, you will need to make sure you have the proper development environment.
This guide will take you through the steps to begin developing a voice assistant on Windows.