Text to speech synthesis matlab code
33 次查看(过去 30 天)
显示 更早的评论
Hello everyone can anyone pls tell me matlab code for text to speech synthesis without using system speech synthesizer...pls help me...
0 个评论
采纳的回答
Image Analyst
2014-10-18
Try this, if you have a Windows computer:
% 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);
25 个评论
Image Analyst
2020-6-2
The very first example in the help for audiowrite() shows you how to do that:
load handel.mat
filename = 'handel.wav';
audiowrite(filename,y,Fs);
You just have to make sure your filename extension has the correct extension to save it in whatever format you want, and audiowrite() will figure it out.
更多回答(6 个)
Pertor
2016-5-27
编辑:Image Analyst
2016-5-27
Perhaps this website may be useful. Though I don't get it.
0 个评论
Deba Choudhury
2017-8-27
It would quite a help if you explain the code working.
3 个评论
Vinay Vinay
2019-11-8
Can you please tell me code for the process you have told..creating .Net and invoking it
Image Analyst
2019-11-8
With Windows systems, it's built-in or something.
sadiq husaini
2017-10-14
Need the source code of this class (System.Speech.Synthesis.SpeechSynthesizer)? any one help me ? thanks in advance.
2 个评论
Image Analyst
2017-10-14
If you get hired onto the right team, you may be able to get to the source code.
Jan
2017-10-14
@sadiq: You ask a Matlab forum to provide the source code of a Windows library, which is obviously a protected property of Microsoft. Seriously?
soundarya sopna
2018-2-17
i need coding for extact of text and audio conversion
2 个评论
sneha madre
2018-2-22
how to reduce delay in text to speech conversion between two word or more in matlab .please send command.thanks
Priya Raj
2018-3-21
Sir, We have obtained the count of objects in our program and we want to output that count in the form of speech,How it can be done,ty.
0 个评论
Brian Hemmat
2020-1-25
Audio Toolbox (R2019a or later) supports calling into popular 3rd-party APIs for speech synthesis:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio Plugin Creation and Hosting 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!