跳至內容

Maya1

整合

模型 id maya
# 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?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.22 在此頁面執行

取得 API 金鑰
Maya Research 文字轉語音 #text-to-speech#tts

具表現力的文字轉語音,可使用聲音描述提示與內嵌情緒標籤

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

調整 Token 選擇多樣性的核取樣設定。

預設 2000

限制音訊長度的 SNAC Token 預算,按每個影格 7 個 Token 計算。

預設 1.1

套用於 Token 重複的懲罰值。提高此值可抑制重複瑕疵。

POST /run/maya?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?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 金鑰

關於 Maya1

將最長 5000 個字元的文字轉換為語音。必要的 `prompt` 最長 500 個字元,用於描述聲音,例如年齡、口音和語調。文字中可嵌入 laugh 或 whisper 等情緒標籤。可選擇 48 kHz 或 24 kHz 取樣率,以及 wav 或 mp3 輸出;`max_tokens` 限制音訊長度。

參數

名稱類型 預設值允許值 說明
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
調整 Token 選擇多樣性的核取樣設定。
max_tokens選填
類型integer
預設值2000
28 – 4,000
限制音訊長度的 SNAC Token 預算,按每個影格 7 個 Token 計算。
repetition_penalty選填
類型number
預設值1.1
1 – 2
套用於 Token 重複的懲罰值。提高此值可抑制重複瑕疵。
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",
  "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 都是儲存空間中的副本:可永久保留(按 GB-月計費),或免費保留 7 天;可透過帳戶設定或 ?storage= 設定。
所有模型使用相同結構圖片、影片和音訊皆包含 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
number以 generation_time 除以 audio_duration 計算的即時因子;數值越小表示效能越好。

更多模型:文字轉語音

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/maya.md. 所有模型與指南: https://doitong.com/developers/llms.txt