Lab #33 Speech Detection

In lab #33, I create a website that (if you allow it access to your microphone), it will type whatever you are saying in your microphone. I used my in-browser preview to get it working since techteach.us isn't trusted on my laptop. Here is a screenshot of what it would look like when you say something.


To add the functionality for this lab, I used mainly JavaScript. In the HTML I added a div in a class that I modified with CSS to make it look like looseleaf. The javascript I used consisted of commands revolving around the window.SpeechRecognition commands and setting variables that would track anything you say into your microphone. Also, the JavaScript would document.createElement('p'); which would a new paragraph each time you talk which would then contain everything you say if it is clear to the speech recognition.

Web designers would be able to allow to make web-apps that catch voice recognition to be useful when trying to make typing easier. For example, for a messenger app, this program would be perfect for making messaging easier. Voice recognition could allow for users who are in the middle of doing something and can't type, to instead talk and get their message across.

Comments

Popular posts from this blog

WBL Workshop #6 Interview Skills

CTE Expo Reflection Journal

Lab #12 Reflection