mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
From 927bbbb6fda2f5446683aa9d54031ae67f096921 Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Mon, 15 Apr 2024 20:51:10 +1000
|
|
Subject: Fix flite voices path
|
|
|
|
|
|
diff --git a/src/plugins/tts/flite/qtexttospeech_flite_processor.cpp b/src/plugins/tts/flite/qtexttospeech_flite_processor.cpp
|
|
index 99c263e..539eef8 100644
|
|
--- a/src/plugins/tts/flite/qtexttospeech_flite_processor.cpp
|
|
+++ b/src/plugins/tts/flite/qtexttospeech_flite_processor.cpp
|
|
@@ -224,7 +224,7 @@ bool QTextToSpeechProcessorFlite::init()
|
|
// We could source the language and perhaps the list of voices we want to load
|
|
// (hardcoded below) from an environment variable.
|
|
const QLatin1StringView langCode("us");
|
|
- const QLatin1StringView libPrefix("flite_cmu_%1_%2.so.1");
|
|
+ const QLatin1StringView libPrefix("flite_cmu_%1_%2.so.2");
|
|
const QLatin1StringView registerPrefix("register_cmu_%1_%2");
|
|
const QLatin1StringView unregisterPrefix("unregister_cmu_%1_%2");
|
|
|
|
@@ -273,7 +273,8 @@ QStringList QTextToSpeechProcessorFlite::fliteAvailableVoices(const QString &lib
|
|
QStringList ldPaths = pe.value("LD_LIBRARY_PATH"_L1).split(":", Qt::SkipEmptyParts);
|
|
if (ldPaths.isEmpty()) {
|
|
ldPaths = QStringList{"/usr/lib64"_L1, "/usr/local/lib64"_L1, "/lib64"_L1,
|
|
- "/usr/lib/x86_64-linux-gnu"_L1, "/usr/lib"_L1};
|
|
+ "/usr/lib/x86_64-linux-gnu"_L1, "/usr/lib"_L1,
|
|
+ "/system/lib"_L1, "/system/lib/x86"_L1};
|
|
} else {
|
|
ldPaths.removeDuplicates();
|
|
}
|
|
--
|
|
2.48.1
|
|
|