Speech Recognition In Javascript (Voice Recognition) In Javascript

Опубликовано: 30 Апрель 2026
на канале: Labham Jain
370
10

Hey, Guys Welcome Back To My YT Channel,
So Let's Begin...
Guys, In This Video Tutorial We Will See How You Can Use Speech Recognition In Javascript
So What We Have Done In This Video Is...

First We Have Chosen The Speech Recognition API To Support Multiple Platforms / Browser

Second : We Have Add Statement That Whenever We Click On Button We Will Make An Instance Of Speech Recognition API

Third : We Called recognition.start() To Start Recognition (Note : First Time You Have To Allow Some Browser May Block By Default)

Fourth : We Called recognition.onresult = function(data){...}

Fifth : In 'onresult' Method/Function We Are Getting Callback Data And We Have Passed In function(data){...}

Sixth : The 'data' We Are Getting Is An Object So We Have To Select 'results' In Data (data.results)

Seventh : 'results' is an array which also stores an array so till now... The Code Is (data.results[0][0])

Eighth : The Array Contains An Object Several Properties But We Need 'transcript' Now Code is (data.results[0][0].transcript)

Ninth : Now Code Contains Only What User Said You Can Do What Ever You Want

You Can Perform Certain Tasks Like Website Controlling, Voice Searching, Notepad editor (Text Editor)