How can I convert a .wav audio file into text?

조회 수: 2 (최근 30일)
Varunil Shah
Varunil Shah 2020년 9월 23일
답변: Ruchika P Barman 2022년 7월 8일
I have tired using the speech2text, but I am no having success. The error that keeps popping up is "Expected input to be a vector." I would apperciate any help.
  댓글 수: 1
jibrahim
jibrahim 2020년 9월 24일
Hi Varunil,
speech2text should do that:
Can you please provide more info about the error? How exactly are you calling speech2text?

댓글을 달려면 로그인하십시오.

답변 (1개)

Ruchika P Barman
Ruchika P Barman 2022년 7월 8일
It is my understanding that you want to convert a .wav audio file into text and are encountering errors using speech2text. You may try the following commands to achieve the same:
[data, fs] = audioread('NameOfWavFile.wav');
save NameOfTextFile.txt data -ASCII
Please provide more details as to how you are calling the function speech2text in your code so, I can help you with that.

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by