you-apps / RecordYou

Privacy focused recorder app built with MD3
https://you-apps.net
GNU General Public License v3.0
661 stars 31 forks source link

Allow high quality opus recording #273

Closed pvagner closed 4 months ago

pvagner commented 4 months ago

Opus codec supports low latency and high quality audio recording. I think we should make more reasonable defaults and allow more fine grained control for people who know what they are doing. Another stab at fixing #193. Since #235 as an addition to disabling sample rate control setting up the bitrate is no longer working for opus file recordings. These sample rates are natively supported by the opus encoder with no resampling involved: 8, 12, 16, 24, or 48 kHz. See this FAQ answer and a few follow up answers https://wiki.xiph.org/OpusFAQ#What_is_Opus_Custom? When not specifying the sample rate at all resulting files have some kind of default sample rate that severely degrades audio quality. When inspecting files with ffmpeg the sample rate is always displayed as 48000. I have verified that setting the sample rate it increases audio quality though. Changes based off of this: