Changeset View
Changeset View
Standalone View
Standalone View
src/apps/marble-maps/NavigationManager.qml
Context not available. | |||||
93 | Navigation { | 93 | Navigation { | ||
---|---|---|---|---|---|
94 | id: navigation | 94 | id: navigation | ||
95 | marbleQuickItem: marbleItem | 95 | marbleQuickItem: marbleItem | ||
96 | soundEnabled: false | | |||
97 | 96 | | |||
98 | onVoiceNavigationAnnouncementChanged: { | 97 | onVoiceNavigationAnnouncementChanged: { | ||
99 | if (!parent.visible) { | 98 | if (!parent.visible) { | ||
100 | return ""; | 99 | return ""; | ||
101 | } | 100 | } | ||
102 | 101 | | |||
103 | switch (voiceNavigationAnnouncement) { | 102 | textToSpeechClient.readText(voiceNavigationAnnouncement); | ||
104 | case "ListEnd": | | |||
105 | audioPlayer.source = "assets:/data/audio/KDE-Sys-List-End.ogg"; | | |||
106 | audioPlayer.stop(); | | |||
107 | audioPlayer.play(); | | |||
108 | break; | | |||
109 | case "AppPositive": | | |||
110 | audioPlayer.source = "assets:/data/audio/KDE-Sys-App-Positive.ogg"; | | |||
111 | audioPlayer.stop(); | | |||
112 | audioPlayer.play(); | | |||
113 | break; | | |||
114 | default: | | |||
115 | textToSpeechClient.readText(voiceNavigationAnnouncement); | | |||
116 | } | | |||
117 | } | 103 | } | ||
118 | } | 104 | } | ||
119 | } | 105 | } | ||
Context not available. |