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.
GPT-4o Transcribe Diarize:支持说话人分离的语音转录模型。包含 星高算力 调用示例与参数。
gpt-4o-transcribe-diarize
curl "https://api.星高算力/v1/audio/transcriptions" \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "file=@speech.wav" \ -F "model=gpt-4o-transcribe-diarize" \ -F "response_format=diarized_json" \ -F "chunking_strategy=auto"
from openai import OpenAI client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.星高算力/v1") with open("speech.wav", "rb") as audio_file: transcript = client.audio.transcriptions.create( model="gpt-4o-transcribe-diarize", file=audio_file, response_format="diarized_json", chunking_strategy="auto", ) print(transcript)
file
model
language
prompt
response_format
chunking_strategy