Text to speech synthesis matlab code

조회 수: 32 (최근 30일)
Shenbagalakshmi Veliah
Shenbagalakshmi Veliah 2014년 10월 18일
댓글: Mohamed 2020년 7월 6일
Hello everyone can anyone pls tell me matlab code for text to speech synthesis without using system speech synthesizer...pls help me...

채택된 답변

Image Analyst
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
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.
Mohamed
Mohamed 2020년 7월 6일
how can i store that computer voice on my computer?

댓글을 달려면 로그인하십시오.

추가 답변 (6개)

Pertor
Pertor 2016년 5월 27일
편집: Image Analyst 2016년 5월 27일
Perhaps this website may be useful. Though I don't get it.

Deba Choudhury
Deba Choudhury 2017년 8월 27일
It would quite a help if you explain the code working.
  댓글 수: 3
Vinay Vinay
Vinay Vinay 2019년 11월 8일

Can you please tell me code for the process you have told..creating .Net and invoking it

Image Analyst
Image Analyst 2019년 11월 8일
You don't need to do anything. In my code you simply start using NET.
With Windows systems, it's built-in or something.

댓글을 달려면 로그인하십시오.


sadiq husaini
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
Image Analyst 2017년 10월 14일
If you get hired onto the right team, you may be able to get to the source code.
Jan
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
soundarya sopna 2018년 2월 17일
i need coding for extact of text and audio conversion
  댓글 수: 2
Image Analyst
Image Analyst 2018년 2월 17일
sneha madre
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
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.

Brian Hemmat
Brian Hemmat 2020년 1월 25일
Audio Toolbox (R2019a or later) supports calling into popular 3rd-party APIs for speech synthesis:

카테고리

Help CenterFile 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!

Translated by