SpeechVolume

public enum SpeechVolume

Defines volume levels for speech output. Provides different volume levels that can be set for speech output independently of the device’s sound volume.

The SpeechVolume enum specifies three volume levels (low, medium, high) that can be set for speech output. This is useful in scenarios where speech volume needs to be adjusted independently of the device’s overall sound volume. For example, a navigation app might use this to ensure that voice instructions are clearly audible regardless of the device’s current volume settings.

Example usage:

let speechVolume: SpeechVolume = .medium
// Use `speechVolume` to set the desired volume level for speech output.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • low

    Low volume level for speech output.

    Declaration

    Swift

    case low
  • Medium volume level for speech output.

    Declaration

    Swift

    case medium
  • High volume level for speech output.

    Declaration

    Swift

    case high