Add selectable TTS engine (Windows/Piper/Kokoro) with Kokoro neural voices - #406
Merged
Conversation
Owner
|
Yeah this is a good idea. I wanted to add something better than piper at some point. I know it's not amazing but at least it's small and would run on anything. But I don't think anyone really likes it and having a few options would be good. I'll try this out. |
Owner
|
So looking at this I may want to have piper work the same way and then make a lot of the voices optional to cut down on how much needs to get installed. Plus I'm not sure if the fp32 model might be overkill. For simple speech I don't know if anyone could tell the difference if it uses fp16 or something instead. Still a good idea just make take a little bit to integrate everything. |
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.
I felt that piper voices were a little harsh. I added Kokoro. I did use a robot to help since I don't have any experience in .net.
I've tried a bunch of other tools for EQL and nothing has been as good at alerting as EQLogParse.
Add selectable TTS engine (Windows / Piper / Kokoro), with working Kokoro neural voices
Changes
EQLogParser.Audio(audio engine)AudioManager: replaced the implicit "first engine found wins" startup logic with an explicit, persisted engine preference (WindowsEngine/PiperEngine/KokoroEngineconstants).Initialize()now takes apreferredEngineparameter; if unset it falls back to the previous auto-detect order (Piper → Kokoro → Windows) for existing installs.AudioManager.GetAvailableEngines()— lists engines that can actually be selected right now (Windows always; Piper if its voice pack is present; Kokoro if the model has been downloaded).AudioManager.GetActiveEngine()— reports which engine is actually running this session, so the UI can flag when a change needs a restart.PiperTts: addedIsVoicePackAvailable(), a side-effect-free check for the voice pack (previously the only way to check was callingInitialize(), which has side effects like setting the native DLL search path).IAudioManager: addedGetActiveEngine()to the public contract.EQLogParser(app)App.xaml.cs: reads the persisted"TtsEngine"setting and passes it intoAudioManager.Initialize()at startup.TtsEngineWindow(replacesKokoroSetupWindow): adds a combo box to pick the active TTS engine from whatever's currently available, persists the choice, and shows a "restart required" hint when the selection differs from the active engine — alongside the existing Kokoro model download flow.TriggersView: renamed the "Kokoro TTS" button to "TTS Engine" and pointed it at the new window.Installer
EQLogParserInstall.iss: minor — installs the bundled Kokorovoices\*folder unconditionally (previously only Piper's voices were referenced).Behavior after this change
Not covered
AudioManager's engine selection previously).