SDK
Text to speech
Provider patches
OpenAI patch
ElevenLabs patch
Patch parameters
Migration and troubleshooting

Patch parameters

Translated

OpenAIElevenLabsTeen V1 behavior
inputtextSpeech text
modelmodel_idSelects routing, then becomes teen-v1
voicevoice_idUses a TeenageWorks ID or provider voice fallback
response_formatoutput_formatMaps to PCM, MP3, or WAV
cfg_valuecfg_valuePasses through unchanged
reference_audioreference_audioInline reference recording
reference_audio_formatreference_audio_formatReference recording format
timeoutrequest_options.timeout_in_secondsSets the TeenageWorks request timeout

The patch adds the required language value internally.

Ignored with a warning

OpenAI instructions and speed are ignored.

ElevenLabs seed, enable_logging, optimize_streaming_latency, language_code, voice_settings, pronunciation_dictionary_locators, previous_text, next_text, previous_request_ids, next_request_ids, use_pvc_as_ivc, apply_text_normalization, and apply_language_text_normalization are ignored. The server controls the generation seed.

Each ignored value emits TeenageWorksUnsupportedParameterWarning. Provider voice fallback emits TeenageWorksVoiceMappingWarning.

Rejected

  • Unsupported codecs raise UnsupportedAudioFormatError.
  • Timestamp methods, temperature, voice_description, reference_transcript, and reference_text raise UnsupportedFeatureError.
  • Unknown arguments raise TypeError.

Nothing is silently discarded.

When inline reference audio is present, the provider voice ID is not used.