@@ -271,6 +271,7 @@ class VoiceRecordingConfiguration {
271271 /// Styling configuration for the recorder widget as well as
272272 /// configuring the audio recording quality.
273273 const VoiceRecordingConfiguration ({
274+ this .recorderSettings,
274275 this .waveStyle,
275276 this .padding,
276277 this .margin,
@@ -279,11 +280,6 @@ class VoiceRecordingConfiguration {
279280 this .micIcon,
280281 this .recorderIconColor,
281282 this .stopIcon,
282- this .sampleRate,
283- this .bitRate,
284- this .androidEncoder,
285- this .iosEncoder,
286- this .androidOutputFormat,
287283 });
288284
289285 /// Applies styles to waveform.
@@ -311,24 +307,10 @@ class VoiceRecordingConfiguration {
311307 /// Applies color to mic and stop icon.
312308 final Color ? recorderIconColor;
313309
314- /// The sample rate for audio is measured in samples per second.
315- /// A higher sample rate generates more samples per second,
316- /// resulting in better audio quality but also larger file sizes.
317- final int ? sampleRate;
318-
319- /// Bitrate is the amount of data per second that the codec uses to
320- /// encode the audio. A higher bitrate results in better quality
321- /// but also larger file sizes.
322- final int ? bitRate;
323-
324- /// Audio encoder to be used for recording for IOS.
325- final IosEncoder ? iosEncoder;
326-
327- /// Audio encoder to be used for recording for Android.
328- final AndroidEncoder ? androidEncoder;
329-
330- /// The audio output format to be used for recorded audio files on Android.
331- final AndroidOutputFormat ? androidOutputFormat;
310+ /// Configures audio recording settings for Android and iOS.
311+ ///
312+ /// if null, default settings will be used.
313+ final RecorderSettings ? recorderSettings;
332314}
333315
334316class CancelRecordConfiguration {
0 commit comments