You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -194,7 +194,10 @@ open class RouteVoiceController: NSObject, AVSpeechSynthesizerDelegate {
194
194
- parameter locale: The `Locale` used to create the voice read aloud the given instruction. If `nil` the `Locale.preferredLocalLanguageCountryCode` is used for creating the voice.
195
195
*/
196
196
openfunc speak(_ instruction:SpokenInstruction, with locale:Locale?){
197
-
assert(routeProgress !=nil,"routeProgress should not be nil.")
197
+
guardlet routeProgress else{
198
+
assertionFailure("routeProgress should not be nil.")
199
+
return
200
+
}
198
201
199
202
if speechSynth.isSpeaking,let lastSpokenInstruction = lastSpokenInstruction {
0 commit comments