Skip to content

Voice assets ​

Voices support text-to-speech and digital human video generation. Use public voices through voice_id; upload your own voices as assets and refer to them with voice_asset_id.

Upload training audio ​

http
POST /v1/assets/uploads
bash
curl https://moonnexai.com/v1/assets/uploads \
  -H "Authorization: Bearer <MOONNEXAI_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/voice.mp3",
    "purpose": "digital_human_voice",
    "metadata": {
      "name": "brand-host-voice"
    }
  }'

Create or use a voice task ​

bash
curl https://moonnexai.com/v1/tasks \
  -H "Authorization: Bearer <MOONNEXAI_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "digital-human-audio-v8",
    "voice_asset_id": "asset_voice_xxx",
    "text": "这是一段使用自有音色生成的音频。",
    "name": "custom-voice-audio"
  }'

Query media assets ​

bash
curl https://moonnexai.com/v1/assets/asset_voice_xxx \
  -H "Authorization: Bearer <MOONNEXAI_API_KEY>"

Audio Recommendations ​

  • Use clear human voice, reduce mix and background music.
  • The blogger says that the government is not going to be able to get the most out of the world.
  • Keep the volume stable.
  • Saves asset_id, easy for subsequent reuse.

Relevant Pages ​