Create Fast NPC / Character Voice Line (MP3)
create_npc_voice_lineSynthesize an instant (<3s) English character voice bark or tabletop NPC dialogue MP3 (1–500 chars) in one of 8 preset voices with optional speed and emotion control. Costs 2 credits per 100 characters (minimum 2 credits — a new 30-credit account can generate 15 tabletop MP3 barks free). Returns a 24-hour signed MP3 download URL immediately. Requires Authorization: Bearer avs_...
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script": "<script>",
"voiceId": "<voiceId>"
},
"name": "create_npc_voice_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| speed | No | Optional speech speed multiplier (0.8–1.2, default 1.0). | |
| script | Yes | English spoken dialogue line (1–500 chars). | |
| emotion | No | Optional vocal emotion delivery: neutral, happy, angry, sad, fearful, surprised (default "neutral"). | |
| voiceId | Yes | Built-in English voice ID: Friendly_Person, Wise_Woman, Lively_Girl, Calm_Woman, Casual_Guy, Deep_Voice_Man, Patient_Man, Young_Knight. |