---
title: stt
description: 音声を文字に起こします。
canonical_url: https://orchestor.io/docs/cli/stt
markdown_url: https://orchestor.io/docs/cli/stt.md
related:
  - https://orchestor.io/docs/cli/jobs
  - https://orchestor.io/docs/cli/global-flags
contentType: reference
---

# stt

`orc stt transcribe` は、音声から文字起こしを作成します。 応答のジョブ ID を [`orc jobs`](https://orchestor.io/docs/cli/jobs.md) に渡すと、状態と結果を確認できます。

## 使い方

```bash title="terminal"
orc stt transcribe --audio-url "$AUDIO_URL" --json
```

*公開 HTTPS URL の音声を文字に起こします。*

## サブコマンド

### `transcribe`

音声を文字起こし

```bash title="terminal"
orc stt transcribe [options]
```

#### 固有のオプション

##### `--idempotency-key`

同じ入力の再送で同じジョブを返すキー。1〜255 文字の印字可能 ASCII。同じキーで異なる入力を送ると 409 です。

型: `string`。任意。

```bash title="terminal"
orc stt transcribe --idempotency-key <value>
```

##### `--audio-url`

(required) 処理が終わるまで取得可能な公開 HTTPS 音声 URL。ローカルファイルは先にアップロードします。

型: `string`。任意。

```bash title="terminal"
orc stt transcribe --audio-url <value>
```

##### `--segmentation`

単語の時刻から文単位の区間を作る設定。TTS では timestamps.words も有効にします。; (JSON object, e.g. '{"custom_id":"x"}')

型: `string`。任意。

```bash title="terminal"
orc stt transcribe --segmentation <value>
```

##### `--language-code`

文字起こしの言語ヒント。省略時は自動判定し、結果では検出した言語を返します。; max 16 chars

型: `string`。任意。

```bash title="terminal"
orc stt transcribe --language-code <value>
```

##### `--duration-seconds`

入力の長さの参考値。受付条件と料金はサーバーの実測値で決まります。

型: `number`。任意。

```bash title="terminal"
orc stt transcribe --duration-seconds <value>
```

##### `--metadata`

追跡用にジョブへ保存する値。生成先には送信されません。秘密や個人情報を含めないでください。; (JSON object, e.g. '{"custom_id":"x"}')

型: `string`。任意。

```bash title="terminal"
orc stt transcribe --metadata <value>
```

##### `--mode`

結果の受け取り方。async は即時受付、sync と subscribe は最大30秒の待機、webhook は終端通知です。; enum: async|sync|subscribe|webhook

型: `string`。任意。

```bash title="terminal"
orc stt transcribe --mode <value>
```

##### `--webhook-url`

終端通知を受ける公開 HTTPS URL。単独指定時は webhook モードになります。; max 2048 chars

型: `string`。任意。

```bash title="terminal"
orc stt transcribe --webhook-url <value>
```

##### `--wait-timeout-seconds`

sync または subscribe で HTTP 応答を待つ秒数。時間切れ後も同じジョブを追跡します。

型: `number`。任意。

```bash title="terminal"
orc stt transcribe --wait-timeout-seconds <value>
```

##### `--project-id`

同じワークスペース内でジョブを保存するプロジェクト。存在しない場合は課金前に拒否されます。; max 200 chars

型: `string`。任意。

```bash title="terminal"
orc stt transcribe --project-id <value>
```

## グローバルオプション

`orc stt` では、次の[グローバルオプション](https://orchestor.io/docs/cli/global-flags.md)を使用できます。

- [`--help`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%98%E3%83%AB%E3%83%97)
- [`--workspace`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%AF%E3%83%BC%E3%82%AF%E3%82%B9%E3%83%9A%E3%83%BC%E3%82%B9)
- [`--json`](https://orchestor.io/docs/cli/global-flags.md#json-%E5%87%BA%E5%8A%9B)
- [`--pretty`](https://orchestor.io/docs/cli/global-flags.md#json-%E5%87%BA%E5%8A%9B)
- [`--format`](https://orchestor.io/docs/cli/global-flags.md#%E5%87%BA%E5%8A%9B%E5%BD%A2%E5%BC%8F)
- [`--field`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%81%AE%E6%8A%BD%E5%87%BA)
- [`--fields`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%81%AE%E6%8A%BD%E5%87%BA)
- [`--raw`](https://orchestor.io/docs/cli/global-flags.md#%E5%80%A4%E3%81%A0%E3%81%91%E3%82%92%E5%87%BA%E5%8A%9B)
- [`--output`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%B8%E3%81%AE%E5%87%BA%E5%8A%9B)
- [`--no-pager`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%9A%E3%83%BC%E3%82%B8%E9%80%81%E3%82%8A)
- [`--dry-run`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%AA%E3%82%AF%E3%82%A8%E3%82%B9%E3%83%88%E3%81%AE%E4%BA%8B%E5%89%8D%E7%A2%BA%E8%AA%8D)
- [`--yes`](https://orchestor.io/docs/cli/global-flags.md#%E7%A2%BA%E8%AA%8D%E3%81%AE%E7%9C%81%E7%95%A5)
- [`--stdin`](https://orchestor.io/docs/cli/global-flags.md#%E6%A8%99%E6%BA%96%E5%85%A5%E5%8A%9B)
- [`--from-stdin`](https://orchestor.io/docs/cli/global-flags.md#%E6%A8%99%E6%BA%96%E5%85%A5%E5%8A%9B)
- [`--page-all`](https://orchestor.io/docs/cli/global-flags.md#%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%E3%82%92%E5%8F%96%E5%BE%97)
- [`--timing`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%AA%E3%82%AF%E3%82%A8%E3%82%B9%E3%83%88%E6%99%82%E9%96%93)
- [`--readonly`](https://orchestor.io/docs/cli/global-flags.md#%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8A%E5%B0%82%E7%94%A8%E3%83%A2%E3%83%BC%E3%83%89)
- [`--wrap-untrusted`](https://orchestor.io/docs/cli/global-flags.md#%E5%A4%96%E9%83%A8%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%81%AE%E7%9B%AE%E5%8D%B0%E4%BB%98%E3%81%91)

各オプションの詳細と使用例は、[グローバルオプション](https://orchestor.io/docs/cli/global-flags.md)を参照してください。

---

- [Documentation index](https://orchestor.io/docs/llms.txt)
- [Documentation sitemap](https://orchestor.io/docs/sitemap.md)
