Audio
音声合成
Use model to select the speech generation model. Channel selection is unavailable for speech generation requests.
- 型: stringinput最小長:1最大長:4096必須
- 型: stringmodel最大長:256必須
- 型: string 列挙値response
_format 値- pcm
- mp3
- 型: numberspeed
Currently only 1 is supported.
- 型: stringvoice最小長:1最大長:256
Optional non-blank voice ID. The upstream model determines whether a voice is required and which IDs it accepts. Catalog voices are examples.
- 型: string 形式: binary200
成功時は音声バイト列です。MP3 は
audio/mpeg、生 PCM はaudio/pcmで、WAV・JSON・SSEではありません。HTTP状態と転送完了を確認してから再生します。--failはエラー本文の音声ファイルへの保存を防ぎます。切断時の不完全なファイルは破棄してください。生 PCM の再生パラメータはチャネルで確認し、推測しないでください。STT は
input_audio_secondまたは token、TTS はinput_characterで課金されます。speech_billing_unitのutf16_code_unitとunicode_code_pointでは絵文字の数え方が異なります。仮押さえは上限ではなく、精算が非同期になる場合があります。証拠不足は無料を意味しません。両APIはX-Felo-Channelに対応し、選択チャネルへ一度だけ送信します。タイムアウト・切断後の自動再試行(SDKを含む)を無効にし、X-Request-Idと取得できたX-Generation-Idを保管してください。Console Playground は音声呼び出し未対応です。configured_ratesは固定済み単価と確認済み使用量、upstream_costは確認済み上流コストと公開マークアップ・割引で精算します。
curl https://openapi.felo.ai/api/v1/audio/speech \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"model": "",
"input": "",
"voice": "",
"response_format": "pcm",
"speed": 1
}'
@filename