You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.
While recording audio in .wav format, sometimes only 44 bytes are recording. I don't know the reason.
So kindly help me. I'm using recorder-js in angular6.
The text was updated successfully, but these errors were encountered:
Anyone who is monitoring this - this is directly related to the other issue posted about audio context starting. The solution to this is pretty easy, in the example there is a line like this:
const audioContext = new (window.AudioContext || window.webkitAudioContext)();
Really what you want to do is create the audioContext in your click handler, not as a const. E.g.
var audioContext = null;
$(".record").click(function() {
if (audioContext == null) {
audioContext = new (window.AudioContext || window.webkitAudioContext)();
}
// rest of example will work now
});
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
While recording audio in .wav format, sometimes only 44 bytes are recording. I don't know the reason.
So kindly help me. I'm using recorder-js in angular6.
The text was updated successfully, but these errors were encountered: