Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Jan 14, 2025
1 parent 69bc146 commit 27979dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/LiveKit/Participant/LocalParticipant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)")

Expand Down
10 changes: 5 additions & 5 deletions Sources/LiveKit/Types/AudioEncoding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 27979dc

Please sign in to comment.