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

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

**メソッド**: `client.generate_transcription(...)`または`client.create_transcription(...)`。

### 例

```ruby theme={null}
require 'phaseo_sdk'

client = PhaseoSdk::Phaseo.new(api_key: ENV.fetch("PHASEO_API_KEY"))
transcript = client.generate_transcription(
  model: 'openai/gpt-4o-transcribe',
  audio_b64: 'base64_audio_data',
  language: 'en'
)
```

### 主なパラメーター

* `model`（必須）：文字起こしに対応するモデルのID。
* `audio_url`または`audio_b64`（必須）：音声データ（URLまたはbase64）。
* `language`：言語コードのヒント（例：`en`）。
* `prompt`：精度を高めるための任意のコンテキスト。
* `temperature`（0～2）：サンプリングのランダム性。
* `response_format`：`json`、`text`、`srt`、`verbose_json`など。

### 戻り値

`AudioTranscriptionResponse`


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