com.amap.api.navi

## 类 AMapNaviViewOptions.VoiceAssistSettings

- java.lang.Object
- - com.amap.api.navi.AMapNaviViewOptions.VoiceAssistSettings

- 封闭类:
    AMapNaviViewOptions

      public static class AMapNaviViewOptions.VoiceAssistSettings
      extends java.lang.Object

  导航过程中语音辅助功能设置
  Voice assistance settings during navigation

  注意：
  Note：

- 所有设置仅对使用内置语音时才会生效，开启与关闭内置语音请参考：`AMapNavi.setUseInnerVoice(boolean, boolean)`
All settings only take effect when using the built-in voice. For enabling and disabling the built-in voice, please refer to ：`AMapNavi.setUseInnerVoice(boolean, boolean)`
- 音频相关设置仅在Android8.0及以上版本生效
Audio-related settings only take effect on Android 8.0 and above

从以下版本开始:
  10.0.820
另请参阅:
  `AMapNavi.setUseInnerVoice(boolean, boolean)`

- - ### 构造器概要

    构造器
    构造器和说明
    `VoiceAssistSettings()` 构造函数 constructor
    `VoiceAssistSettings(boolean enabled, boolean listenToVoiceDuringCall, int controlMusicVolumeMode)` 构造函数 constructor

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `setControlMusicVolumeMode(int musicVolumeMode)` 设置播放导航语音时对音乐的控制方式。
    `AMapNaviViewOptions.VoiceAssistSettings` | `setEnabled(boolean enabled)` 设置语音辅助功能控制面板是否启用 Set whether the voice accessibility control panel is enabled 注意： Note： 当设置为false时，AMapNaviView中不会显示语音辅助功能控制面板 。
    `AMapNaviViewOptions.VoiceAssistSettings` | `setListenToVoiceDuringCall(boolean listenToVoiceDuringCall)` 设置通话过程中是否播放导航语音，默认值：false, 不播放导航语音 Set whether to play navigation voice during a call, default value: false, do not play navigation voice 注意： Note： 该选项与`AMapNavi.setListenToVoiceDuringCall(boolean)`功能相同 This option is related to`AMapNavi.setListenToVoiceDuringCall(boolean)`Same function

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### VoiceAssistSettings

          public VoiceAssistSettings(boolean enabled,
                                     boolean listenToVoiceDuringCall,
                                     int controlMusicVolumeMode)

      构造函数
      constructor
      参数:
        `enabled` - 是否开启， 默认值：false, 不开启
        Enabled (default: false, disabled)
        `listenToVoiceDuringCall` - 通话时是否播放导航语音， 默认值：false, 不播放导航语音
        Whether to play navigation voice during a call. Default value: false (no navigation voice playback).
        `controlMusicVolumeMode` - 播放导航语音对音乐的控制，
        Playing navigation voice to control music 默认值：`AMapNaviControlMusicVolumeMode.MUSIC_VOLUME_MODE_DEPRESS` - 压低音乐 Default value：`AMapNaviControlMusicVolumeMode.MUSIC_VOLUME_MODE_DEPRESS` - "Lower music volume"

    - #### VoiceAssistSettings

          public VoiceAssistSettings()

      构造函数
      constructor
      从以下版本开始:
        10.0.820

  - ### 方法详细资料

    - #### setEnabled

          public AMapNaviViewOptions.VoiceAssistSettings setEnabled(boolean enabled)

      设置语音辅助功能控制面板是否启用
      Set whether the voice accessibility control panel is enabled

      注意：
      Note：

    - 当设置为false时，AMapNaviView中不会显示语音辅助功能控制面板
    。 "When set to false, the AMapNaviView will not display the voice-assisted feature control panel."
    - 当设置为false时，AMapNaviView内部不会再对相关语音进行设置
    "When set to false, the AMapNaviView will no longer configure related voice features internally."
    - 当设置为true时，AMapNaviView内部会根据相关音频设置，设置给导航
    "When set to true, the internal logic of AMapNaviView will apply related audio settings to the navigation."

参数:
  `enabled` - 是否显示，默认值：false, 不显示
  `enabled` - Whether to display. Default value: false (not displayed)
从以下版本开始:
  10.0.820
另请参阅:
  `AMapNavi.setListenToVoiceDuringCall(boolean)`, `AMapNavi.setControlMusicVolumeMode(int)`

- #### setListenToVoiceDuringCall

      public AMapNaviViewOptions.VoiceAssistSettings setListenToVoiceDuringCall(boolean listenToVoiceDuringCall)

  设置通话过程中是否播放导航语音，默认值：false, 不播放导航语音
  Set whether to play navigation voice during a call, default value: false, do not play navigation voice

  注意：
  Note：

- 该选项与`AMapNavi.setListenToVoiceDuringCall(boolean)`功能相同
- This option is related to`AMapNavi.setListenToVoiceDuringCall(boolean)`Same function

参数:
  `listenToVoiceDuringCall` - 通话过程中是否播放导航语音，默认值：false, 不播放导航语音
  Set whether to play navigation voice during a call, default value: false, do not play navigation voice
从以下版本开始:
  10.0.820
另请参阅:
  `AMapNavi.setListenToVoiceDuringCall(boolean)`

- #### setControlMusicVolumeMode

      public void setControlMusicVolumeMode(int musicVolumeMode)

  设置播放导航语音时对音乐的控制方式。可选项：
  Set the control method for music when playing navigation voice. Options
- 压低音乐声音（默认值）- `AMapNaviControlMusicVolumeMode.MUSIC_VOLUME_MODE_DEPRESS`
- "Reduce music volume (default: enabled)"- `AMapNaviControlMusicVolumeMode.MUSIC_VOLUME_MODE_DEPRESS`
- 暂停音乐播报- `AMapNaviControlMusicVolumeMode.MUSIC_VOLUME_MODE_PAUSE`
- Pause music playback- `AMapNaviControlMusicVolumeMode.MUSIC_VOLUME_MODE_PAUSE`

功能与`AMapNavi.setControlMusicVolumeMode(int)`相同

Features and `AMapNavi.setControlMusicVolumeMode(int)` Same

参数:
  `musicVolumeMode` - 播放导航语音时对音乐的控制方式，
  How to control music while playing navigation voice 默认值：`AMapNaviControlMusicVolumeMode.MUSIC_VOLUME_MODE_DEPRESS`，压低声音
  Default value ：`AMapNaviControlMusicVolumeMode.MUSIC_VOLUME_MODE_DEPRESS`，Lower your voice
从以下版本开始:
  10.0.820
另请参阅:
  `AMapNavi.setControlMusicVolumeMode(int)`