How to identify words from an audio file?

5 views (last 30 days)
AMULYA PONNURU 17BIS0031
AMULYA PONNURU 17BIS0031 on 24 Oct 2018
Answered: Rahul on 3 Jan 2025
Hello ppl I want to identify the words of an audio file that is recorded with a little gap in between the words. It has only basic words like left, right, back, etc., and guve inputs to the arduino depending on the word recognized. I don't know if this is very simple!! But i need help. Plse tell if you guys know something about it. Thanks in advance?

Answers (1)

Rahul
Rahul on 3 Jan 2025
In order to identify words from an audio file, consider using the following MathWorks File Exchange submission: https://www.mathworks.com/matlabcentral/fileexchange/65266-speech2text
Here is an example:
% Reading and playing the recorded audio
[audio, fs] = audioread('recorded_audio.wav');
soundsc(audio, fs);
% Converting speech from audio to text using 'speechClient' which connects
% to use use third party API's for the conversion.
speechObject = speechClient('Google','languageCode','en-US');
outInfo = speech2text(speechObject, samples, fs);
>> outInfo.Transcript
ans =
"hello my name is Rahul"
>> outInfo.Confidence
ans =
0.8640
Refer to the following MATLAb Answer and MathWorks documentation to know more:
Hope this helps! Thanks.

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!