MATLAB Answers

Audio (mp3) to Text converter tool for MatLab?

65 views (last 30 days)
Rafayet Hossain
Rafayet Hossain on 3 Apr 2017
Commented: Piyush Prajapati on 26 Jun 2019
I am working on Music emotion recognition. For this, I need a tool that convert the audio (.mp3) file into text. Can anyone give me the tools or help me to solve this. If anyone have this tools please mail me. Thankyou.

  1 Comment

Walter Roberson
Walter Roberson on 3 Apr 2017
Any text in particular? For example are you looking for text that represents midi control signals that might be used to reproduce the music?

Sign in to comment.

Answers (1)

Gabriele Bunkheila
Gabriele Bunkheila on 16 Jan 2018
Hi Rafayet,
I work at MathWorks and I noticed this old question of yours just now. I thought I'd leave a link to our recent MATLAB Central sumbission speech2text in case it's still useful:
This enables to leverage 3rd party speech-to-text web services (so far including from Google, Microsoft and IBM) directly from MATLAB using a simple MATLAB Function. The syntax looks like the following:
>> [samples, fs] = audioread('helloaudioPD.wav');
>> soundsc(samples, fs)
>> speechObject = speechClient('Google','languageCode','en-US');
>> outInfo = speech2text(speechObject, samples, fs);
>> outInfo.TRANSCRIPT =
ans =
'hello audio product Developers'
>> outInfo.CONFIDENCE =
ans =
0.9385
Please refer to the html folder in the submission for a step-by-step getting started guide.
Thanks,
Gabriele.

  3 Comments

khcy82dyc
khcy82dyc on 17 Jan 2018
Hiya, I've been trying to do this with the valid json file and got this error: any advice? thanks!
Reference to non-existent field 'results'.
Error in speechClient/showOutput
Error in speechClient/googleAPI
Error in speechClient/speechTotext
Error in speech2text
Error in speech2textconvert (line 6) outInfo = speech2text(speechObject, samples, fs);
siva polagani
siva polagani on 3 Mar 2018
Undefined function or variable 'speechClient'. this is the error i get. plzz help me

Sign in to comment.

Sign in to answer this question.