How to identify words from an audio file?

4 ビュー (過去 30 日間)
AMULYA PONNURU 17BIS0031
AMULYA PONNURU 17BIS0031 2018 年 10 月 24 日
回答済み: Rahul 2025 年 1 月 3 日
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 Center および File ExchangeAudio 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