| The Following 4 Users Say Thank You to rinigus For This Useful Post: | ||
[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Got library name: "/usr/lib/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so"
[D] onCompleted:334 - Warning: specifying an object instance for initialPage is sub-optimal - prefer to use a Component
[D] unknown:0 - Geoclue client path: "/org/freedesktop/Geoclue/Master/client2"
[W] unknown:0 - QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'
[W] unknown:0 - [ INFO ] "{QSGRenderThread}[General]: GPU Identifier: Adreno (TM) 305"
[W] unknown:0 - [ WARNING ] "{QSGRenderThread}[OpenGL]: Not using Vertex Array Objects"
[D] unknown:0 - Cannot convert: QVariant(void*, 0x0)
function initVoiceNavigation() {
// Initialize a TTS engine for the current routing instructions.
if (app.conf.voiceNavigation) {
var args = [map.route.language, app.conf.voiceGender];
console.log('Engine opts ' + map.route.language + ' ' + app.conf.voiceGender)
py.call_sync("poor.app.narrative.set_voice", args);
var engine = py.evaluate("poor.app.narrative.voice_engine");
console.log('Engine ' + engine)
if (engine) {
notification.flash(app.tr("Voice navigation on"), "mapVoice");
app.playMaybe("std:starting navigation");
} else
notification.flash(app.tr("Voice navigation unavailable: missing Text-to-Speech (TTS) engine for selected language"), "mapVoice");
} else {
py.call_sync("poor.app.narrative.set_voice", [null, null]);
}
}
diff Map.qml.orig Map.qml
468a469
> console.log('Engine opts ' + map.route.language + ' ' + app.conf.voiceGender)
470a472
> console.log('Engine ' + engine)
[D] initVoiceNavigation:469 - Engine opts en-US female [D] initVoiceNavigation:472 - Engine
diff Map.qml.orig Map.qml.patched
474c474
< } else
---
> } else {
475a476
> }
diff Map.qml.orig Map.qml
468a469
> console.log('Engine opts ' + map.route.language + ' ' + app.conf.voiceGender)
470a472
> console.log('Engine ' + engine)
[D] initVoiceNavigation:469 - Engine opts en-US female [D] initVoiceNavigation:472 - Engine
diff Map.qml.orig Map.qml.patched
474c474
< } else
---
> } else {
475a476
> }
| The Following 4 Users Say Thank You to rinigus For This Useful Post: | ||
grep -r en-US /usr/share/harbour-pure-maps/
/usr/share/harbour-pure-maps/poor/voice.py: "en": {"female": "en-US"},
/usr/share/harbour-pure-maps/poor/voice.py: "en_US": {"female": "en-US"},
/usr/share/harbour-pure-maps/poor/voice.py: "en-US-x-pirate": {"male": "awb", "female": "slt"},
/usr/share/harbour-pure-maps/routers/ValhallaSettings.qml: property var keys: ["ca", "cs", "en", "en-US-x-pirate", "fr", "de", "hi", "it", "pt", "ru", "sl", "es", "sv"]
/usr/share/harbour-pure-maps/routers/gpx_osmscout_settings.qml: property var keys: ["ca", "cs", "en", "en-US-x-pirate", "fr", "de", "hi", "it", "pt", "ru", "sl", "es", "sv"]