Async TTS Pro 1.0
async/tts-pro/1.0Async TTS Pro 1.0 generates professional voiceovers from text with 100 preset voices and text-based control over pauses, emphasis, and timing in six languages.
- Giá cơ bản
- $0.01USD / lần chạy
- Thực thi
- async
- Loại model
- audio
- Các trường đầu vào
- 3
Thử model
Phòng thử nghiệm
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Thẻ model
Thông số kỹ thuật
Giá
- Giá cơ bản
- $0.01 / lần chạy
Ngữ cảnh & phương thức
- Đầu vào
- Định nghĩa theo schema
- Đầu ra
- audio
Tính năng
- Chat
- Không được hỗ trợ
- Thị giác
- Không được hỗ trợ
- Suy luận
- Không được hỗ trợ
- Đầu ra có cấu trúc
- Không được hỗ trợ
- Gọi hàm
- Không được hỗ trợ
- Đầu vào âm thanh
- Không được hỗ trợ
Truy cập
- Nhà cung cấp
- Async
- ID mô hình
- async/tts-pro/1.0
- Thực thi
- async
- URL cơ sở
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
Async TTS Pro 1.0
Async TTS Pro 1.0 turns text into professional voiceovers with 100 preset voices in English, French, Spanish, German, Italian, and Portuguese, returned as MP3.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
text | string, required | — | Text to speak. |
voice | string | Jennie | Preset voice. See the schema for supported values. |
language | en / fr / es / de / it / pt | — | Force a language; detected when omitted. |
Billing
$0.01 per 1,000 characters of input text, billed per character.
| Text | Price |
|---|---|
| 200 characters | $0.002 |
| 1,000 characters | $0.01 |
| 5,000 characters | $0.05 |
Failed runs are not charged.
Prompting
- Use punctuation and line breaks to shape pauses and emphasis.
Bắt đầu xây dựng
Gửi request đầu tiên của bạn
Endpoint tương thích OpenAI với xác thực và theo dõi mức sử dụng thống nhất.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "async/tts-pro/1.0",
"text": "Hello, welcome to Async! This is a text to speech demo.",
"voice": "Jennie"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Schema đầu vào
3 tham số · 1 bắt buộc · 2 tùy chọn
| Tham số | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
text | string | Bắt buộc | Text to convert to speech. · Độ dài tối thiểu: 1 |
voice | string | Tùy chọn | Preset voice. · Tùy chọn: Jennie, Stella, Max, Hayes, Elara, Cleo, Fisher, Corin, Thaddeus, Lucina, Acadia, Huxley, Winslet, Jethro, Elio, Rupert, Eira, Nyra, Arian, Lily, Pierce, Kaela, Elowen, Freya, Lenny, Alessa, Pandora, Fia, Abbott, Kael, Orla, Sable, Marnie, Sera, Virel, Liora, Riven, Elys, Dreena, Rhea, Vela, Nymera, Isolde, Lirien, Zella, Avenna, Mirelle, Calia, Lunea, Lucan, Tarian, Arlo, Jovan, Neron, Ziven, Dax, Orien, Lior, Eryx, Tyren, Nox, Elric, Varian, Zoran, Miro, Dalen, Ronix, Jarek, Nyxie, Soren, Viona, Selene, Rachiel, Corbin, Abigail, Faith, Kimberly, Dave, Grace, Alden, Renly, Violet, Joel, Xavier, Esmeralda, Robert, Lila, Brooks, Lennox, Vanessa, Simon, Nyomi, Jack, Penelope, Brayden, Abel, Nellie, Connie, Andrew, Lincoln · Mặc định: "Jennie" JennieStellaMaxHayesElaraCleoFisherCorinThaddeusLucinaAcadiaHuxleyWinsletJethroElioRupertEiraNyraArianLilyPierceKaelaElowenFreyaLennyAlessaPandoraFiaAbbottKaelOrlaSableMarnieSeraVirelLioraRivenElysDreenaRheaVelaNymeraIsoldeLirienZellaAvennaMirelleCaliaLuneaLucanTarianArloJovanNeronZivenDaxOrienLiorEryxTyrenNoxElricVarianZoranMiroDalenRonixJarekNyxieSorenVionaSeleneRachielCorbinAbigailFaithKimberlyDaveGraceAldenRenlyVioletJoelXavierEsmeraldaRobertLilaBrooksLennoxVanessaSimonNyomiJackPenelopeBraydenAbelNellieConnieAndrewLincoln |
language | string | Tùy chọn | Force synthesis in a specific language (ISO 639-1). Detected automatically when omitted. · Tùy chọn: en, fr, es, de, it, pt enfresdeitpt |
Schema đầu ra
| Trường | Kiểu | Mô tả |
|---|---|---|
id | string | Mã định danh duy nhất cho tác vụ tạo |
status | string | Trạng thái tác vụ: pending, running, completed, failed, timeout |
model | string | Model được dùng cho quá trình tạo |
outputs | array | Mảng các mục đầu ra |
outputs[].url | string | URL của artifact đã tạo |
outputs[].content_type | string | Kiểu MIME (ví dụ image/png, video/mp4) |
error | object | null | Chi tiết lỗi nếu thất bại, null nếu thành công |
error.type | string | Mã loại lỗi có thể đọc bằng máy |
error.message | string | Mô tả lỗi dễ đọc cho người dùng |
Quy trình không đồng bộ
Model này chạy bất đồng bộ. Gửi yêu cầu, rồi thăm dò để lấy kết quả.
- Gửi: POST tới /v1/run và đọc
idđược trả về. - Thăm dò: GET /v1/run/{id} cho đến khi trạng thái là
completed,failedhoặctimeout. - Truy xuất: đọc
outputstừ phản hồi hoàn tất.
Chọn model của bạn
So sánh model
| Mô hình | Loại | Giá mặc định | Phát hành |
|---|---|---|---|
Async TTS Pro 1.0Mô hình này Async | Âm thanh | $0.01 / lượt chạy | 18 thg 6, 2026 |
Câu hỏi
FAQ
Làm thế nào để gọi Async TTS Pro 1.0 qua SandBase?
Tạo một API key SandBase, sau đó gửi yêu cầu với model ID "async/tts-pro/1.0" tới Unified Run API (/v1/run) tại https://api.sandbase.ai. Các ví dụ yêu cầu trên trang này cho thấy chính xác payload.
Tôi có cần tài khoản Async riêng không?
Không. Chỉ cần một API key và số dư SandBase là bạn có thể truy cập Async TTS Pro 1.0 và các model khác trong danh mục; bạn không cần đăng ký riêng với Async.
