Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NIJIVOICE_API_KEY | Yes | Your NijiVoice API key |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_voice_actors | Get the list of voice actors.
Returns:
A list of voice actors with their details. |
| generate_voice | 音声を生成してその結果を返す
Args:
script: 読み上げるテキスト(最大3,000文字)(必須)
actor_id: 使用するVoice ActorのID(省略時は利用可能な最初のアクターを使用)
speed: 読み上げスピード(0.4~3.0、デフォルト: 1.0)
emotional_level: 感情レベル(0.0~1.5、デフォルト: -1.0は声優のデフォルトを使用)
sound_duration: 音素発音の長さ(0.0~1.7、デフォルト: -1.0は声優のデフォルトを使用)
format: 音声フォーマット("mp3"または"wav"、デフォルト: "mp3")
Returns:
以下を含む音声生成レスポンス:
- audioFileUrl: 音声再生用のURL
- audioFileDownloadUrl: 音声ダウンロード用のURL
- duration: 音声の長さ(ミリ秒)
- remainingCredits: 生成後の残りクレジット |
| get_credit_balance | クレジット残高を取得
Returns:
クレジット残高 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| voice_generation_prompt | Prompt for generating voice using NijiVoice API. Returns: The prompt text. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| voice-actors://list | |
| credit://balance |