Chat Voice Vox

Chat Voice Vox · GPT-Aktionen

Chat Voice Vox

非公式です。音声合成サービスVoiceVoxのAPI。テキストを音声に変換し、生成された音声のURLを返します。

  • POST /voicevox/audiopostAudio

    テキストを音声に変換し、生成された音声のURLを返す

Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "Chat Voice Vox",
    "description": "非公式です。音声合成サービスVoiceVoxのAPI。テキストを音声に変換し、生成された音声のURLを返します。",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://chat-voicevox.inu-ai.com/v1",
      "description": "VoiceVox音声合成サービスAPI"
    }
  ],
  "paths": {
    "/voicevox/audio": {
      "post": {
        "operationId": "postAudio",
        "x-openai-isConsequential": false,
        "description": "テキストを音声に変換し、生成された音声のURLを返す",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "text"
                ],
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "読み上げる文"
                  },
                  "speaker": {
                    "type": "integer",
                    "description": "使用可能な声のID(例:0から86まで)",
                    "minimum": 0,
                    "maximum": 86
                  },
                  "pitch": {
                    "type": "number",
                    "description": "ピッチ"
                  },
                  "intonationScale": {
                    "type": "number",
                    "description": "イントネーション"
                  },
                  "speed": {
                    "type": "number",
                    "description": "話速"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "音声合成が成功し、音声のダウンロード情報を返す",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "URL": {
                      "type": "string",
                      "description": "mp3形式音声ファイルのダウンロードURL"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}