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.

 Respuesta aceptada

Image Analyst
Image Analyst el 5 de En. de 2019
Editada: Image Analyst el 5 de En. de 2019

0 votos

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().

4 comentarios

Aditya Shau
Aditya Shau el 5 de En. de 2019
Editada: Aditya Shau el 5 de En. de 2019
It is fine, thank you. But if my data is in onedim cell array with characters then how to convert it into text and then to speech. KIndly help
Image Analyst
Image Analyst el 5 de En. de 2019
Did you see this line:
caUserInput = char(caUserInput); % Convert from cell to string.
? That converts the variable from a cell array into a string.
Image Analyst
Image Analyst el 2 de Jun. de 2020
Use a microphone and your audio recorder of your OS to record the sound your computer makes to your hard drive or SSD. Or use an app like Audacity: https://www.audacityteam.org/ (freeware, open source).
Jennish Shah
Jennish Shah el 4 de Dic. de 2020
Editada: Image Analyst el 4 de Dic. de 2020
While audacity team is a good resource, checkout https://myvoice2text.com/. This is an amazing tool that I've been using lately.

Iniciar sesión para comentar.

Más respuestas (1)

Categorías

Preguntada:

el 5 de En. de 2019

Editada:

el 4 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by