Voice instructions are available in the HERE SDK as voice packages. Voice packages are available in two forms: pre-packaged or downloadable through the voice catalog. You can set a voice package to be used for navigational instructions. However, if a package is not set, the HERE SDK sets the navigation voice language to US English, which is pre-packaged with the HERE SDK.
Controlling Audio Playback
Your application may require control over the timing of when HERE SDK navigation audio, such as a voice instruction, is played. For example, you may need to interrupt audio feedback to play another audio clip. To do this, use the
cancelVoiceFeedback method in
NMANavigationManager. When this method is called, the current voice feedback stops and any queued feedback is also cleared.
In other scenarios, you may need to suppress navigation audio for a period of time. To do this, implement the
navigationManager:shouldPlayVoiceFeedbackWithText: callback in
NMANavigationManagerDelegate and return
NO. This event is triggered whenever audio feedback is ready to be played, and returning
NO skips this feedback from being played.