> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openp.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 语音翻译

> POST /v1/audio/translations —— 把任意语言音频翻译为英文

把任意语言的音频文件 **翻译并转写为英文**。

## 请求

```bash theme={null}
curl https://openp.ai/v1/audio/translations \
  -H "Authorization: Bearer $OPENPAI_API_KEY" \
  -F file=@chinese.mp3 \
  -F model=whisper-1 \
  -F response_format=json
```

### 参数

与 [Transcriptions](/api-reference/openai/audio-transcriptions) 相同,但:

* 输出语言 **固定为英文**(无 `language` 字段)。
* 仅 `whisper-1` 支持此接口。

## 响应

```json theme={null}
{"text": "Hello, this is a test audio."}
```

## 翻译到其他语言

若需要把音频翻译到 **非英文**,推荐:

1. 用 `/v1/audio/transcriptions` 先转写为原语言文字。
2. 把文字传给 `/v1/chat/completions` 让 LLM 翻译为目标语言。

```python theme={null}
text_zh = client.audio.transcriptions.create(model="whisper-1", file=open("a.mp3","rb")).text

text_ja = client.chat.completions.create(
    model="gpt-5.5",
    messages=[
        {"role": "system", "content": "Translate to Japanese."},
        {"role": "user", "content": text_zh},
    ],
).choices[0].message.content
```

## 计费

同 transcriptions,按音频时长计费。
