text to voice conversion
조회 수: 7 (최근 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에서 Standard File Formats에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!