chore: Adjust bitrate for smaller voice messages

This commit is contained in:
krille-chan 2023-10-28 12:46:22 +02:00
parent e2eebe15ab
commit 4605a92d17
No known key found for this signature in database

View file

@ -31,8 +31,7 @@ class RecordingDialogState extends State<RecordingDialog> {
final _audioRecorder = AudioRecorder();
final List<double> amplitudeTimeline = [];
static const int bitRate = 64000;
static const int samplingRate = 22050;
static const int bitRate = 16000;
Future<void> startRecording() async {
try {
@ -61,7 +60,6 @@ class RecordingDialogState extends State<RecordingDialog> {
noiseSuppress: true,
echoCancel: true,
bitRate: bitRate,
sampleRate: samplingRate,
),
path: path,
);