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

# 翻訳

> TypeScript SDKで /audio/translations を呼び出します。

**メソッド**: `client.generateTranslation()`.

### 例

```typescript theme={null}
const translated = await client.generateTranslation({
  model: "openai/gpt-4o-translate",
  file: "data:audio/mp3;base64,...",
});
```

### 主なパラメーター

* `model` 必須: 翻訳に対応したモデルのID。
* `file` 必須: 翻訳する音声データ。
* `prompt`: 翻訳の参考にする任意のコンテキスト。
* `temperature` (0–2): サンプリングのランダム性。
* `response_format`: `json`, `text`, `srt`, `verbose_json`, など

### 戻り値

`AudioTranscriptionResponse`

```json theme={null}
{
  "text": "Hello world"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.