Open Source TTS: Free Text-to-Speech Solutions
Open Source TTS: Free Text-to-Speech Solutions
📖 Keep reading
- FinGPT (21,031 Stars) Financial LLM Guide 2026: Open Source Sentiment Analysis and Stock Insights
- AI Telegram Bot in 2026: python-telegram-bot (29k Stars) vs aiogram vs grammY - Build an LLM Bot in 15 Minutes
- LLM Personal Assistant on GitHub in 2026: Open WebUI (148k Stars) vs Khoj vs LocalAI - Top Self-Hosted Assistants
pip install edge-tts
# Basic
edge-tts --text "" --voice zh-CN-Yunxi --write-media output.mp3
#
edge-tts --text "AI" --voice zh-CN-YunxiNeural --write-media output.mp3
#
edge-tts --text "" --voice zh-CN-XiaoxiaoNeural --write-media output.mp3
git clone https://github.com/2noise/ChatTTS
git clone https://huggingface.co/2noise/ChatTTS
cd ChatTTS
pip install -r requirements.txt
import ChatTTS
import torch
chat = ChatTTS.Chat()
chat.load_models()
texts = ["", ""]
wavs = chat.infer(texts, use_decoder=True)
# wavs
pip install git+https://github.com/suno-ai/bark.git
from bark import SAMPLE_RATE, generate_audio, preload_models
preload_models()
audio_array = generate_audio("AI")
|:----|:---------:|:---:|:-----:|:-------:|
# Generate
cat script.txt | while IFS= read -r line; do
if [ -n "$line" ]; then
edge-tts --text "$line" \
--voice zh-CN-YunxiNeural \
--write-media "output_$(date +%s).mp3"
fi
done
Related Articles
2026-08-06
FinGPT (21,031 Stars) Financial LLM Guide 2026: Open Source Sentiment Analysis and Stock Insights
2026-08-05
AI Telegram Bot in 2026: python-telegram-bot (29k Stars) vs aiogram vs grammY - Build an LLM Bot in 15 Minutes
2026-08-05
LLM Personal Assistant on GitHub in 2026: Open WebUI (148k Stars) vs Khoj vs LocalAI - Top Self-Hosted Assistants
2026-08-06
PDF Table Extraction with AI: From Messy Tables to Clean CSV
2026-07-19
AI Prompt A/B Testing Beginner's Guide: Optimize Your Prompts with Data
2026-08-10
LLM Leaderboard 2026: 6 Boards That Matter and What Each One Measures
Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.