SpeechSynthesize
SpeechSynthesize[expr]
synthesizes the contents of expr as an Audio object.
SpeechSynthesize[expr,voice]
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.
- Use SpokenString[expr] to get the text of the speech generated by SpeechSynthesize[expr].
- SpeechSynthesize[expr] synthesizes using a default voice. VoiceStyleData lists all available voices.
- SpeechSynthesize accepts all SpokenString options with the following additions: [List of all options]
-
GeneratedAssetFormat Automatic the format of the result GeneratedAssetLocation $GeneratedAssetLocation location of the generated asset Language "English" the language to use for synthesis Method Automatic the method to use OverwriteTarget False whether to overwrite an existing file - Possible method settings include:
-
Automatic local synthesizer (default) ElevenLabs synthesizer "GoogleSpeech" Google speech synthesizer - 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.
-
"ArraySizeLimit" Infinity maximal number of elements of an array or arguments of a function "DetailedGraphics" False controls the description of graphics primitives "ExpressionDepthLimit" Infinity maximal depth of an expression allowed in the output GeneratedAssetFormat Automatic the format of the result GeneratedAssetLocation $GeneratedAssetLocation location of the generated asset "IncludeParentheses" False controls the delimiting of subexpressions "IntegerLimit" Infinity maximal integer that will be given with all its digits Language "English" the language to use for synthesis Method Automatic the method to use OverwriteTarget False whether to overwrite an existing file "PostProcess" True whether to remove special formatting used by Speak from the output "RealPrecisionLimit" 3 how many significant digits to include in approximate numbers "StringLengthLimit" Infinity maximal number of characters in strings and symbol names
List of all options
Examples
open allclose allBasic Examples (2)
Scope (5)
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:
Options (5)
GeneratedAssetLocation (1)
Specify the location for the generated asset:
Use GeneratedAssetLocationNone to create an in-core Audio object:
Language (2)
Method (1)
Text
Wolfram Research (2017), SpeechSynthesize, Wolfram Language function, https://reference.wolfram.com/language/ref/SpeechSynthesize.html (updated 2024).
CMS
Wolfram Language. 2017. "SpeechSynthesize." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/SpeechSynthesize.html.
APA
Wolfram Language. (2017). SpeechSynthesize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SpeechSynthesize.html