Skip to content

How to Generate Speech

Convert text to natural-sounding speech using Get3W's text-to-speech models.

Quick Start

bash
curl -X POST "https://api.get3w.com/api/v3/minimax/speech-02-hd" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Welcome to Get3W, the unified AI platform.",
    "voice_id": "default"
  }'
python
import get3w

output = get3w.run(
    "minimax/speech-02-hd",
    {
        "text": "Welcome to Get3W, the unified AI platform.",
        "voice_id": "default"
    }
)

print(output["outputs"][0])
javascript
const output = await client.run("minimax/speech-02-hd", {
    text: "Welcome to Get3W, the unified AI platform.",
    voice_id: "default",
});

console.log(output.outputs[0]);

Available Models

ModelQualitySpeedLanguages
Minimax Speech 02HighFastMulti-language
ElevenLabs V3Very HighMediumMulti-language
ElevenLabs FlashGoodFastMulti-language

Common Parameters

ParameterTypeDescriptionDefault
textstringThe text to convert to speechRequired
voice_idstringVoice identifierdefault
speednumberSpeech speed multiplier1.0
languagestringLanguage code (e.g., "en")auto

Voice Cloning

Clone a voice from an audio sample:

bash
curl -X POST "https://api.get3w.com/api/v3/elevenlabs/voice-changer" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio_url": "https://cdn.get3w.com/uploads/voice-sample.mp3",
    "text": "This is a cloned voice speaking."
  }'

Next Steps

Released under the MIT License.