text2speech
Syntax
Description
[
synthesizes a speech signal from the provided text using a HiFi-GAN/Tacotron2 pretrained
model.speech
,fs
] = text2speech(text
)
Note
Using the HiFi-GAN/Tacotron2 pretrained model requires Deep Learning Toolbox™ and Audio Toolbox™ Interface for SpeechBrain and Torchaudio Libraries. You can download this support package from the Add-On Explorer. For more information, see Get and Manage Add-Ons.
[
synthesizes a speech signal using the specified pretrained deep learning model or
third-party speech service..speech
,fs
] = text2speech(text
,Client=clientObj
)
Note
To use third-party speech services, you must download the extended Audio Toolbox functionality from File Exchange. The File Exchange submission includes a tutorial to get started with the third-party services.
Examples
Input Arguments
Output Arguments
Limitations
The HiFi-GAN/Tacotron2 model cannot synthesize speech signals longer than approximately 10 seconds.
Version History
Introduced in R2022b