> ## 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.

# 音声認識（STT）

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

**メソッド**: `client.generateTranscription()`。

### 例

```typescript theme={null}
const transcript = await client.generateTranscription({
  model: "openai/gpt-4o-transcribe",
  file: "data:audio/mp3;base64,...",
  language: "en",
});
```

### 主なパラメーター

* `model`（必須）：文字起こしに対応するモデルのID。
* `file`（必須）：音声データ（URL、base64、バイナリ）。
* `language`：言語コードのヒント（例：`en`）。
* `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.