Felo API PlatformFelo API Platform
v0.4.0
OpenAPI 3.1.0
サーバー:https://openapi.felo.ai
クライアントライブラリ

Audio

​

音声合成

​

Use model to select the speech generation model. Channel selection is unavailable for speech generation requests.

リクエストボディ
必須
application/json
  • input
    型: string
    最小長:  
    1
    最大長:  
    4096
    必須
  • model
    型: string
    最大長:  
    256
    必須
  • response_format
    型: string 列挙値
    値
    • pcm
    • mp3
  • speed
    型: number

    Currently only 1 is supported.

  • voice
    型: string
    最小長:  
    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.

レスポンス
  • 200
    型: string 形式: binary

    成功時は音声バイト列です。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 は確認済み上流コストと公開マークアップ・割引で精算します。

Request Example for post/api/v1/audio/speech
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
Generate speech

ヘルプが必要ですか?

  • API・請求・アカウントのご質問はサポートへ。
  • Discord で Felo の開発者と交流できます。
  • 更新履歴 をご覧ください。
  • ボリューム価格や購買についてのご相談は営業窓口へ。
  • LLM での構築をお考えですか?llms.txt をご覧ください。