client.generate_translation(...) 或 client.create_translation(...)。
示例
关键参数
model(必填):支持翻译的模型 ID。audio_url或audio_b64(必填):要翻译的音频数据。prompt:用于指导翻译的可选上下文。temperature(0–2):采样随机度。response_format:json、text、srt、verbose_json等。
返回值
AudioTranscriptionResponse