Text to speech synthesis matlab code

76 Ansichten (letzte 30 Tage)
Shenbagalakshmi Veliah
Shenbagalakshmi Veliah am 18 Okt. 2014
Kommentiert: Mohamed am 6 Jul. 2020
Hello everyone can anyone pls tell me matlab code for text to speech synthesis without using system speech synthesizer...pls help me...

Akzeptierte Antwort

Image Analyst
Image Analyst am 18 Okt. 2014
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 Kommentare
Image Analyst
Image Analyst am 2 Jun. 2020
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 am 6 Jul. 2020
how can i store that computer voice on my computer?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (6)

Pertor
Pertor am 27 Mai 2016
Bearbeitet: Image Analyst am 27 Mai 2016
Perhaps this website may be useful. Though I don't get it.

Deba Choudhury
Deba Choudhury am 27 Aug. 2017
It would quite a help if you explain the code working.
  3 Kommentare
Vinay Vinay
Vinay Vinay am 8 Nov. 2019

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

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

Melden Sie sich an, um zu kommentieren.


sadiq husaini
sadiq husaini am 14 Okt. 2017
Need the source code of this class (System.Speech.Synthesis.SpeechSynthesizer)? any one help me ? thanks in advance.
  2 Kommentare
Image Analyst
Image Analyst am 14 Okt. 2017
If you get hired onto the right team, you may be able to get to the source code.
Jan
Jan am 14 Okt. 2017
@sadiq: You ask a Matlab forum to provide the source code of a Windows library, which is obviously a protected property of Microsoft. Seriously?

Melden Sie sich an, um zu kommentieren.


soundarya sopna
soundarya sopna am 17 Feb. 2018
i need coding for extact of text and audio conversion
  2 Kommentare
Image Analyst
Image Analyst am 17 Feb. 2018
sneha madre
sneha madre am 22 Feb. 2018
how to reduce delay in text to speech conversion between two word or more in matlab .please send command.thanks

Melden Sie sich an, um zu kommentieren.


Priya Raj
Priya Raj am 21 Mär. 2018
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 am 25 Jan. 2020
Audio Toolbox (R2019a or later) supports calling into popular 3rd-party APIs for speech synthesis:

Kategorien

Mehr zu Segmentation finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by