speech to text in javascript

Speech to Text in JavaScript

Press the Start button

var speechRecognition = window.webkitSpeechRecognition var recognition = new speechRecognition() var textbox = $("#textbox") var instructions = $("#instructions") var content = '' recognition.continuous = true // recognition is started recognition.onstart = function() { instructions.text("Voice Recognition is On") } recognition.onspeechend = function() { instructions.text("No Activity") } recognition.onerror = function() { instruction.text("Try Again") } recognition.onresult = function(event) { var current = event.resultIndex; var transcript = event.results[current][0].transcript content += transcript textbox.val(content) } $("#start-btn").click(function(event) { recognition.start() }) textbox.on('input', function() { content = $(this).val() })

Popular posts from this blog

What is a Computer Virus?

How to maintain our healthy body in technical world ? || Day routine maintain our body. || routine for Tuchman.

How to create google form?