bvibber / ogv.js

JavaScript media player using Ogg/Vorbis/Theora/Opus/WebM libs compiled with Emscripten
https://brooke.vibber.net/misc/ogv.js/demo/
Other
1.2k stars 101 forks source link

Opus sounds distorted in Safari (iOS) #581

Open peracc opened 3 years ago

peracc commented 3 years ago

Good evening. I used this library in my React project for a while, but now I'm facing a problem. The problem occurs in Safari on iOS (haven't tested on Mac due to lack). I have some voice recordings (in .opus format) which are "croacking" when a word in the record ends (for ex. word "hello" sounds "hell.." and then it just croaks like something is wrong with the speaker). The problem occurs not only while playing via speaker, but via airpods too.

Tried updating to v 1.7.0 and public source files, but with no luck.

peracc commented 3 years ago

Okay, the problem wasn't really with the ogv.js, the problem was with the nosleep.js. Still, the audio on any device sounds a bit distorted, kinda 'metallic'

bvibber commented 3 years ago

(I'll keep an eye out when doing fixes on the audio layer. Could be an issue with resampling if the output device is set at 44.1 kHz)