tools.elevenlabs_tts module

Text-to-speech via ElevenLabs API, uploaded to the current channel.

async tools.elevenlabs_tts.run(text, voice_name='Stargazer', stability=0.75, similarity_boost=0.75, model_id='eleven_v3', ctx=None)[source]

Execute this tool and return the result.

Parameters:
  • text (str) – Text content.

  • voice_name (str) – The voice name value.

  • stability (float) – The stability value.

  • similarity_boost (float) – The similarity boost value.

  • model_id (str) – The model id value.

  • ctx (ToolContext | None) – Tool execution context providing access to bot internals.

Returns:

Result string.

Return type:

str