Decreased record bitrate of voice messages.

Fixed #6708.
This commit is contained in:
23rd 2021-08-31 15:44:24 +03:00
parent bcbab7ad8e
commit 4550b2a315

View file

@ -305,7 +305,7 @@ void Instance::Inner::start(Fn<void(Update)> updated, Fn<void()> error) {
av_opt_set_int(d->codecContext, "refcounted_frames", 1, 0);
d->codecContext->sample_fmt = AV_SAMPLE_FMT_FLTP;
d->codecContext->bit_rate = 64000;
d->codecContext->bit_rate = 32000;
d->codecContext->channel_layout = AV_CH_LAYOUT_MONO;
d->codecContext->sample_rate = kCaptureFrequency;
d->codecContext->channels = 1;