## Basic model info - Model name: elevenlabs/elevenlabs multilingual-sts-v2 - Model description: undefined - Endpoint name: voice-changer ## Model schema The model schema is defined in the OpenAPI schema: [OpenAPI Schema](https://oapi.sunra.ai/main/elevenlabs/multilingual-sts-v2/latest.json) ### Model input schema The model input schema is: ```json { "description": "Input schema for ElevenLabs Voice Changer.", "properties": { "seed": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "Random seed for reproducibility.", "title": "Seed", "x-sr-order": 402 }, "audio_url": { "anyOf": [ { "format": "uri", "maxLength": 2083, "minLength": 1, "type": "string" }, { "type": "string" } ], "description": "The input audio file URL", "title": "Audio Url", "x-sr-order": 300 }, "custom_voice_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Optional ElevenLabs voice ID to use instead of `voice`. When set, overrides the `voice` enum selection so you can use any voice the underlying ElevenLabs account has access to (cloned, library, etc.). Discover available voice IDs via https://docs.sunra.ai/multimodal/elevenlabs-voices.md", "title": "Custom Voice Id", "x-sr-order": 405 }, "output_format": { "default": "mp3_44100_128", "description": "Output format of the generated audio.", "enum": [ "mp3_22050_32", "mp3_44100_32", "mp3_44100_64", "mp3_44100_96", "mp3_44100_128", "mp3_44100_192", "pcm_8000", "pcm_16000", "pcm_22050", "pcm_24000", "pcm_44100", "pcm_48000", "ulaw_8000", "alaw_8000", "opus_48000_32", "opus_48000_64", "opus_48000_96", "opus_48000_128", "opus_48000_192" ], "title": "Output Format", "type": "string", "x-sr-order": 500 }, "remove_background_noise": { "default": false, "description": "If set, will remove the background noise from your audio input using our audio isolation model.", "title": "Remove Background Noise", "type": "boolean", "x-sr-order": 401 }, "voice": { "default": "Rachel", "description": "The voice to use for speech generation", "enum": [ "Rachel", "Aria", "Roger", "Sarah", "Laura", "Charlie", "George", "Callum", "River", "Liam", "Charlotte", "Alice", "Matilda", "Will", "Jessica", "Eric", "Chris", "Brian", "Daniel", "Lily", "Bill" ], "title": "Voice", "type": "string", "x-sr-order": 400 } }, "required": [ "audio_url" ], "title": "VoiceChangerInput", "type": "object" } ``` ### Model output schema The model output schema is: ```json { "description": "Output schema for ElevenLabs Voice Changer.", "properties": { "audio": { "properties": { "content_type": { "description": "The mime type of the file.", "title": "Content Type", "type": "string" }, "file_name": { "description": "The name of the file. It will be auto-generated if not provided.", "title": "File Name", "type": "string" }, "file_size": { "description": "The size of the file in bytes.", "title": "File Size", "type": "integer" }, "url": { "description": "The URL where the file can be downloaded from.", "title": "Url", "type": "string" } }, "required": [ "content_type", "file_name", "file_size", "url" ], "title": "SunraFile", "type": "object" }, "input_audio_duration": { "title": "Input Audio Duration", "type": "integer" } }, "required": [ "audio", "input_audio_duration" ], "title": "VoiceChangerOutput", "type": "object" } ``` ## Example inputs and outputs Use the following example inputs and outputs to understand the model. ### Input example ```json { "seed": null, "audio_url": "", "custom_voice_id": null, "output_format": "mp3_44100_128", "remove_background_noise": false, "voice": "Rachel" } ``` ### Output example ```json { } ``` ## Model code examples ### JavaScript ```javascript import { sunra } from "@sunra/client"; const result = await sunra.subscribe("elevenlabs/multilingual-sts-v2/voice-changer", { input: { audio_url: '', voice: 'Rachel', custom_voice_id: null, remove_background_noise: false, seed: null, output_format: 'mp3_44100_128' }, logs: true, onQueueUpdate: (update) => { console.log(`Status Update: ${update.status}, Request ID: ${update.request_id}`); }, }); console.log(result.data); console.log(result.requestId); ``` ### Python ```python import sunra_client result = sunra_client.subscribe( "elevenlabs/multilingual-sts-v2/voice-changer", arguments={ "audio_url": "", "voice": "Rachel", "custom_voice_id": None, "remove_background_noise": False, "seed": None, "output_format": "mp3_44100_128" }, with_logs=True, on_enqueue=print, on_queue_update=print, ) print(result) ``` ### Java ```java import ai.sunra.client.*; import java.util.Map; import com.google.gson.JsonObject; var client = SunraClient.withEnvCredentials(); var response = client.subscribe( "elevenlabs/multilingual-sts-v2/voice-changer", SubscribeOptions.builder() .input(Map.of( "audio_url", "", "voice", "Rachel", "custom_voice_id", null, "remove_background_noise", false, "seed", null, "output_format", "mp3_44100_128")) .resultType(JsonObject.class) .onQueueUpdate(update -> System.out.printf( "\nStatus Update: %s, Request ID: %s%n", update.getStatus(), update.getRequestId() )) .logs(true) .build() ); System.out.println("Completed!"); System.out.println(response.getData()); ``` ### Kotlin ```kotlin import ai.sunra.client.kt.* import com.google.gson.JsonObject val client = createSunraClient() val response = client.subscribe( endpointId = "elevenlabs/multilingual-sts-v2/voice-changer", input = mapOf( "audio_url" to "", "voice" to "Rachel", "custom_voice_id" to null, "remove_background_noise" to false, "seed" to null, "output_format" to "mp3_44100_128"), options = ai.sunra.client.kt.SubscribeOptions(logs = true), onUpdate = { update -> println("\nStatus Update: ${update.status}, Request ID: ${update.requestId}") } ) println("Completed!") println(response.data) ``` ### Curl ```bash curl --request POST \ --url https://api.sunra.ai/v1/queue/elevenlabs/multilingual-sts-v2/voice-changer \ --header "Authorization: Key $SUNRA_KEY" \ --header "Content-Type: application/json" \ --data '{"audio_url":"","voice":"Rachel","custom_voice_id":null,"remove_background_noise":false,"seed":null,"output_format":"mp3_44100_128"}' ``` ## Model readme undefined