Update Speech Engine
Replaces the configurable fields of a Speech Engine.
/el/v1/speech-engine/{speech_engine_id}Replaces the configurable fields of a Speech Engine.
Tenant key (ElevenLabs SDK convention).
In: header
Path Parameters
Query Parameters
AllModels streaming STT model. The router selects an eligible provider automatically.
Optional STT provider pin. Omit to use automatic provider routing.
Provider-specific STT setting with no standard Speech Engine field. Replace name with the option name; the JavaScript SDK accepts stt: { provider_options: { ... } }.
Portable STT setting with no standard Speech Engine field, such as turn_detection. Replace name with the setting name; the JavaScript SDK accepts stt: { input: { ... } }.
AllModels streaming TTS model. The router selects an eligible provider automatically.
Optional TTS provider pin. Omit to use automatic provider routing.
Provider-specific TTS setting with no standard Speech Engine field. Replace name with the option name; the JavaScript SDK accepts tts: { provider_options: { ... } }.
Portable TTS setting with no standard Speech Engine field. Supported names are text_buffer_mode, text_buffer_min_characters, text_buffer_target_characters, and text_buffer_max_characters.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
ElevenLabs-compatible Speech Engine configuration. Use standard ASR and TTS fields first. Use the stt and tts query extensions only to select non-ElevenLabs models or pass settings that have no standard Speech Engine field.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
import { writeFile } from "node:fs/promises";const response = await fetch("https://api.allmodels.io/el/v1/speech-engine/$SPEECH_ENGINE_ID", { method: "PATCH", headers: { ...{ Authorization: `Bearer ${process.env.ALLMODELS_API_KEY}` }, "Content-Type": "application/json" }, body: JSON.stringify({ "name": "Updated voice agent"})});if (!response.ok) throw new Error(`AllModels request failed: ${response.status}`);console.log(await response.json());import osimport requestspayload = { "name": "Updated voice agent"}response = requests.patch( "https://api.allmodels.io/el/v1/speech-engine/$SPEECH_ENGINE_ID", headers={"Authorization": f"Bearer {os.environ['ALLMODELS_API_KEY']}"}, json=payload, timeout=60,)response.raise_for_status()print(response.json())curl -X PATCH https://api.allmodels.io/el/v1/speech-engine/$SPEECH_ENGINE_ID \ -H "Authorization: Bearer $ALLMODELS_API_KEY" \ -H "Content-Type: application/json" \ --data '{ "name": "Updated voice agent"}'import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";const client = new ElevenLabsClient({ apiKey: process.env.ALLMODELS_API_KEY, baseUrl: "https://api.allmodels.io/el"});const engine = await client.speechEngine.update( "seng_01JZ8H4B1M4YDQ3Z4MXN8D0Q1A", { name: "Updated support agent" });import osfrom elevenlabs.client import ElevenLabsclient = ElevenLabs( api_key=os.environ["ALLMODELS_API_KEY"], base_url="https://api.allmodels.io/el",)engine = client.speech_engine.update( "seng_01JZ8H4B1M4YDQ3Z4MXN8D0Q1A", name="Updated support agent",){ "speech_engine_id": "string", "name": "string", "speech_engine": { "ws_url": "string", "request_headers": { "property1": "string", "property2": "string" } }, "allmodels": { "stt": { "model_id": "string", "provider": "string", "provider_options": { "property1": null, "property2": null }, "input": { "property1": null, "property2": null } }, "tts": { "model_id": "string", "provider": "string", "provider_options": { "property1": null, "property2": null }, "input": { "property1": null, "property2": null } } }, "property1": null, "property2": null}{ "error": "missing_api_key"}{ "detail": { "message": "string", "status": "string", "property1": null, "property2": null }}{ "detail": { "message": "string", "status": "string", "property1": null, "property2": null }}{ "detail": { "message": "string", "status": "string", "property1": null, "property2": null }}{ "detail": { "message": "string", "status": "string", "property1": null, "property2": null }}