Add fono generic output module - #1117
Merged
Merged
Conversation
fono is a command-line voice stack that plays synthesized audio itself, so sd_generic only has to pipe text into 'fono speak stream'. The backend behind it (local ONNX, Wyoming, or a cloud vendor) is set in fono's own config and does not change this file. Signed-off-by: Bogdan Radulescu <bogdan@nimblex.net>
Collaborator
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a generic output module config for fono, a command-line voice stack.
fono speak streamreads text on stdin and plays the audio itself, so the module is a one-liner and needs no$PLAY_COMMAND. It stops on SIGKILL, so stop and cancel work.Which synthesizer actually speaks is fono's business, not this file's: on-device ONNX (Kokoro, Piper, Supertonic), a Wyoming server, an OpenAI-compatible endpoint, or a cloud vendor like ElevenLabs or Cartesia. Switching backends does not touch the config here.
Voices are mapped by fono's palette labels (
male 1,female 2, ...) instead of raw model ids, so theAddVoicelines hold across backends.DefaultVoice "auto"lets fono pick per the language of the text.Same shape as
edgetts-generic.confandmimic3-generic.conf: config only, no build changes,GenericCmdDependency "fono"so the module is skipped when fono is not installed.Tested on Slackware with speech-dispatcher 0.12.1:
spd-say -o fono-generic, voice selection with-y, andspd-say -Cmid-utterance.