Files
nixpkgs/pkgs/by-name/pi/pied/patches/add_piper_tts-path.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

30 lines
1.3 KiB
Diff

diff --git a/lib/main.dart b/lib/main.dart
index d677fc3..14c6fd9 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -52,9 +52,8 @@ class _MainPageState extends State<MainPage> {
void checkForPiper() async {
final Directory appDir = await getDataDir();
- Directory piperDir = Directory(path.join(appDir.path, "piper"));
setState(() {
- piperPresent = piperDir.existsSync();
+ piperPresent = true;
if (piperPresent) {
title = "Voice Selection";
}
diff --git a/lib/voice_selector.dart b/lib/voice_selector.dart
index 33944ed..66949e3 100644
--- a/lib/voice_selector.dart
+++ b/lib/voice_selector.dart
@@ -363,8 +363,7 @@ class _VoiceSelectorState extends State<VoiceSelector> {
configString =
configString.replaceAll(
"PIPER_PATH",
- path.join(appDir.path,
- "piper", "piper"));
+ "piper");
configString =
configString.replaceAll(
"MODEL_PATH",