text2speech

Automatic text-to-speech synthesis

1.3K Downloads

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 (2023). 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!

text2speech/examples

Version Published Release Notes
1.0.8

Added support for Amazon Polly.

1.0.7

- updated description

1.0.6

Improved command-line help for speechClient.

1.0.5

Updated speechClient to work with R2022b support for wav2vec 2.0

1.0.4

Fixed file location

1.0.3

Reacted to change in IBM url

1.0.2

Fixed error in Microsoft client

1.0.1

Added link to speech2text

1.0.0