Pular para o conteúdo principal
POST
/
api
/
v1
/
llm
/
speech
/
tts
Python (SDK)
from mka1 import SDK


with SDK(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:

    res = sdk.llm.speech.speak(text="Hello, welcome to our text-to-speech service.", language="en", model="auto")

    # Handle response
    print(res)
"(binary)"

Documentation Index

Fetch the complete documentation index at: https://docs.mka1.com/llms.txt

Use this file to discover all available pages before exploring further.

Autorizações

Authorization
string
header
obrigatório

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Cabeçalhos

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Corpo

application/json

Parâmetros de solicitação para conversão de texto em fala com seleção de idioma.

text
string
obrigatório

Texto de entrada para converter em fala

Minimum string length: 1
language
enum<string>
padrão:auto

Código da língua: 'auto' para detecção automática, ou códigos de língua ISO 639-1.

Opções disponíveis:
auto,
en,
zh,
hi,
es,
ar,
bn,
pt,
ru,
ja,
pa,
de,
ko,
fr,
tr,
it,
th,
pl,
nl,
id,
vi,
ur
model
string
padrão:auto

Identificador do modelo TTS. O padrão é 'auto', que seleciona o provedor padrão. IDs resolvíveis no registro são enviados para o provedor correspondente.

Exemplo:

"auto"

Resposta

200 - audio/wav

Arquivo de áudio em formato WAV com cabeçalho de código de idioma

The response is of type file.