An option for using piper
and onnx
voices in the browser is through Speech Dispatcher, which Chromium-based browsers (Chrome, Brave, Opera, Edge) and Firefox use for Web Speech API.
I have added the piper
module to Speech Dispatcher following the instructions here module request: piper #866.
Tested on Chromium Version 128.0.6586.0 (Developer Build) (64-bit) and Firefox Nightly 130.0a1. Chromium works. Firefox does not load the piper
voices.
In pertinent part.
Download the piper
executable from releases, extract the contents and save to ~/.local/opt/piper
.