360 Secure SkillHub
360 安全技能中心

Local Llama TTS

这是一款本地离线文本转语音工具,依托llama-tts与OuteTTS-1.0-0.6B模型实现语音合成,支持GPU加速。通过`tts-local.sh`脚本调用,可自定义输出WAV文件、指定参考音色、调整生成温度等参数;需预先下载指定模型与声码器文件,适用于无网络环境下的语音生成需求,输入文本与可选参数后输出语音音频。

wuxxin
wuxxin
热度 69.44
最近更新 2026-05-17 12:10:07
分类:创作依赖:代码执行 / 读写文件应用场景:文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add local-llama-tts
Metadata
name
local-llama-tts
description
Local text-to-speech using llama-tts (llama.cpp) and OuteTTS-1.0-0.6B model.
metadata
{"openclaw":{"emoji":"🔊","requires":{"bins":["llama-tts"]}}}

Local Llama TTS

Synthesize speech locally using llama-tts and the OuteTTS-1.0-0.6B model.

Usage

You can use the wrapper script:

  • scripts/tts-local.sh [options] "<text>"

Options

  • -o, --output <file>: Output WAV file (default: output.wav)
  • -s, --speaker <file>: Speaker reference file (optional)
  • -t, --temp <value>: Temperature (default: 0.4)

Scripts

  • Location: scripts/tts-local.sh (inside skill folder)
  • Model: /data/public/machine-learning/models/text-to-speach/OuteTTS-1.0-0.6B-Q4_K_M.gguf
  • Vocoder: /data/public/machine-learning/models/text-to-speach/WavTokenizer-Large-75-Q4_0.gguf
  • GPU: Enabled via llama-tts.

Setup

  1. Model: Download from OuteAI/OuteTTS-1.0-0.6B-GGUF
  2. Vocoder: Download from ggml-org/WavTokenizer (Note: Felix uses a Q4_0 version, Q5_1 is linked here as a high-quality alternative).

Place files in /data/public/machine-learning/models/text-to-speach/ or update scripts/tts-local.sh.

Sampling Configuration

The model card recommends the following settings (hardcoded in the script):

  • Temperature: 0.4
  • Repetition Penalty: 1.1
  • Repetition Range: 64
  • Top-k: 40
  • Top-p: 0.9
  • Min-p: 0.05