Hey everyone! Welcome back to the channel. Today we have something really fun to share.
适合的用途#
Donut 读英语时带着频道主播的那股劲,深知第一句话决定一切。声线温暖、轻快,一听就是为视频准备的。
它是 6 个英语音色之一。这些音色围绕英语设计,读泰语时会带外国口音,所以音色库把英语音色和泰语音色分成两组。
实际应用#
通过 API 调用#
voice 字段直接填写上方的音色 ID。请求中的其他参数均为 Paxa TTS Flash 的默认值。
- 模型
- Paxa TTS Flash
- 每次请求
- 5,000 个字符
- 费率
- 每 1,000 个字符 10 积分
- 免费积分
- 100 积分,约合 11 分钟语音
curl -X POST https://api.paxalabs.com/v1/tts \ -H "Authorization: Bearer $PAXA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "Hey everyone! Welcome back to the channel. Today we have something really fun to share.", "voice": "donut", "model": "paxa-tts-flash-v1" }' \ --output donut.mp3
import { writeFile } from "node:fs/promises"; const response = await fetch("https://api.paxalabs.com/v1/tts", { method: "POST", headers: { Authorization: `Bearer ${process.env.PAXA_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ text: "Hey everyone! Welcome back to the channel. Today we have something really fun to share.", voice: "donut", model: "paxa-tts-flash-v1", }), }); if (!response.ok) throw new Error(`TTS failed: ${response.status}`); await writeFile("donut.mp3", Buffer.from(await response.arrayBuffer()));
import os import requests response = requests.post( "https://api.paxalabs.com/v1/tts", headers={"Authorization": f"Bearer {os.environ['PAXA_API_KEY']}"}, json={ "text": "Hey everyone! Welcome back to the channel. Today we have something really fun to share.", "voice": "donut", "model": "paxa-tts-flash-v1", }, ) response.raise_for_status() with open("donut.mp3", "wb") as f: f.write(response.content)
常见问题#
它能读泰语吗?
能读,但带外国口音,因为这个音色是围绕英语设计的。泰语文案应选用音色库里的泰语音色,它们也能读出泰语句子中的英语术语。
它和 Cookie 有什么不同?
Cookie 从容耐心,面向需要帮助的听众。Donut 明亮外放,面向正在决定要不要继续看下去的观众。
它适合长视频吗?
这股活力是为短内容准备的。放在一段长教程里,会显得一刻不停。同组的 Toast 更能撑住这样的长度。
听它朗读您自己的文字 新账户自带 100 免费积分。打开控制台,这个音色已为您选好。
免费开始