Description
Hey Folks,
I have a problem for this library,
My problem is window.WebAudioRecorder is not a function.
I am using angular 9
"web-audio-recorder-js": "0.0.2", installed, with npm
this.voiceRecorder = window.WebAudioRecorder (this.voiceRecorderInput, {
workerDir: 'node_modules/web-audio-recorder-js/lib-minified/', // must end with slash
encoding: 'ogg',
numChannels: 2, // 2 is the default, mp3 encoding supports only 2
onEncoderLoading: function (voiceRecorder, encoding) {
// show 'loading encoder...' display
console.log('Loading ' + encoding + ' encoder...');
},
onEncoderLoaded: function (voiceRecorder, encoding) {
// hide 'loading encoder...' display
console.log(encoding + ' encoder loaded');
},
});
Could you help me anyone, ı tried sometimes but ı didnt solve it.