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 _audioRecorder = AudioRecorder();
|
||||||
final List<double> amplitudeTimeline = [];
|
final List<double> amplitudeTimeline = [];
|
||||||
|
|
||||||
static const int bitRate = 64000;
|
static const int bitRate = 16000;
|
||||||
static const int samplingRate = 22050;
|
|
||||||
|
|
||||||
Future<void> startRecording() async {
|
Future<void> startRecording() async {
|
||||||
try {
|
try {
|
||||||
|
|
@ -61,7 +60,6 @@ class RecordingDialogState extends State<RecordingDialog> {
|
||||||
noiseSuppress: true,
|
noiseSuppress: true,
|
||||||
echoCancel: true,
|
echoCancel: true,
|
||||||
bitRate: bitRate,
|
bitRate: bitRate,
|
||||||
sampleRate: samplingRate,
|
|
||||||
),
|
),
|
||||||
path: path,
|
path: path,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue