mihai8804858 / swift-chunked-audio-player

Simple audio player for sync / async chunked audio streams
MIT License
25 stars 5 forks source link

Clipping/Popping sound during playback on device #2

Open Voqera opened 3 months ago

Voqera commented 3 months ago

When testing on a device (iPhone 14 Pro) I'm getting audible clipping or popping sounds. This makes the playback a poor experience.

This doesn't appear to be an issue when playing back on the simulator.

I've tried passing a reduced volume into the player and using a proxy API for OpenAI, adjusting those variables doesn't impact the issue when played back on the device.

Playback example on device (Clipping) https://github.com/mihai8804858/swift-chunked-audio-player/assets/167458842/30ef3119-5678-47df-898d-be36b8386cc9

Playback on simulator (Smooth) https://github.com/mihai8804858/swift-chunked-audio-player/assets/167458842/699feacf-423d-4595-b162-828471db13a3

Anecdotally, the overall volume does seem to be louder than I would expect for the device volume and the player volume levels

stefanteulon commented 3 months ago

Appears to be localized to the .aac format. Using .mp3 does not have this issue.