FishAudio TTS 🔊
High-quality text-to-speech using FishAudio (fish.audio), generates natural human-like voice with excellent emotional expression.
Features
- - More natural and realistic voice than default TTS
- Better emotional expression for news reading
- Supports multiple voices
- Outputs MP3 format directly
Requirements
- - Python 3.8+
- requests library
- FishAudio API key (get from https://fish.audio/)
Installation
- 1. Get your API key from https://fish.audio/
- Add API key to your
TOOLS.md or environment variable INLINECODE1 - INLINECODE2 (usually already installed)
Usage
Basic Text to Speech
CODEBLOCK0
Available Voices
- -
female - Default female voice (good for news) - INLINECODE4 - Male voice
- INLINECODE5 - Neutral voice
Command Line Example
CODEBLOCK1
Notes
- - API key is required, get one for free at https://fish.audio/
- Free tier has rate limits, check FishAudio website for details
- For news video generation, female voice is recommended for better listening experience
- All generated audio files are saved locally on your machine
FishAudio TTS 🔊
使用FishAudio(fish.audio)的高质量文本转语音,生成具有出色情感表达的自然人声。
特点
- - 比默认TTS更自然逼真的语音
- 新闻朗读时情感表达更出色
- 支持多种声音
- 直接输出MP3格式
要求
- - Python 3.8+
- requests库
- FishAudio API密钥(从 https://fish.audio/ 获取)
安装
- 1. 从 https://fish.audio/ 获取您的API密钥
- 将API密钥添加到您的 TOOLS.md 或环境变量 FISHAUDIOAPI_KEY 中
- pip install requests(通常已安装)
使用方法
基本文本转语音
python
python C:\path\to\skills\fishaudio-tts\fish_tts.py ^
--text 您的文本在这里 ^
--output output.mp3 ^
--voice female
可用声音
- - female - 默认女声(适合新闻)
- male - 男声
- neutral - 中性声音
命令行示例
powershell
python ~/.openclaw/workspace/skills/fishaudio-tts/fish_tts.py ^
--text 各位听众好,这里是2026年3月11日新闻简报。 ^
--output C:\Users\hyzu\Documents\openclaw\news_audio.mp3 ^
--voice female
注意事项
- - 需要API密钥,可在 https://fish.audio/ 免费获取
- 免费套餐有速率限制,详情请查看FishAudio网站
- 对于新闻视频生成,推荐使用女声以获得更好的收听体验
- 所有生成的音频文件均保存在本地机器上