-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio distortion and artifact issues with Rune playback #151
Comments
The same issue can also be reproduced on one of my Linux PCs. Desktop
|
This is improved in: 2077859 I think it could be optimized further, but more effort to dig the issue is necessary. We are still trying. Cheers. |
We have conducted a thorough investigation and identified the core problem. It was determined that an incorrect API was used during audio visualization, which resulted in directly taking a sample from the buffer and causing sample loss. This led to imperfections in audio playback. To address this, we have made modifications to the Rodio API, allowing us to extract data directly from the audio stream without compromising the audio decoding results. After implementing these changes, the issue of sample loss has been resolved, as confirmed by various spectrum analyses. However, when playing a sine wave and extracting its spectrum, you may still notice artifacts. This is due to the underlying audio processing mechanisms of the entire tech stack. Specifically, there is a We are continuing to investigate this matter and hope that our current findings provide you with a better understanding of the situation. |
In our continued investigation into the artifacts observed during sine wave audio playback, we have identified several complex contributing factors. To eliminate potential software-related influences, we controlled all external parameters:
This resulted in a clean, smooth spectrum, indicating that there are no inherent development errors within Rune affecting audio quality. We observed that Rodio's resampling design has flaws, particularly when downsampling from 48000Hz to 44100Hz, resulting in suboptimal signal quality. If we subtract Rodio's decoded output from the Ground Truth signal, the flaws in the resampling parameters become evident. This issue is documented in the official repository's issue section. We will continue to monitor upstream developments and apply updates promptly to ensure the best listening experience. |
Describe the bug
I've noticed subtle audio distortions and artifacts when playing music through both my computer's built-in speakers and headphones. The audio sounds consistently hoarse with a persistent hum and intermittent popping sounds. So I switched to Windows's built-in media player for testing, then I noticed different sound quality.
Here is the frequency spectrum comparison between the original A(frequency=1760Hz, sample_rate = 44.1kHz) sine wave audio file and the recorded output file from Rune using an internal recording tool. I've attached both the test file and the recorded output for reference.
(Upper: Internally recorded Rune audio playback. Lower: Program-generated sine wave audio)
To Reproduce
Steps to reproduce the behavior:
Desktop
sound_files.zip
The text was updated successfully, but these errors were encountered: