version 1.0.8 (86.8 KB) by MathWorks Audio Toolbox Team
Automatic text-to-speech synthesis


Updated 27 Oct 2022

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, Microsoft™ Azure Speech Services API, or Amazon™ Polly. Amazon Polly™ requires R2022b or later.
See the Examples tab for detailed instructions on how to get started.
See also:

Cite As

MathWorks Audio Toolbox Team (2022). text2speech (https://www.mathworks.com/matlabcentral/fileexchange/73326-text2speech), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022b
Compatible with R2019b 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!