Production-ready Rust server for Amazon Polly TTS integration.
Built for both local and cloud deployment — zero compilation errors, no warnings.
This binary is a diamond: stable, fast, and already used in production.
- Converts plain text or SSML to neural Amazon Polly voices
- Returns audio in WAV format
- Accepts POST requests with dynamic voice switching, pitch, and language
- Modular
.envfile for flexible configuration - Supports SSML input (refer to official Amazon Polly documentation)
- Designed specifically for neural voice output, not standard voices
- Production-stable: zero warnings, clean build
main.rs– the core of the Polly TTS serverCargo.toml– dependencies and build config.env– defines keys, port, default voice, and region
- Clone or download the repository
- Open your terminal and navigate to the folder where
srcexists - Open the
.envfile and set your values:AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_REGIONPORT(e.g.5000)DEFAULT_VOICE(e.g.Ruth)
- Build with:
cargo build --release - After compilation:
cargo run --release
If this server helped you or saved you time, you can support development here:
Donate via Stripe