Nemotron 音声テキスト変換
ダウンロード可能な音声または動画の URL を送信し、自動言語検出、オプションの単語タイムスタンプ・話者ラベル、または音声翻訳で非同期に文字起こしします。
概要
サポートされているモデルで音声テキスト変換エンドポイントを使用します。返されたタスクIDを使用してその状態を取得するか、以下に記載されている配信のために callback_url を指定してください。
クイックスタート
- APIキーを作成し、RUNAPI_API_KEYとして設定します。
- サポートされているモデルを選択し、そのモデルのスキーマに一致するボディを持つPOSTリクエストを送信します。
- 返されたタスクIDを保存し、終了状態になるまでポーリングするか、以下に記載されているコールバックを処理してください。
エンドポイント
- ベースURL
https://runapi.ai- API バージョン
v1- 認証
Authorization: Bearer YOUR_API_TOKEN
サポートされているモデル
現在の料金、レート制限、商用利用の詳細については、モデルページを開いてください。
リクエストスキーマ
フィールドと許可される値は選択したモデルによって異なります。指定した場合、callback_urlは以下に記載されたTask配信を受信します。
nemotron-3.5-transcribeフィールド5件
callback_urlstring非同期完了通知用のWebhook URL。
modelstringNemotron文字起こしモデルのスラッグ。
source_audio_urlstring直接ダウンロード可能な音声または動画のURL(最大60分、200 MB)。
target_languagestring翻訳先の言語。自動言語検出で文字起こしする場合は省略してください。timestampsをtrueに設定した場合とは併用できません。翻訳は英語との双方向に対応しています。
許可される値:en, zh, ja, ko, fr, de, es, pt, it, ru, nl, pl, cs, sk, hi, bg, hr, da, et, fi, hu, lv, lt, ro, sl, sv, th, uk, ar, el, he, mt
timestampsboolean結果のJSONに単語タイムスタンプと話者ラベルを含めます。target_languageとは併用できません。
許可される値:true, false
デフォルト: false
条件付きルール
これらの要件は、列挙されたすべての条件が一致する場合に適用されます。
-
条件
timestamps = true- 必須
- 使用不可
target_language
承認を作成する
POST /api/v1/nemotron/speech_to_text
レスポンススキーマ
{
"properties": {
"id": {
"type": "string"
},
"status": {
"enum": [
"processing"
],
"type": "string"
},
"task_replayed": {
"type": "boolean"
}
},
"required": [
"id",
"status"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"id": "tsk_reference_demo",
"status": "processing"
}
ポーリング処理中
GET /api/v1/nemotron/speech_to_text/:id
レスポンススキーマ
{
"properties": {
"id": {
"type": "string"
},
"status": {
"enum": [
"processing"
],
"type": "string"
}
},
"required": [
"id",
"status"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"id": "tsk_reference_demo",
"status": "processing"
}
ポーリング完了
GET /api/v1/nemotron/speech_to_text/:id
レスポンススキーマ
{
"properties": {
"duration": {
"type": "number"
},
"expires_at": {
"type": "string"
},
"id": {
"type": "string"
},
"status": {
"enum": [
"completed"
],
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string",
"x-runapi-generated-media": true
},
"usage": {
"properties": {
"cost": {
"type": "number"
}
},
"required": [
"cost"
],
"type": "object",
"unevaluatedProperties": false
}
},
"required": [
"id",
"status",
"text",
"duration",
"url",
"expires_at",
"usage"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"duration": 12.64,
"expires_at": "2026-12-04T12:30:23Z",
"id": "tsk_reference_demo",
"status": "completed",
"text": "Welcome to RunAPI.",
"url": "https://tempfile.runapi.ai/reference-transcript.json",
"usage": {
"cost": 0.05
}
}
ポーリング失敗
GET /api/v1/nemotron/speech_to_text/:id
レスポンススキーマ
{
"properties": {
"error": {
"type": "string"
},
"id": {
"type": "string"
},
"status": {
"enum": [
"failed"
],
"type": "string"
}
},
"required": [
"id",
"status",
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Task processing failed.",
"id": "tsk_reference_demo",
"status": "failed"
}
顧客コールバック: 完了
POST callback_url
レスポンススキーマ
{
"properties": {
"duration": {
"type": "number"
},
"expires_at": {
"type": "string"
},
"id": {
"type": "string"
},
"status": {
"enum": [
"completed"
],
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string",
"x-runapi-generated-media": true
},
"usage": {
"properties": {
"cost": {
"type": "number"
}
},
"required": [
"cost"
],
"type": "object",
"unevaluatedProperties": false
}
},
"required": [
"id",
"status",
"text",
"duration",
"url",
"expires_at",
"usage"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"duration": 12.64,
"expires_at": "2026-12-04T12:30:23Z",
"id": "tsk_reference_demo",
"status": "completed",
"text": "Welcome to RunAPI.",
"url": "https://tempfile.runapi.ai/reference-transcript.json",
"usage": {
"cost": 0.05
}
}
顧客コールバック: 失敗
POST callback_url
レスポンススキーマ
{
"properties": {
"error": {
"oneOf": [
{
"type": "string"
},
{
"properties": {
"code": {
"type": "string"
},
"limit_cents": {
"type": "integer"
},
"message": {
"type": "string"
},
"reset_at": {
"format": "date-time",
"type": [
"string",
"null"
]
},
"used_cents": {
"type": "integer"
},
"window": {
"enum": [
"1h",
"1d",
"7d",
"daily",
"weekly",
"monthly",
"lifetime"
],
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"unevaluatedProperties": false
}
]
},
"id": {
"type": "string"
},
"status": {
"enum": [
"failed"
],
"type": "string"
}
},
"required": [
"id",
"status",
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": {
"code": "generation_failed",
"message": "Task processing failed."
},
"id": "tsk_reference_demo",
"status": "failed"
}
エラー
POST /api/v1/nemotron/speech_to_text
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Authentication required"
}
エラー
GET /api/v1/nemotron/speech_to_text/:id
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Authentication required"
}
エラー
POST /api/v1/nemotron/speech_to_text
レスポンススキーマ
{
"oneOf": [
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
},
{
"properties": {
"error": {
"description": "人間が読める形式のバリデーションサマリー。",
"type": "string"
},
"errors": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"description": "公開リクエストフィールドをキーとするバリデーションメッセージ。各フィールドに対して人間が読める文字列の配列が含まれます。",
"type": "object"
}
},
"required": [
"error",
"errors"
],
"type": "object",
"unevaluatedProperties": false
}
]
}
レスポンス例
{
"error": "model must be one of: nemotron-3.5-transcribe"
}
エラー
POST /api/v1/nemotron/speech_to_text
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Insufficient balance"
}
エラー
POST /api/v1/nemotron/speech_to_text
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "API key credit limit exceeded"
}
エラー
POST /api/v1/nemotron/speech_to_text
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "The request uses features that are not supported for the selected model"
}
エラー
POST /api/v1/nemotron/speech_to_text
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Rate limit reached. Please retry later."
}
エラー
POST /api/v1/nemotron/speech_to_text
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Service under maintenance, please try again later"
}
エラー
POST /api/v1/nemotron/speech_to_text
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "The request timed out"
}
エラー
GET /api/v1/nemotron/speech_to_text/:id
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Task with id 'tsk_reference_demo' not found"
}
生成されたコードサンプル
cURLを直接使用するか、お使いの言語向けのSDKをインストールしてください。各サンプルは、このリファレンスに示されたバリデーション済みリクエストを送信します。
インストール
pip install runapi-nemotron
import os
from runapi.nemotron import NemotronClient
client = NemotronClient(api_key=os.environ["RUNAPI_API_KEY"])
task = client.speech_to_text.create(
model="nemotron-3.5-transcribe",
source_audio_url="https://cdn.runapi.ai/public/samples/voice.mp3",
timestamps=False
)