voiceVolume property

int get voiceVolume

Returns the current voice (TTS) volume.

Returns

  • Integer volume in the range 0..10.

Also see:

Implementation

static int get voiceVolume {
  final OperationResult result = staticMethod(
    'SoundService',
    'getVoiceVolume',
  );
  return result['result'];
}
set voiceVolume (int volume)

Set the voice (TTS) volume (0..10).

If a system interruption is active (e.g., a phone call), the volume change may be deferred until the interruption ends.

Parameters

  • volume: Integer volume in range 0..10.

Also see:

Implementation

static set voiceVolume(int volume) {
  staticMethod('SoundService', 'setVoiceVolume', args: volume);
}