synthesizes the contents of expr as an Audio object.
uses the specified voice to synthesize the speech signal.
Details and Options
- Speech synthesis is also known as text to speech and attempts to produce naturally worded speech rather than literal representations of expression structure.
- SpeechSynthesize["string"] synthesizes the text in "string".
- SpeechSynthesize[expr] works with mathematical expressions, graphics and other constructs.
- SpokenString[expr] gives the text of the speech generated by SpeechSynthesize[expr].
- SpeechSynthesize[expr] synthesizes using a default voice. $VoiceStyles lists all available voices.
- SpeechSynthesize accepts all SpokenString options with the following additions:
GeneratedAssetFormat Automatic the format of the result GeneratedAssetLocation $GeneratedAssetLocation location of the generated asset Language "English" the language to use for synthesis OverwriteTarget False whether to overwrite an existing file
- By default, the synthesized speech is placed under the "Audio" directory in $WolframDocumentsDirectory.
- Using Language->Automatic, the language of "string" is identified using LanguageIdentify.
- SpeechSynthesize uses machine learning. Its methods, training sets and biases included therein may change and yield varied results in different versions of the Wolfram Language.
Examplesopen allclose all
Basic Examples (2)
Speech synthesis using a specific voice:
Use $VoiceStyles to get the list of available voices:
Synthesize using a female voice:
Synthesize using an Italian voice:
Synthesize using a voice specified by an Association:
Specify the location for the generated asset:
Use GeneratedAssetLocationNone to create an in-core Audio object:
Wolfram Research (2017), SpeechSynthesize, Wolfram Language function, https://reference.wolfram.com/language/ref/SpeechSynthesize.html (updated 2021).
Wolfram Language. 2017. "SpeechSynthesize." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/SpeechSynthesize.html.
Wolfram Language. (2017). SpeechSynthesize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SpeechSynthesize.html