Kagami / vmsg

:musical_note: Library for creating voice messages
https://kagami.github.io/vmsg/
Creative Commons Zero v1.0 Universal
348 stars 58 forks source link

Occasional garbled audio recording #48

Open nathanbedford opened 4 years ago

nathanbedford commented 4 years ago

Hello! Vmsg is awesome - we're using it in a production React web app. The vast majority of the time it works flawlessly, but we've had a few instances where the recorded audio file will be a little garbled (almost like it's being sped up or slowed down). We are not setting the pitch option to anything, so its default value of 0 should be active.

This seems to happen randomly - for a given user most recordings are fine, and then once in a while one is messed up. I can upload an example if it helps.

Any ideas on what might cause this?

nathanbedford commented 4 years ago

This seems to be an issue with Safari in particular. We're still digging in to the issue, if we see other browsers impacted I'll note that here.

alectrocute commented 4 years ago

48khz mic being made 41khz, or vice versa? Sounds like Safari is passing the wrong sample rate.

danieloi commented 4 years ago

I’m experiencing the same issues. Does anyone have a solution? I noticed its markedly better in the demo than in my local version. Is there some discrepancy between the libraries for the demo and what’s on npm?

I even used the wasm file served for the demo but the quality still suffers.

danieloi commented 4 years ago

48khz mic being made 41khz, or vice versa? Sounds like Safari is passing the wrong sample rate.

Can anyone give pointers on how to investigate and implement a fix like this?

matheusgaya commented 4 years ago

Any solution? Having the same issue!

danieloi commented 4 years ago

Status unchanged.

danieloi commented 3 years ago

updated safari and it's no longer an issue