Text to Speech
Endpoint:/audio/speech
Main request parameters:
| Parameter | Description |
|---|---|
model | Model used for speech synthesis, supported model list. |
input | Text content to be converted into audio. |
voice | Reference voice, supports system preset voices, user preset voices, and user dynamic voices. |
Speech to Text
Endpoint:/audio/transcriptions
Content-Type: multipart/form-data
Main request parameters:
| Parameter | Description |
|---|---|
model | Model used for speech-to-text, supported model list. |
file | Audio file to be converted to text. |
Speech to Speech
This scene is currently only supported by Elevenlabs models. Please refer to the corresponding documentation.- Set
OPENAI_BASE_URLtohttps://api.elkapi.com/v1 OPENAI_API_KEYshould be set to your API Key- Most models have been adapted to the OpenAI mapping interface. Some models have not been adapted. Please refer to the model documentation.
Related Links
OpenAI Official Docs
OpenAI Audio API
OpenAI Official Docs
OpenAI TTS Guide