How can I convert a .wav audio file into text?
4 次查看(过去 30 天)
显示 更早的评论
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
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
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!