MATLAB: Text to voice conversion

importing excel datatext to speech

I am working in the text to speech conversion in Matlab. The text is present in a notepad. I request you to kindly assist me in converting the text to speech
I will really thankful if you can assist for coding in Matlab.
Thank you for your time and support.

Best Answer

For text to speech, if you have Windows, you can try my demo program:
% 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)
return;
end; % Bail out if they clicked Cancel.
caUserInput = char(caUserInput); % Convert from cell to string.
NET.addAssembly('System.Speech');
obj = System.Speech.Synthesis.SpeechSynthesizer;
obj.Volume = 100;
Speak(obj, caUserInput);
To get text out of a text file, you can use fileread().
Related Question