Answer the question
In order to leave comments, you need to log in
How to listen to an audio file, get the text and compare it with the provided text and click on a specific button in JS?
Hello. There was a need to write a small program to get text from an audio file, compare it with the provided text and click on a certain button. Now I'll explain what's going on:
1. On the site page I get: text (written), sound file with voice (in Russian).
2. You need to get the text from the sound file (what the person said) and compare it with the text from point 1.
3. If the text from point 1 and from the sound file (point 2) matches, then click on a certain button (Yes / No).
4. and then my script goes on.
Planned to write in ElectronJS, because I don’t know any other programming language for writing a program, and you need to do it all in a browser (ideally).
Accordingly, I am interested in packages, articles, etc., which would help me do this. Please advise. Thanks in advance!
Answer the question
In order to leave comments, you need to log in
2. https://cloud.yandex.ru/services/speechkit
3. It doesn't recognize it exactly, so we google the Levinshtein distance
about pressing the button - isn't it easier to call the function directly?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question