GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSNavigationVoiceGuidance
enum GMSNavigationVoiceGuidance : NSInteger {}
Determines whether voice guidance is played under certain circumstances.
-
Declaration
Objective-C
GMSNavigationVoiceGuidanceSilent = 0
-
Enables voice guidance for traffic alerts only.
Declaration
Swift
case alertsOnly = 1
Objective-C
GMSNavigationVoiceGuidanceAlertsOnly
-
Enables voice guidance for both turn-by-turn guidance and alerts.
Declaration
Swift
case alertsAndGuidance = 2
Objective-C
GMSNavigationVoiceGuidanceAlertsAndGuidance
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSNavigationVoiceGuidance\u003c/code\u003e is an enum used to control voice guidance during navigation.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three options: \u003ccode\u003esilent\u003c/code\u003e to disable voice guidance completely, \u003ccode\u003ealertsOnly\u003c/code\u003e for traffic alerts only, and \u003ccode\u003ealertsAndGuidance\u003c/code\u003e for both turn-by-turn directions and alerts.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this enum to customize the level of voice guidance provided in their navigation applications.\u003c/p\u003e\n"]]],["`GMSNavigationVoiceGuidance` controls voice guidance behavior, offering three options. `silent` (0) completely disables voice guidance. `alertsOnly` (1) activates voice guidance solely for traffic alerts. `alertsAndGuidance` (2) enables voice guidance for both turn-by-turn directions and traffic alerts. These are defined in both Swift (`case`) and Objective-C (`GMSNavigationVoiceGuidance`) as `enum` with different `NSInteger` values, allowing developers to customize the level of voice feedback in their applications.\n"],null,["# GoogleNavigation Framework Reference\n\nGMSNavigationVoiceGuidance\n==========================\n\n enum GMSNavigationVoiceGuidance : NSInteger {}\n\nDetermines whether voice guidance is played under certain circumstances.\n- `\n ``\n ``\n `\n\n ### [GMSNavigationVoiceGuidanceSilent](#/c:@E@GMSNavigationVoiceGuidance@GMSNavigationVoiceGuidanceSilent)\n\n `\n ` \n Disables voice guidance. \n\n #### Declaration\n\n Swift \n\n case silent = 0\n\n Objective-C \n\n GMSNavigationVoiceGuidanceSilent = 0\n\n- `\n ``\n ``\n `\n\n ### [GMSNavigationVoiceGuidanceAlertsOnly](#/c:@E@GMSNavigationVoiceGuidance@GMSNavigationVoiceGuidanceAlertsOnly)\n\n `\n ` \n Enables voice guidance for traffic alerts only. \n\n #### Declaration\n\n Swift \n\n case alertsOnly = 1\n\n Objective-C \n\n GMSNavigationVoiceGuidanceAlertsOnly\n\n- `\n ``\n ``\n `\n\n ### [GMSNavigationVoiceGuidanceAlertsAndGuidance](#/c:@E@GMSNavigationVoiceGuidance@GMSNavigationVoiceGuidanceAlertsAndGuidance)\n\n `\n ` \n Enables voice guidance for both turn-by-turn guidance and alerts. \n\n #### Declaration\n\n Swift \n\n case alertsAndGuidance = 2\n\n Objective-C \n\n GMSNavigationVoiceGuidanceAlertsAndGuidance"]]