コンテンツへスキップ

Maya · Stream

統合

モデルID maya/stream
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/maya/stream?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence.",
    "prompt": "Hello from Doitong. This is a short test sentence."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

このリクエスト: ≈$0.049 49 APIクレジット · ≈ ₽5.17 このページで実行

APIキーを取得
Maya Research テキスト読み上げ #text-to-speech#tts

音声説明付きの単一テキストに対応するMayaテキスト音声変換のストリーミング版

Maya Research · 音声

最初の結果がここに表示されます

以下でリクエストを作成し、APIキーで実行してください。出力はストレージにコピーされ、永久保存または無料で7日保存されます。

リクエストを作成

コントロールはモデルスキーマから生成されます。値を変更するとコードと価格が更新されます。

•必須 50 / 5000

任意の位置に <emotion_name> 形式の感情タグを含められる音声合成テキスト。例: 'Hello world! <excited> This is amazing!' や 'I can't believe this <sigh> happened again.'. 対応する感情は curious、sarcastic、giggle、gulp、exhale、snort、sing、scream、cry、whisper、excited、angry、gasp、chuckle、sigh、laugh_harder、laugh です。

•必須 50 / 500

強度、トーン、話速、音色、ピッチ、アクセント、年齢など、説明する声またはキャラクターの特性。

詳細設定 sample_rate · output_format · temperature · top_p · max_tokens · repetition_penalty · enable_safety_checker
sample_rate デフォルト 48 kHz

24 kHzの高速処理と48 kHzの高品質出力から選択する音声サンプルレート。

output_format デフォルト wav

合成音声に使用する音声ファイル形式。

デフォルト 0.4

音声の変化を制御するサンプリング温度。値を上げると多様性が増し、0.2~0.5の低い範囲では安定性と一貫性が優先されます。

デフォルト 0.9

トークン選択の多様性を調整するNucleusサンプリング設定。

デフォルト 2000

音声の長さに上限を設けるSNACトークン予算。各フレームにつき7トークンとして計算されます。

デフォルト 1.1

トークンの繰り返しに適用するペナルティ。値を上げると繰り返しによるアーティファクトが抑制されます。

POST /run/maya/stream?wait=20 見積もり → $0.049
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/maya/stream?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence.",
    "prompt": "Hello from Doitong. This is a short test sentence."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

このリクエストを実行

キーはこのブラウザ内に保持されます。Doitong APIにのみ送信され、「記憶する」にチェックを入れた場合のみlocalStorageに保存されます。 APIキーを取得

Maya · Streamについて

最大5000文字の1つのテキストを音声に変換します。最大500文字の音声説明 `prompt` が必須で、感情タグを埋め込めます。`temperature`、`top_p`、`repetition_penalty`、48または24 kHzのサンプルレート、wavまたはmp3出力に対応します。音声、その再生時間、リアルタイム係数を返します。

パラメータ

名前型 デフォルト許可される値 説明
text必須
型string
≤ 5,000文字
任意の位置に <emotion_name> 形式の感情タグを含められる音声合成テキスト。例: 'Hello world! <excited> This is amazing!' や 'I can't believe this <sigh> happened again.'. 対応する感情は curious、sarcastic、giggle、gulp、exhale、snort、sing、scream、cry、whisper、excited、angry、gasp、chuckle、sigh、laugh_harder、laugh です。
prompt必須
型string
≤ 500文字
強度、トーン、話速、音色、ピッチ、アクセント、年齢など、説明する声またはキャラクターの特性。
temperature任意
型number
デフォルト0.4
0 – 2
音声の変化を制御するサンプリング温度。値を上げると多様性が増し、0.2~0.5の低い範囲では安定性と一貫性が優先されます。
top_p任意
型number
デフォルト0.9
0 – 1
トークン選択の多様性を調整するNucleusサンプリング設定。
max_tokens任意
型integer
デフォルト2000
28 – 4,000
音声の長さに上限を設けるSNACトークン予算。各フレームにつき7トークンとして計算されます。
repetition_penalty任意
型number
デフォルト1.1
1 – 2
トークンの繰り返しに適用するペナルティ。値を上げると繰り返しによるアーティファクトが抑制されます。
sample_rate任意
型enum
デフォルト48 kHz
48 kHz24 kHz
24 kHzの高速処理と48 kHzの高品質出力から選択する音声サンプルレート。
output_format任意
型enum
デフォルトwav
wavmp3
合成音声に使用する音声ファイル形式。
enable_safety_checker任意
型boolean
デフォルトtrue
呼び出し元に権限がある場合、false に設定するとスクリーニングを緩和できます。
必須

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "maya/stream",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 49,
    "usd": "0.049",
    "charged": 49,
    "refunded": 0
  },
  "input": {
    "text": "Hello from Doitong. This is a short test sentence.",
    "prompt": "Hello from Doitong. This is a short test sentence."
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    },
    "duration": 5,
    "sample_rate": "48 kHz",
    "generation_time": 2.3,
    "rtf": 0.51
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ファイルの保存期間を選択すべてのoutputs[].urlはストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
audio
object {url, content_type, file_name, file_size}WAVまたはMP3形式の生成音声ファイル。アップサンプラーによって決まる24 kHzまたは48 kHzのモノラル音声です。
duration
number秒単位で表す音声出力の長さ。
sample_rate
string音声出力のサンプリングレート。
generation_time
number秒単位で表す音声の生成時間。
rtf
numbergeneration_timeをaudio_durationで割って計算するリアルタイム係数。値が小さいほど性能が高いことを示します。

その他のモデル: テキスト読み上げ

AIエージェント向け:このページのMarkdown版はこちらです: https://doitong.com/ja/developers/models/maya/stream.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt