Remove labs setting for voice messages, enable the feature by default. Fixed incorrect ffmpeg arguments.

This commit is contained in:
Stefan Ceriu
2021-08-06 12:18:10 +03:00
committed by Stefan Ceriu
parent caab471352
commit 7c637939a9
6 changed files with 4 additions and 50 deletions
@@ -24,7 +24,7 @@ enum VoiceMessageAudioConverterError: Error {
struct VoiceMessageAudioConverter {
static func convertToOpusOgg(sourceURL: URL, destinationURL: URL, completion: @escaping (Result<Void, VoiceMessageAudioConverterError>) -> Void) {
let command = "-hide_banner -y -i \"\(sourceURL.path)\" -c:a libopus -b:a -b:a 24k \"\(destinationURL.path)\""
let command = "-hide_banner -y -i \"\(sourceURL.path)\" -c:a libopus -b:a 24k \"\(destinationURL.path)\""
executeCommand(command, completion: completion)
}