mirror of
https://github.com/krille-chan/fluffychat
synced 2024-08-11 10:33:43 +00:00
chore: Adjust bitrate for smaller voice messages
This commit is contained in:
parent
e2eebe15ab
commit
4605a92d17
1 changed files with 1 additions and 3 deletions
|
@ -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,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue