SLNG Text-to-Speech API
string · requiredstring · minLength: 1 · requiredstring · enum · requiredstringstringnumber · min: 0.5 · max: 2stringstringstringstringbooleanstring · enum
CosyVoice TTS model deployed on SLNG infrastructure
funaudiollm/cosyvoice:v1 - http
POST
https://api.slng.ai
/v1/tts/slng/funaudiollm/cosyvoice:v1
Text-to-Speech API for generating speech from text using SLNG funaudiollm/cosyvoice. CosyVoice TTS model deployed on SLNG infrastructure
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
funaudiollm/cosyvoice:v1 - http › Request Body
textText to synthesize
modeSynthesis mode: sft, zero_shot, or instruct
Enum values:
sft
zero_shot
instruct
Default: sft
voiceVoice ID
languageLanguage code
speedSpeech speed multiplier (0.5-2.0)
speakerSpeaker identifier (required for sft mode)
prompt_textPrompt text for zero_shot and instruct modes
instruct_textInstruction text (required for instruct mode)
prompt_audio_base64Base64-encoded prompt audio for zero_shot and instruct modes
streamingEnable streaming response
Default: false
return_formatResponse format
Enum values:
audio
base64
Default: audio
funaudiollm/cosyvoice:v1 - http › Responses
Successful synthesis
string · binary
Audio file content