Although not visible in Figure 2, the text in the TextBox control at the top of the application was in fact set to “red.” The user then said, “Set text box 1 to red.” The application recognized, “Set text box 1 red,” which is almost-but not quite-exactly what the user spoke. The user checked the Speech On control and then spoke, “Hello.” The application echoed the recognized spoken text in the ListBox control at the bottom of the application. ![]() When the application was first launched, the Speech On checkbox control wasn’t checked, indicating speech recognition wasn’t active. The application recognizes spoken commands, but doesn’t respond with speech output. Finally, the user turned speech back on, and spoke the nonsense command, “Klatu barada nikto,” which the application recognized as the command to completely deactivate speech recognition and exit the application.įigure 2 shows a dummy speech-enabled Windows Forms application. With speech off, the next spoken command to add one plus two was ignored. The user then issued the command “Speech off,” which deactivated listening for commands to add numbers, but didn’t completely deactivate speech recognition. I’ll describe more useful ways to use speech recognition later. The application recognized these spoken commands and gave the answers out loud. The user asked the application to add one plus two, then two plus three. Next, the user spoke the command “Speech on.” The demo echoed the text that was recognized, and then, behind the scenes, enabled the application to listen for and respond to requests to add two numbers.įigure 1 Speech Recognition and Synthesis in a Console Applicationįigure 2 Speech Recognition in a Windows Forms Application ![]() After the console application in Figure 1 was launched, the app immediately spoke the phrase “I am awake.” Of course, you can’t hear the demo while reading this article, so the demo program displays the text of what the computer is saying. Note that you can also add speech capabilities to Windows Phone apps, ASP.NET Web apps, Windows Store apps, Windows RT apps and Xbox Kinect, but the techniques to do so are different from those presented in this article.Ī good way to see what this article will explain is to take a look at the screenshots of two different demo programs in Figure 1 and Figure 2. In this article, I’ll show you how to get started with speech recognition and speech synthesis in Windows console applications, Windows Forms applications, and Windows Presentation Foundation (WPF) applications. ![]() With the introduction of Windows Phone Cortana, the speech-activated personal assistant (as well as the similar she-who-must-not-be-named from the Fruit company), speech-enabled applications have taken an increasingly important place in software development. Volume 29 Number 12 Voice Recognition : Speech Recognition with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |