text to voice conversion
38 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Image Analyst
2019-1-5
编辑:Image Analyst
2019-1-5
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);
Also see Walter's solution: https://www.mathworks.com/matlabcentral/answers/243672-hello-can-anyone-give-me-the-codes-for-text-to-speech-conversion-and-also-speech-recognition-thank-y#comment_344435
To get text out of a text file, you can use fileread().
4 个评论
Image Analyst
2020-6-2
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
2020-12-4
编辑:Image Analyst
2020-12-4
While audacity team is a good resource, checkout https://myvoice2text.com/. This is an amazing tool that I've been using lately.
更多回答(1 个)
jibrahim
2020-2-11
Audio Toolbox supports calling into popular 3rd-party APIs for speech transcription and synthesis:
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!