靈活的參數
可設定 1 個已記錄的參數,包括 source_audio_url。
curl -X POST https://runapi.ai/api/v1/elevenlabs/speech_to_text \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "speech-to-text",
"audio_url": "https://cdn.runapi.ai/public/samples/voice.mp3"
}'
import { ElevenlabsClient } from "@runapi.ai/elevenlabs";
const client = new ElevenlabsClient();
const result = await client.speechToText.run({
model: "speech-to-text",
audio_url: "https://cdn.runapi.ai/public/samples/voice.mp3",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/elevenlabs/speech_to_text",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"speech-to-text","audio_url":"https://cdn.runapi.ai/public/samples/voice.mp3"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/elevenlabs/speech_to_text");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'speech-to-text',
'audio_url' => 'https://cdn.runapi.ai/public/samples/voice.mp3',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.speechToText().run({"model":"speech-to-text","audio_url":"https://cdn.runapi.ai/public/samples/voice.mp3"});
task.waitForResult();
require "runapi/elevenlabs"
client = RunApi::Elevenlabs::Client.new
result = client.speech_to_text.run(
model: "speech-to-text",
audio_url: "https://cdn.runapi.ai/public/samples/voice.mp3"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.speechToText.Run({"model":"speech-to-text","audio_url":"https://cdn.runapi.ai/public/samples/voice.mp3"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model speech-to-text \
--endpoint speech_to_text \
--wait
6 個版本可用
| 提供者 | ElevenLabs |
| 模型 ID | speech-to-text |
| 模態 | 音訊與音樂 |
| 任務類型 | Asynchronous |
| API 端點 | /api/v1/elevenlabs/speech_to_text |
| 計費單位 | 分鐘 |
| 輸入參數 | source_audio_url |
| 目錄狀態 | 已下線 |
免費註冊後,在控制台建立 speech-to-text 的 API 金鑰。
向 /api/v1/elevenlabs/speech_to_text 發送 POST 請求,並傳入 speech-to-text 模型 ID 和參數。
輪詢工作或按照回呼取得已完成的 speech-to-text 結果。
可設定 1 個已記錄的參數,包括 source_audio_url。
開放 1 個公開 endpoint:speech_to_text。
按 分鐘 計量,無需訂閱。
source_audio_url暫無描述。
生成同集數氛圍匹配的免版稅背景音樂,無需付授權費。
為程序生成關卡製作可自適應的環境音景同音效。
無需錄音室,都可以為客戶廣告生成自訂旁白同音效。
傳入 quickstart 顯示嘅 model ID。
每個 key 的 rate limit 會按使用層級而定。請查看定價頁了解最新限制。
可以——variant 只係一個旗標。只要更改 model 參數就可以切換。
在可用 streaming 的情況下,RunAPI 會端到端串流。
可以在公開 GitHub repo 開 issue,或者電郵支援團隊。
不需要。你的 RunAPI API key 足以存取此 variant 及目錄中的所有其他模型,無需底層供應商帳戶。