How can I get my code to speak with a voice
古いコメントを表示
Im working on a big program and one of the few things I want it to do is speak. Does anyone have an idea. For example if my code is:
x=input('Hello','s');
if strcmpi(x,'Hello')
fprintf('Hello sir')
end
I want the hello sir to come out with a voice.
3 件のコメント
Sylvain KPEKOU
2018 年 12 月 8 日
defaultString = 'Hello Sir';
NET.addAssembly('System.Speech');
obj = System.Speech.Synthesis.SpeechSynthesizer;
obj.Volume = 100;
Speak(obj, defaultString );
Image Analyst
2018 年 12 月 8 日
Yes, that SpeechSynthesizer answer was already given below. Perhaps you didn't scroll down to the answers section to see it.
prathima k
2019 年 6 月 6 日
How can i store the speech in a variable and produce audio output in raspberry pi 3
採用された回答
その他の回答 (2 件)
There is nothing built-in. Try downloading these:
Note that some rely on third-party apps or objects, and might only work on some versions of MATLAB. I know that at least some of them work, because I remember playing with them a year or two ago.
2 件のコメント
Rainaire Hansford
2017 年 7 月 30 日
Walter Roberson
2017 年 7 月 30 日
The File Exchange contains MATLAB code (and possibly C or C++ code) that has been written by volunteers and made available for general use.
Some of the contributions for Text To Speech also need additional software packages beyond that.
Jan
2017 年 8 月 29 日
0 投票
カテゴリ
ヘルプ センター および File Exchange で Deep Learning Toolbox についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!