VoiceNote constructor

const VoiceNote(
  1. {required int duration,
  2. required String waveform,
  3. required String mimeType,
  4. SpeechRecognitionResult? speechRecognitionResult,
  5. required File voice}
)

Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel

Implementation

const VoiceNote({
  required this.duration,
  required this.waveform,
  required this.mimeType,
  this.speechRecognitionResult,
  required this.voice,
});