メインコンテンツまでスキップ

TTS 音声

すべての​音声リクエストは​ voice_id で​音声を​指定します。​Shisa は​自然な​日本語・英語音声の​カタログを​提供しており、​各音声には​対応言語、​性別、​対応する​音声形式、​ストリーミング対応状況が​あります。​アプリケーションが​常に​最新の​リストを​使用できるよう、​カタログを​プログラムで​取得してください。

利用​可能な​音声を​一覧取得する

GET https://api.shisa.ai/tts/voices

この​エンドポイントは​音声オブジェクトの​ JSON 配列を​返します。​音声生成で​使用する​ものと​同じ​ベアラートークンで​認証します。

curl -s -X GET "https://api.shisa.ai/tts/voices" \
-H "Authorization: Bearer YOUR_API_KEY" | jq .

音声オブジェクトの​フィールド

配列内の​各エントリは​音声オブジェクトです。

フィールド説明
idstring (uuid)リクエストで​ voice_id と​して​使用する​ UUID。
descriptionstring人間が​読める​音声の​説明。
languagestring対応​言語。
genderstring音声の​性別​(Male、​Female、​Neutral)。
formatsarray対応する​出力音声形式。
streamingboolean音声が​リアルタイムストリーミングに​対応しているか​どうか。

レスポンス例:

[
{
"id": "c3abe79a-99b3-4a5f-8549-f5cb42985291",
"description": "Young male Japanese voice...",
"language": "Japanese & English",
"gender": "Male",
"formats": ["mp3", "ogg", "pcm"],
"streaming": true
}
]
注記

音声は​ formats 配列に​記載された​ format 値のみを​受け付け、stream: true は​ streaming が​ true の​場合に​のみ​機能します。​対応していない​形式を​リクエストすると​ 400 エラーが​返されます。

音声カタログ

以下の​カタログは​ GET /tts/voices エンドポイントから​ライブで​読み込まれます。

Voice IDDescriptionLanguageGenderFormatsStreaming
2e6a6c25-723a-48c3-a347-c97144ebe191Soft and warm female Japanese voice perfect for customer service and some conversational applications.Japanese & EnglishFemalemp3oggpcmYes
85a43b2f-b583-4d6a-8372-16dd4f94e6ebCute and child like female Japanese voice. Good for mascots and cartoon characters.JapaneseFemalewavoggNo
6d19a9d9-7b68-41d9-80cf-31296feedf31Formal female Japanese voice. Good for customer service and formal conversations.JapaneseFemalewavoggNo
54be6893-ee81-4df5-b7bf-2828cf7dd8d4Cute Neutral Japanese voice. Good for mascots and cartoon characters.JapaneseNeutralwavoggNo
b1b6302c-88a3-4572-919c-f96216a2490fDeeper male Japanese voice. Good for customer service and formal conversation.JapaneseMalewavoggNo
1a243aba-67a6-4456-806d-1833a4d348e2Sweet Young female Japanese voice. Good for casual conversation and receptionist.JapaneseFemaleoggwavNo
c304084f-b568-4ad6-8ab0-a10260c7d9b4Young Male Japanese voice. Good for general purpose and casual conversation.JapaneseMaleoggwavNo
c5e024cf-6b94-4695-b961-ccc1baae10e7Relaxed sweet mature female Japanese voice. Good for casual conversation and receptionist.JapaneseFemalewavoggNo
950590c1-c9ca-4406-ac5d-4ace2a6f9d79Soft-spoken young female Japanese voice with a reserved, gentle tone. Good for narration and conversation.JapaneseFemalemp3pcmflacwavYes
199a140e-be70-4948-8fc8-38d0989791f1Clear friendly mid-tone Japanese male voice. Good for narration and dialogue.JapaneseMalemp3pcmflacwavYes
738144d0-0bfc-4787-9eed-1212de2b0847Young male Japanese voice good for Customer service and conversational applications.Japanese & EnglishMalemp3oggpcmYes
8764dd45-a44f-40ef-9ff3-259ad411f86fEnergetic young female Japanese voice. Good for conversations.Japanese & EnglishFemalemp3oggpcmYes

12 voices available. Fetch the live list any time with GET /tts/voices.

次の​ステップ