T

TencentCloud TTS

Design & Mediav1.0.0
By u_e4a5e28f✓ Certified publisher: 腾讯科技(深圳)有限公司Updated 2026-10-01tencentcloud-tts@tencent-adm/tencentcloud-tts
Audio

According to AlphaMoat, as of 2026-09, TencentCloud TTS has 3,103 downloads and 3 stars — ranked #3,655 of 5,078 AI skills overall, and #344 of 512 in Design & Media.

Installs
241
Downloads
3.1K
Stars
3
Overall Rank
#3,655
Top 72% overall · Top 68% in Design & Media
PlatformInstallsDownloadsStarsComments
SkillHub ↗2413.1K3—

Platforms count differently and update at different times.

What this skill does

Parameters: text (required), voice_type (default 101001, options 101001-101015), codec (default mp3; supports mp3/wav), and output_file (default output.mp3). Keys are configured securely via the TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY environment variables. Best practices: never hardcode API keys in code, keep single-synthesis text under about 300 characters, avoid high-frequency calls and respect service limits, and periodically clean up generated audio files.

Profile published 2026-10-27

What you can do with it

  • Synthesize text into mp3 or wav audio files
  • Switch voice types (voice_type 101001-101015)
  • Customize output filenames and audio codecs

When to use it

  • When text needs to be converted into speech audio
  • When the user mentions speech synthesis, text-to-speech, or TTS

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Convert this text into speech
Synthesize a wav clip using voice_type 101002

Monthly Trend

Downloads3.1K
6692.0K3.3K2026-03 · Downloads 8492026-05 · Downloads 1.4K2026-06 · Downloads 1.7K2026-07 · Downloads 2.1K2026-08 · Downloads 2.4K2026-09 · Downloads 3.1K26-0326-09
Stars3
1232026-03 · Stars 12026-05 · Stars 22026-06 · Stars 22026-07 · Stars 32026-08 · Stars 32026-09 · Stars 326-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change. Other skills share this name; figures from before the change are attributed to this one, which currently has the most downloads.

MonthDownloadsMoMStars
2026-093.1K—3
2026-082.4K+12.8%3
2026-072.1K+26.1%3
2026-061.7K+18.4%2
2026-051.4K—2
2026-03849—1

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.8 KB · SkillHub v1.0.0
---
name: tencent-tts
description: 腾讯云语音合成(TTS)服务技能包。当用户需要将文本转换为语音文件时使用此技能,支持多种音频格式输出和灵活的配置选项。当用户提到语音合成、文本转语音、TTS服务、音频文件生成时,都应该考虑使用此技能。
---

# 腾讯云语音合成(TTS)技能包

本技能包提供基于腾讯云语音合成服务的文本转语音功能,专注于基础单次合成需求。

## 功能特性
Show all (96 lines)

- **文本转语音**: 将任意文本内容转换为高质量的语音文件
- **多格式支持**: 支持MP3、WAV等常见音频格式
- **语音参数配置**: 可配置语音类型、音频格式等参数
- **安全认证**: 通过环境变量安全管理腾讯云API密钥

## 前置要求

在使用本技能前,请确保:

1. **腾讯云账号**: 拥有有效的腾讯云账号
2. **API密钥**: 获取腾讯云API的SecretId和SecretKey
3. **服务开通**: 已开通腾讯云语音合成(TTS)服务

## 配置说明

### 环境变量配置

将腾讯云API密钥配置为环境变量:

```bash
export TENCENTCLOUD_SECRET_ID="your-secret-id"
export TENCENTCLOUD_SECRET_KEY="your-secret-key"
```

### 技能参数说明

| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|-------|------|------|--------|------|
| text | string | 是 | - | 要转换为语音的文本内容 |
| voice_type | int | 否 | 101001 | 语音类型(101001-101015) |
| codec | string | 否 | mp3 | 音频编码格式(mp3/wav) |
| output_file | string | 否 | output.mp3 | 输出音频文件名 |

## 使用示例

### 基本使用

```python
# 使用默认参数合成语音
from tencent_tts import TextToSpeech

tts = TextToSpeech()
result = tts.synthesize("欢迎使用腾讯云语音合成服务")
print(f"音频文件已生成: {result['output_file']}")
```

### 自定义参数

```python
# 使用自定义参数
from tencent_tts import TextToSpeech

tts = TextToSpeech()
result = tts.synthesize(
    text="这是一个自定义语音合成的示例",
    voice_type=101002,
    codec="wav",
    output_file="custom_voice.wav"
)
print(f"音频文件已生成: {result['output_file']}")
```

## 文件结构

```
tencent-tts/
├── SKILL.md (本文件)
├── scripts/
│   └── tencent_tts.py (主功能脚本)
└── examples/
    └── basic_usage.py (基础使用示例)
```

## 最佳实践

1. **密钥安全**: 不要将API密钥硬编码在代码中
2. **文本长度**: 单次合成文本建议不超过300字符
3. **频率控制**: 避免高频调用,遵守服务限制
4. **文件管理**: 定期清理生成的音频文件

## 技术支持

如遇问题,请参考:
- 腾讯云语音合成文档:https://cloud.tencent.com/document/product/1073
- API错误码说明:https://cloud.tencent.com/document/api/1073/37996

Popular in Design & Media

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.