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 the expression using a default voice. $VoiceStyles lists all available voices.
  • SpeechSynthesize accepts all Speak options with the following additions:
  • MethodAutomaticmethod settings to use
    OverwriteTargetFalsewhether to overwrite an existing file
  • Use Method->{"StorageLocation"->loc} to specify the location of the generated signal. Possible settings for loc include:
  • Automatican audio object linking to a file with automatically generated name
    filean audio object linking to file
    "Memory"an in-memory audio object


open allclose all

Basic Examples  (2)

Speech synthesis of a piece of text:

Click for copyable input

Speech-synthesized spoken form of an expression:

Click for copyable input

Scope  (1)

Options  (2)

Properties & Relations  (1)

See Also

Speak  SpokenString  AudioCapture  AudioGenerator  Audio  Sound

Introduced in 2017