MATLAB Answers

Text to speech synthesis matlab code

130 ビュー (過去 30 日間)
Shenbagalakshmi Veliah
Shenbagalakshmi Veliah 2014 年 10 月 18 日
コメント済み: Mohamed 2020 年 7 月 6 日 2:59
Hello everyone can anyone pls tell me matlab code for text to speech synthesis without using system speech synthesizer...pls help me...

  0 件のコメント

Sign in to comment.

採用された回答

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 件のコメント

表示 22 件の古いコメント
Basma Maher
Basma Maher 2020 年 6 月 2 日
How can i save the audio output in a file.wav?
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 日 2:59
how can i store that computer voice on my computer?

Sign in to comment.

その他の回答 (6 件)

Pertor
Pertor 2016 年 5 月 27 日
編集済み: Image Analyst 2016 年 5 月 27 日
Perhaps this website may be useful. Though I don't get it.

  0 件のコメント

Sign in to comment.


Deba Choudhury
Deba Choudhury 2017 年 8 月 27 日
It would quite a help if you explain the code working.

  3 件のコメント

Walter Roberson
Walter Roberson 2017 年 8 月 27 日
If you are referring to Image Analyst's code: it works by activating a .NET assembly, creating a .NET object using the assembly, and invoking a method on object to do the work.
Another way of phrasing this is that it more or less makes an operating system call to do the work.
The technique will work only for MS Windows.
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.

Sign in to comment.


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?

Sign in to comment.


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

Sign in to comment.


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.

  0 件のコメント

Sign in to comment.


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

  0 件のコメント

Sign in to comment.

Categories


Translated by