How to identify words from an audio file?

4 次查看(过去 30 天)
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?

回答(1 个)

Rahul
Rahul 2025-1-3
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.

类别

Help CenterFile Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by