---
title: stt
description: Transcribe audio.
canonical_url: https://orchestor.io/docs/en/cli/stt
markdown_url: https://orchestor.io/docs/en/cli/stt.md
related:
  - https://orchestor.io/docs/cli/jobs
  - https://orchestor.io/docs/cli/global-flags
contentType: reference
---

# stt

`orc stt transcribe` creates a transcript from audio. Pass the returned job ID to [`orc jobs`](https://orchestor.io/docs/cli/jobs.md) to check status and retrieve the result.

## Usage

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

*Transcribe audio at a public HTTPS URL.*

## Subcommands

### `transcribe`

音声を文字起こし

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

#### Unique options

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

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

Type: `string`. Optional.

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

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

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

Type: `string`. Optional.

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

##### `--segmentation`

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

Type: `string`. Optional.

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

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

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

Type: `string`. Optional.

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

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

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

Type: `number`. Optional.

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

##### `--metadata`

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

Type: `string`. Optional.

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

##### `--mode`

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

Type: `string`. Optional.

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

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

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

Type: `string`. Optional.

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

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

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

Type: `number`. Optional.

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

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

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

Type: `string`. Optional.

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

## Global Options

The following [global options](https://orchestor.io/docs/cli/global-flags.md) can be used with `orc stt`:

- [`--help`](https://orchestor.io/docs/cli/global-flags.md#help)
- [`--workspace`](https://orchestor.io/docs/cli/global-flags.md#workspace)
- [`--json`](https://orchestor.io/docs/cli/global-flags.md#json-output)
- [`--pretty`](https://orchestor.io/docs/cli/global-flags.md#json-output)
- [`--format`](https://orchestor.io/docs/cli/global-flags.md#output-format)
- [`--field`](https://orchestor.io/docs/cli/global-flags.md#field-selection)
- [`--fields`](https://orchestor.io/docs/cli/global-flags.md#field-selection)
- [`--raw`](https://orchestor.io/docs/cli/global-flags.md#raw-output)
- [`--output`](https://orchestor.io/docs/cli/global-flags.md#file-output)
- [`--no-pager`](https://orchestor.io/docs/cli/global-flags.md#pager)
- [`--dry-run`](https://orchestor.io/docs/cli/global-flags.md#dry-run)
- [`--yes`](https://orchestor.io/docs/cli/global-flags.md#confirmation)
- [`--stdin`](https://orchestor.io/docs/cli/global-flags.md#standard-input)
- [`--from-stdin`](https://orchestor.io/docs/cli/global-flags.md#standard-input)
- [`--page-all`](https://orchestor.io/docs/cli/global-flags.md#all-pages)
- [`--timing`](https://orchestor.io/docs/cli/global-flags.md#request-timing)
- [`--readonly`](https://orchestor.io/docs/cli/global-flags.md#read-only-mode)
- [`--wrap-untrusted`](https://orchestor.io/docs/cli/global-flags.md#untrusted-content-wrapping)

For details and examples, see [global options](https://orchestor.io/docs/cli/global-flags.md).

---

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