機能別
音声合成と文字起こし
対応モデルはまだありません
現在、モデル一覧にこのルートに対応するモデルはありません。このページは参考として残しています。
#音声合成
/v1/audio/speech は生の音声バイト列を返します — レスポンスボディをそのままファイルに保存してください。voice と response_format は OpenAI TTS のパラメーターに準拠します。
tts.sh
curl https://www.aisplice.store/v1/audio/speech \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{
"model": "tts-1",
"voice": "alloy",
"input": "Hello from the gateway."
}' --output hello.mp3#文字起こし
/v1/audio/transcriptions は multipart です:音声ファイルとモデル名をアップロードします。/v1/audio/translations も同じ形式で、英語を返します。
transcribe.sh
curl https://www.aisplice.store/v1/audio/transcriptions \
-H "Authorization: Bearer $KEY" \
-F file=@meeting.mp3 \
-F model=whisper-1
# → {"text": "…transcript…"}まだ解決しませんか?
リクエスト ID かエラーメッセージを送っていただければ、こちらで調査します。