Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Whisper 1:语音转文本模型。包含 MixRoute 调用示例与参数。
whisper-1
curl "https://api.mixroute.ai/v1/audio/transcriptions" \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "file=@speech.wav" \ -F "model=whisper-1"
from openai import OpenAI client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.mixroute.ai/v1") with open("speech.wav", "rb") as audio_file: transcript = client.audio.transcriptions.create( model="whisper-1", file=audio_file, ) print(transcript.text)
file
model
language
prompt
response_format