A Rust and Wasm Demo to generate and play speech from text using Parler-TTS.
Rust
17
0 commits
updated Sep 25, 2025
A Text-to-Speech (TTS) application using Rust and WASM with Parler-TTS model integration.
If you are looking for a pure rust pure rust TTS system that is production ready, you are in the wrong place. π

This project consists of:
βββ backend/ # Axum HTTP server with TTS API endpoints
βββ frontend/ # WASM module compiled from Rust for browser audio functionality
βββ scripts/ # Build and development scripts
βββ public/ # Static frontend files served by the backend
Build WASM frontend:
cd scripts && ./build.sh
Build backend:
cd backend && cargo check && cargo build
Build for release:
cd backend && cargo build --release
The backend automatically detects and uses the best available acceleration:
This project is only tested with CUDA
# Build with CUDA support (NVIDIA GPUs)
cd backend && cargo build --release --features cuda
# Build with Metal support (Apple Silicon)
cd backend && cargo build --release --features metal
# Build with MKL support (Intel CPU optimization)
cd backend && cargo build --release --features mkl
# Build with Accelerate support (macOS CPU optimization)
cd backend && cargo build --release --features accelerate
Start development server:
cd scripts && ./start.sh
Or manually:
cd scripts && ./build.sh && cd ../backend && cargo run
The server runs on http://localhost:8039 (or configured port) and serves:
/api/*/backend/public/--cpu: Force CPU usage instead of GPU acceleration--bind <ADDRESS>: Set bind address (default: 0.0.0.0:8039)POST /api/tts - Generate speech from text
text: Text to convert to speechdescription: Voice descriptiontemperature: Generation temperature (optional)seed: Random seed (optional)top_p: Top-p sampling parameter (optional)GET /api/health - Health checkGET /api/debug - Debug endpointhttp://localhost:8039MIT or APACHE
Rust
69.2%
HTML
28.7%
Shell
2.1%
A Rust and Wasm Demo to generate and play speech from text using Parler-TTS.
Rust
17
0 commits
updated Sep 25, 2025
A Text-to-Speech (TTS) application using Rust and WASM with Parler-TTS model integration.
If you are looking for a pure rust pure rust TTS system that is production ready, you are in the wrong place. π

This project consists of:
βββ backend/ # Axum HTTP server with TTS API endpoints
βββ frontend/ # WASM module compiled from Rust for browser audio functionality
βββ scripts/ # Build and development scripts
βββ public/ # Static frontend files served by the backend
Build WASM frontend:
cd scripts && ./build.sh
Build backend:
cd backend && cargo check && cargo build
Build for release:
cd backend && cargo build --release
The backend automatically detects and uses the best available acceleration:
This project is only tested with CUDA
# Build with CUDA support (NVIDIA GPUs)
cd backend && cargo build --release --features cuda
# Build with Metal support (Apple Silicon)
cd backend && cargo build --release --features metal
# Build with MKL support (Intel CPU optimization)
cd backend && cargo build --release --features mkl
# Build with Accelerate support (macOS CPU optimization)
cd backend && cargo build --release --features accelerate
Start development server:
cd scripts && ./start.sh
Or manually:
cd scripts && ./build.sh && cd ../backend && cargo run
The server runs on http://localhost:8039 (or configured port) and serves:
/api/*/backend/public/--cpu: Force CPU usage instead of GPU acceleration--bind <ADDRESS>: Set bind address (default: 0.0.0.0:8039)POST /api/tts - Generate speech from text
text: Text to convert to speechdescription: Voice descriptiontemperature: Generation temperature (optional)seed: Random seed (optional)top_p: Top-p sampling parameter (optional)GET /api/health - Health checkGET /api/debug - Debug endpointhttp://localhost:8039MIT or APACHE
Rust
69.2%
HTML
28.7%
Shell
2.1%