MATLAB Answers


speech to text and text to speech conversion (STS)

Asked by Max
on 29 Jun 2012
Latest activity Commented on by Walter Roberson
on 12 Oct 2016 at 20:17


I am working on conversion of Speech to TExt and then Text to Speech.. I want guidance in it on how to proceed through it in matlab ..


Daniyal, yash would not have received notification of your response. You need to go to yash's profile and send yash a message through it.

i'm also doing the same project you did. now i tried in some ways but no perfect solution wouldnot achieved. can you help me Max, if possible can you the code to me

Can I get the code, too? Now, I am doing a research about speech to text conversion. if you would not mind, I'll give my email to send the code. Thank you :)


No products are associated with this question.

5 Answers

Answer by Shaun VanWeelden on 28 Dec 2012

First off, Google is amazing.

Secondly, have you had a look at this? It looks like something that could be useful to you.


Answer by Yash
on 30 Jun 2012

for sppech to text you will have to define different words in the data base and for that also there are some microsoft utlities you have to install


Hi Max you have worked already on speech o text and text to speech codes .Can you give me that code as m also working on it.

See my answer (elsewhere on this page) that I just added.

Answer by deepak
on 29 Mar 2014

  • *how to get text from audio file ?* *

hi.. guys i'm doing a project in image processing.. for my application to start I required to take the text from a audio which is pre-recoded. I know there is a tts file which gives voice to text using Net.addAssembly

in similar way using Net.addAssembly. I required the code for speech to text (or) audio to text.. I required it immediately.. If anyone tried it please post to help me..

or if u know that, what are all the class I required from Net.AddAssembly to invoke to get the text from the audio. please let me know as soon as possible..

thanks in advance..

  1 Comment

Did you reach anything yet?

Answer by Image Analyst
on 12 Jun 2016

Here is text to speech code for Windows operating system:

% Program to do text to speech.
% Get user's sentence
userPrompt = 'What do you want the computer to say?';
titleBar = 'Text to Speech';
defaultString = 'Hello World!  MATLAB is an awesome program!';
caUserInput = inputdlg(userPrompt, titleBar, 1, {defaultString});
if isempty(caUserInput)
end; % Bail out if they clicked Cancel.
caUserInput = char(caUserInput); % Convert from cell to string.
obj = System.Speech.Synthesis.SpeechSynthesizer;
obj.Volume = 100;
Speak(obj, caUserInput);


Answer by REXY J
on 12 Oct 2016 at 18:00


  1 Comment

Walter Roberson
on 12 Oct 2016 at 20:17

Yes, it is fine to post a link to code you have written that does speech to text.

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!