4.0

4.0 | 3 ratings Rate this file 67 downloads (last 30 days) File Size: 2.05 KB File ID: #18091

text-to-speech

by Siyi Deng

 

21 Dec 2007 (Updated 26 Dec 2007)

Code covered by BSD License  

text-to-speech, speech synthesis, tts, let Matlab speak

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

Download Now | Watch this File

File Information
Description

TTS text to speech.
    TTS (TXT) synthesizes speech from string TXT, and speaks it. The audio format is mono, 16 bit, 16k Hz by default.
    
    WAV = TTS(TXT) does not vocalize but output to the variable WAV.
 
    TTS(TXT,VOICE) uses the specific voice. Use TTS('','List') to see a list of availble voices. Default is the first voice.
 
    TTS(...,PACE) set the pace of speech to PACE. PACE ranges from -10 (slowest) to 10 (fastest). Default 0.
 
    TTS(...,FS) set the sampling rate of the speech to FS kHz. FS must be one of the following: 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000. Default 16.
    
    This function requires the Mirosoft Win32 Speech API (SAPI).
 
    Examples:
        % Speak the text;
        tts('I can speak.');
        % List availble voices;
        tts('I can speak.','List');
        % Do not speak out, store the speech in a variable;
        w = tts('I can speak.',[],-4,44100);
        wavplay(w,44100);

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
tts version 1.0

MATLAB release MATLAB 7.4 (R2007a)
Other requirements Win 32 environment, microsoft SAPI
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
11 Jan 2008 nikhil ekka  
07 Feb 2008 gghh www

nice

02 Mar 2009 vikas patel

nice work its really helpful to me...

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
sound Siyi Deng 22 Oct 2008 09:40:10
texttospeech Siyi Deng 22 Oct 2008 09:40:10
tts Siyi Deng 22 Oct 2008 09:40:10
sapi Siyi Deng 22 Oct 2008 09:40:10
speech synthesis Siyi Deng 22 Oct 2008 09:40:10
potw Cristina McIntire 07 Nov 2008 13:03:16
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com