Skip to content

sweetbbak/sayu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sayu

sayu is a fast and easy to use text-to-speech engine with multiple backends. It currently supports piper-tts models via onnx and plans to support kokoro and concatenative speech synthesis, similar to MBROLA but with modern features.

install

zig build -Doptimize=ReleaseFast
./zig-out/bin/sayu --help

Download Zig from here:

nominated-zig

sayu uses Zig nominated Mach version 0.14.0-dev.2577+271452d22 which is a pseudo-stable release.

# linux
wget https://pkg.machengine.org/zig/zig-linux-x86_64-0.14.0-dev.2577+271452d22.tar.xz
# windows
wget.exe https://pkg.machengine.org/zig/zig-windows-x86_64-0.14.0-dev.2577+271452d22.zip
# mac arm
wget https://pkg.machengine.org/zig/zig-macos-aarch64-0.14.0-dev.2577+271452d22.tar.xz

Run a naive TTS server:

sayu serve
curl --http0.9 localhost:8080 --data '{"text": "Hello world, how are you doing?"}' --output - | aplay -r 22050 -c 1 -f S16_LE -t raw

About

A text-to-speech engine written in Zig (onnx + piper)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published