La interfaz está localizada; las descripciones y documentos de las Skills se traducen automáticamente con IA a su idioma. El código, los comandos, rutas y términos técnicos se mantienen en el original, y prevalece el documento del autor.
Explorar Skills
Desarrollo · SKILL.md

free-tts

free-tts

Free text-to-speech (edge-tts), with no API key or registration required. Converts text to MP3 audio files. Trigger this skill when the user says "read aloud," "text-to-speech," "TTS," "generate audio," "read it," "read it out loud," "say it," "play it," or in any scenario where text needs to be converted to speech for playback.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentación de la Skill

GitHub

name: free-tts version: 1.0.0 description: > Free text-to-speech (edge-tts), with no API key or registration required. Converts text to MP3 audio files. Trigger this skill when the user says "read aloud," "text-to-speech," "TTS," "generate audio," "read it," "read it out loud," "say it," "play it," or in any scenario where text needs to be converted to speech for playback.

Free TTS Skill

Use edge-tts (a Python library) to convert text to an MP3 audio file. It calls the Microsoft Edge browser's online TTS interface in the background. It is completely free, requires no registration, needs no configuration, has unlimited usage, and connects directly from within China.

Environment Dependencies

pip install edge-tts

No API key, account, or token is required.

Complete List of Chinese Voices

#Voice IDNameGenderLanguage/Style
1zh-CN-XiaoxiaoNeuralXiaoxiao ⭐FemaleMandarin, warm and natural
2zh-CN-XiaoyiNeuralXiaoyiFemaleMandarin, lively and playful
3zh-CN-YunxiNeuralYunxiMaleMandarin, cheerful and energetic
4zh-CN-YunjianNeuralYunjianMaleMandarin, passionate and powerful
5zh-CN-YunyangNeuralYunyangMaleMandarin, professional and reliable
6zh-CN-YunxiaNeuralYunxiaMaleMandarin, cute and charming
7zh-CN-liaoning-XiaobeiNeuralXiaobeiFemaleNortheastern Chinese, humorous and friendly
8zh-CN-shaanxi-XiaoniNeuralXiaoniFemaleShaanxi dialect, bright and cheerful
9zh-HK-HiuGaaiNeuralHiuGaaiFemaleCantonese, friendly
10zh-HK-HiuMaanNeuralHiuMaanFemaleCantonese, friendly
11zh-HK-WanLungNeuralWanLungMaleCantonese, friendly
12zh-TW-HsiaoChenNeuralHsiaoChenFemaleTaiwan Mandarin, friendly
13zh-TW-HsiaoYuNeuralHsiaoYuFemaleTaiwan Mandarin, friendly
14zh-TW-YunJheNeuralYunJheMaleTaiwan Mandarin, friendly

To view the complete list of multilingual voices, run edge-tts --list-voices.

Usage

# Default voice (Xiaoxiao)
edge-tts --text "Hello, and welcome to our free text-to-speech service." --write-media /var/minis/workspace/output.mp3

# Specify a voice
edge-tts --voice zh-CN-XiaoyiNeural --text "The weather is really nice today." --write-media /var/minis/workspace/output.mp3

# Adjust speech rate and volume (percentage, -50 ~ +100)
edge-tts --voice zh-CN-XiaoxiaoNeural --rate=+20% --volume=+50% \
  --text "Welcome to today's news." --write-media /var/minis/workspace/output.mp3

Parameter Description

ParameterDescriptionDefault Value
--textText to synthesize (required)N/A
--write-mediaOutput MP3 file path (required)N/A
--voiceVoice IDzh-CN-XiaoxiaoNeural
--rateSpeech rate adjustment percentage0%
--volumeVolume adjustment percentage0%
--pitchPitch adjustment0Hz

Output Format

Return an MP3 file link that the user can click to play, in this format:

![Audio](minis://workspace/free_tts_<timestamp>.mp3)

Shortcuts

User InputAction
"Read it" / "Read aloud"Synthesize and play using the default voice (Xiaoxiao)
"Use a male voice"Switch to YunJhe (Taiwan Mandarin male voice)
"Change"Cycle to the next voice in the list
"Switch to a dialect"Switch to Xiaoni (Shaanxi dialect)
"Switch to Cantonese" / "Speak Cantonese"Switch to WanLung (Cantonese)
"Restore default"Return to Xiaoxiao

Complete Workflow

  1. The user requests that text be read aloud or says "Read it"
  2. Determine the target voice (specified by the user or the current default)
  3. Call edge-tts to synthesize an MP3 at /var/minis/workspace/free_tts_<timestamp>.mp3
  4. Return an audio link for the user to play

Notes

  • Synthesis speed: About 1 to 2 seconds per sentence
  • Internet connection required: Cloud-based synthesis through the Microsoft Edge TTS online interface
  • Zero cost: No account or payment required
  • Output format: 24 kHz, 160 kbps MP3
  • English and other non-Chinese voices can also speak Chinese, but their accents are not standard, so they are not recommended.
Skills guardadas