Skip to content

Audio TTS ​

Hai bước: search voices → create TTS qua https://api.gommo.net/ai/audio.

1. Search voices ​

powershell
$body = "access_token=$env:TOKEN&domain=%REGISTRATION_DOMAIN%&action_type=search_voices&server=elevenlabs_cheap&page=0"
$voices = Invoke-RestMethod -Method POST `
  -Uri "https://api.gommo.net/ai/audio" `
  -ContentType "application/x-www-form-urlencoded" `
  -Body $body
$voiceId = $voices.data.voices[0].voice_id

Servers: elevenlabs_cheap | minimaxai_cheap | omnivoice_local

2. Create TTS ​

powershell
$ttsBody = "access_token=$env:TOKEN&domain=%REGISTRATION_DOMAIN%&action_type=tts&text=Hello from Gommo.&voice_id=$voiceId&server=elevenlabs_cheap"
$tts = Invoke-RestMethod -Method POST `
  -Uri "https://api.gommo.net/ai/audio" `
  -ContentType "application/x-www-form-urlencoded" `
  -Body $ttsBody
$tts.fileUrl

3. List history (tùy chọn) ​

Dùng action_type phù hợp trên cùng endpoint /vi/ai/audio.

Self-host (chỉ operator) ​

Khi deploy local — Deploy → Self-host nâng cao.

Playground ​

Audio TTS → Fetch voices → Run TTS.

Tiếp theo ​