"ElevenLabs" (Service Connection)

Use the ElevenLabs API with the Wolfram Language.

Connecting & Authenticating

ServiceConnect["ElevenLabs"] creates a connection to the ElevenLabs API. If a previously saved connection can be found, it will be used; otherwise, a new authentication request will be launched.
Use of this connection requires internet access and an ElevenLabs account.


ServiceExecute["ElevenLabs","request",params] sends a request to the ElevenLabs API, using parameters params. The following give possible requests.

Synthesize Speech


"ListVoices" list of available voices for speech synthesis


"TextToSpeech" synthesize speech from text

  • "Text"(required)the text to synthesize
    "Voice"Automaticthe name or specification for the voice to be used
    "VoiceSettings"Automaticassociation of settings for the voice to be used
    "ModelID"Automaticname of the model to be used
    "OptimizeStreamingLatency"Automaticinteger between 0 and 4 to control latency
  • Examples

    open allclose all

    Basic Examples  (1)

    Create a new connection:

    List all available voices:

    Synthesize a piece of text:

    Scope  (3)

    Choose a voice at random:

    Synthesize a piece of text with that voice:

    Specify the voice just by its name:

    Each result will be slightly different since it is produced using a neural network.

    Specify settings to be used for the synthesis:

    Increasing the "OptimizeStreamingLatency" parameter will return faster results at the cost of quality: