У вас есть несколько вариантов.
FIRST:
Включение / отключение голосовых подсказок для определенного маневра.
@interface NMANavigationManager : NSObject
.....
- (BOOL)setVoiceEnabled:(BOOL)enabled forManeuverAction:(NMAManeuverAction)action
.....
NMAManeuver.h
/**
* Defines types of actions for a NMAManeuver.
*/
typedef NS_ENUM(NSInteger, NMAManeuverAction) {
/** An undefined action. */
NMAManeuverActionUndefined = 0, // 0
/** An indication there is no action associated with the maneuver. */
NMAManeuverActionNone, // 1
/** An action that indicates the end of a route. */
NMAManeuverActionEnd, // 2
/** An action that indicates a stopover. */
NMAManeuverActionStopover, // 3
/** An action that indicates a junction. */
NMAManeuverActionJunction, // 4
/** An action that indicates a roundabout. */
NMAManeuverActionRoundabout, // 5
/** An action that indicates a u-turn. */
NMAManeuverActionUTurn, // 6
/** An action that indicates entering a highway from the right. */
NMAManeuverActionEnterHighwayFromRight, // 7
/** An action that indicates entering a highway from the left. */
NMAManeuverActionEnterHighwayFromLeft, // 8
/** An action that indicates entering a highway. */
NMAManeuverActionEnterHighway, // 9
/** An action that indicates leaving a highway. */
NMAManeuverActionLeaveHighway, // 10
/** An action that indicates changing from one highway to another. */
NMAManeuverActionChangeHighway, // 11
/** An action that indicates continuing along a highway. */
NMAManeuverActionContinueHighway, // 12
/** An action that indicates boarding a ferry. */
NMAManeuverActionFerry, // 13
/** An action that indicates passing a junction. */
NMAManeuverActionPassJunction, // 14
/** An action that indicates heading after leaving public transit station. */
NMAManeuverActionHeadTo, // 15
/** An action that indicates passing a station. */
NMAManeuverActionPassStation, // 16
/** An action that indicates transit line change. */
NMAManeuverActionChangeLine, // 17
/** An invalid action. */
NMAManeuverActionInvalid = -1
};
SECOND: Вы можете использовать метод делегата.Просто верните НЕТ, и вы не услышите ни одного голосового отзыва.
@protocol NMANavigationManagerDelegate<NSObject>
@optional
......
-(BOOL)navigationManager:(NMANavigationManager *)navigationManager shouldPlayVoiceFeedbackWithText:(NSString *)text
.....
Но в этом случае вам придется проанализировать «текст обратной связи», чтобы понять, отправлялись ли вы воспроизводить обратную связь.