diff --git a/Sources/LiveKit/Participant/LocalParticipant.swift b/Sources/LiveKit/Participant/LocalParticipant.swift index 8f00e216c..f197a2719 100644 --- a/Sources/LiveKit/Participant/LocalParticipant.swift +++ b/Sources/LiveKit/Participant/LocalParticipant.swift @@ -543,7 +543,7 @@ private extension LocalParticipant { populator.disableDtx = !publishOptions.dtx - let encoding = publishOptions.encoding ?? AudioEncoding.presetSpeech + let encoding = publishOptions.encoding ?? AudioEncoding.presetMusic self.log("[publish] maxBitrate: \(encoding.maxBitrate)") diff --git a/Sources/LiveKit/Types/AudioEncoding.swift b/Sources/LiveKit/Types/AudioEncoding.swift index add185960..70063618c 100644 --- a/Sources/LiveKit/Types/AudioEncoding.swift +++ b/Sources/LiveKit/Types/AudioEncoding.swift @@ -60,9 +60,9 @@ public extension AudioEncoding { ] static let presetTelephone = AudioEncoding(maxBitrate: 12000) - static let presetSpeech = AudioEncoding(maxBitrate: 20000) - static let presetMusic = AudioEncoding(maxBitrate: 32000) - static let presetMusicStereo = AudioEncoding(maxBitrate: 48000) - static let presetMusicHighQuality = AudioEncoding(maxBitrate: 64000) - static let presetMusicHighQualityStereo = AudioEncoding(maxBitrate: 96000) + static let presetSpeech = AudioEncoding(maxBitrate: 24000) + static let presetMusic = AudioEncoding(maxBitrate: 48000) + static let presetMusicStereo = AudioEncoding(maxBitrate: 64000) + static let presetMusicHighQuality = AudioEncoding(maxBitrate: 96000) + static let presetMusicHighQualityStereo = AudioEncoding(maxBitrate: 128_000) }