File Exchange

image thumbnail


version 1.0.1 (69.6 KB) by MathWorks Audio Toolbox Team
Automatic text-to-speech synthesis


Updated 27 Feb 2020

View Version History

View License

Convert text into human-like speech in a variety of voices and languages.

This entry enables you to synthesize strings into sampled speech recordings available as MATLAB vectors using a single function call.

You will need a license of Audio Toolbox, an internet connection, and an active subscription to a text-to-speech service of your choice – Google™ Cloud Speech-to-Text API, IBM™ Watson Speech to Text API, or Microsoft™ Azure Speech Services API.

See also: Automatic speech-to-text conversion (speech2text)

Cite As

MathWorks Audio Toolbox Team (2021). text2speech (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)


Thanks for making this fantastic tool. Would you be willing to add Amazon AWS Polly? Many believe that it has superior speech quality / capabilities. Would also be great to be able to get speech to either be played immediately, saved to local audio file, or chained so that when one utterance completes the next can start. Thanks!!!

Gabriele Bunkheila


Brian Hemmat

MATLAB Release Compatibility
Created with R2019b
Compatible with R2019a and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!