← 返回
内容创作 Key

Quick TTS

Zero-config text-to-speech — give text, get an mp3 file. Handles natural-language voice selection ("用女声", "撒娇语气", "生气一点") and auto-inserts pacing breaks for...
Zero-config text-to-speech — give text, get an mp3 file. Handles natural-language voice selection ("用女声", "撒娇语气", "生气一点") and auto-inserts pacing breaks for...
scikkk
内容创作 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 557
下载
💾 16
安装
1
版本
#latest

概述

SenseAudio TTS Quick

Zero-config speech synthesis. User gives text, you produce an mp3 file — no API knowledge required.

Voice Selection

Default voice: male_0004_a (儒雅道长, neutral).

Map natural-language requests to voice IDs before calling the API:

User saysvoice_id
---------------------
女声 / 女生 / 女的female_0006_a (温柔御姐)
温柔御姐female_0006_a
嗲嗲 / 台妹female_0033_a
撒娇female_0033_c
低落 / 难过 / 悲伤female_0033_d
委屈female_0033_e
生气 / 愤怒female_0033_f
开心 / 高兴 / 活泼female_0033_b
傲娇female_0027_f
病娇female_0027_c
妩媚 / 性感female_0027_e
男声 / 男生male_0004_a
沙哑 / 深情male_0018_a
撒娇青年male_0023_a
乐观 / 少年male_0026_a
儿童 / 小孩 / 萌娃child_0001_b

If the user names a voice not in this table, use male_0004_a and note the fallback.

Long Text Pacing

For text longer than 100 characters, insert after each to improve natural rhythm:

原文:今天天气很好。我们出去走走吧。
处理后:今天天气很好。<break time="300"/>我们出去走走吧。<break time="300"/>

Do not insert breaks inside quoted speech or after mid-sentence punctuation like .

API Call

curl -s -X POST https://api.senseaudio.cn/v1/t2a_v2 \
  -H "Authorization: Bearer $SENSEAUDIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "SenseAudio-TTS-1.0",
    "text": "<TEXT>",
    "stream": false,
    "voice_setting": {
      "voice_id": "<VOICE_ID>"
    },
    "audio_setting": {
      "format": "mp3"
    }
  }' -o response.json

# Decode hex audio to mp3
jq -r '.data.audio' response.json | xxd -r -p > output.mp3

Check base_resp.status_code == 0 before decoding. On error, show base_resp.status_msg.

Output

After generating the file:

  1. Save as a descriptive filename, e.g. speech_.mp3 or based on the first few words of the text.
  2. Report:
    • File path
    • Audio duration: jq '.extra_info.audio_length' response.json (ms → seconds)
    • Character count: jq '.extra_info.usage_characters' response.json
    • Voice used

Example output:

生成完成:speech_20240315.mp3
音色:温柔御姐 (female_0006_a)
时长:4.2 秒
字数:38 字

Error Handling

status_codeLikely causeAction
-----------------------------------
401Invalid API keyAsk user to check SENSEAUDIO_API_KEY
400Text too long (>10000 chars)Split text and generate multiple files
429Rate limitWait a moment and retry once

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 02:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,472
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,183
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,707