Code covered by the BSD License  

Highlights from
text-to-speech

4.0

4.0 | 4 ratings Rate this file 51 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)

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

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| 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 (5)
11 Jan 2008 nikhil ekka  
07 Feb 2008 gghh www

nice

02 Mar 2009 vikas patel

nice work its really helpful to me...

21 Oct 2010 Sidra

goood work

20 Nov 2011 zee nisa

salam
i want to send text file as an input and speech as out put in matlab...
plz help me out

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
pick of the week Jiro Doke 11 Feb 2011 20:15:10

Contact us at files@mathworks.com