Hello can anyone give me the codes for text to speech conversion and also speech recognition thank you

24 ビュー (過去 30 日間)
Need matlab code for text to speech conversion and speech recognition

回答 (5 件)

Image Analyst
Image Analyst 2015 年 9 月 17 日
For text to speech, if you have Windows, you can try my demo program:
% 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);
Speech recognition is harder I think, because of all the different speakers and accents they could have. Anyway, I don't have any demo for that.
  3 件のコメント
Image Analyst
Image Analyst 2016 年 2 月 18 日
Use the computer function
>> computer
ans =
PCWIN64
Walter Roberson
Walter Roberson 2016 年 2 月 19 日
Anisio, see
ispc()
ismac()
isunix()
Note: isunix() is true on MAC, so if you wanted to test for Linux that could be isunix() && ~ismac()

サインインしてコメントする。


Balaji Prasath Madhaiyan
Balaji Prasath Madhaiyan 2017 年 2 月 19 日
can matlab produce arabic text to speech conversion?
  3 件のコメント
huda farooqui
huda farooqui 2018 年 3 月 11 日
Hey Roberson.. please let me know how can i do part of speech tagging in english text to speech conversion?
and one more thing do you know how to split a waveform in matlab when it reaches minimum threshold... i want to split wave when it reaches minimum amplitude ...
Walter Roberson
Walter Roberson 2018 年 3 月 11 日
Modern English is losing the distinction between adjectives and adverbs, so it is becoming difficult to do part of speech tagging. Semantic analysis in English is difficult work. Google translate does not even try: it does neural network type work by comparing corpuses of translated texts. Google reported that its AI have spontaneously developed an internal intermediary language for translation between different languages.

サインインしてコメントする。


Anisio Gomes
Anisio Gomes 2016 年 2 月 22 日
Hi Image, do you have this text to speech code for mac?
  3 件のコメント
taha khan
taha khan 2018 年 4 月 26 日
'say' is not recognized as an internal or external command, operable program or batch file.
this error shows when copy and past? why?
Walter Roberson
Walter Roberson 2018 年 4 月 26 日
taha khan:
Anisio Gomes asked specifically about code for mac. "say" is code specific to Mac. The error message you posted is specific to MS Windows, so we can tell that you are not using Mac.

サインインしてコメントする。


taha khan
taha khan 2018 年 4 月 26 日
Error using NET.addAssembly Attempt to execute SCRIPT addAssembly as a function: C:\Program Files\MATLAB\R2017a\toolbox\matlab\winfun\NET\+NET\addAssembly.m
Error in speech (line 11) NET.addAssembly('System.Speech');
this error comes when write code of convert to speech why ?

jibrahim
jibrahim 2020 年 2 月 11 日
Audio Toolbox supports calling into popular 3rd-party APIs for speech transcription and synthesis:

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by