We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
` const startRecording = () => { regenerateImageButton.disabled = true; let constraints = { audio: true, video: false, };
recordButton.disabled = true; stopButton.disabled = false; pauseButton.disabled = false; audioContext = new window.AudioContext({ sampleRate: 16000, //bufferLen: 4096 }); console.log("sample rate: " + audioContext.sampleRate); navigator.mediaDevices .getUserMedia(constraints) .then(function (stream) { console.log("initializing Recorder.js ..."); gumStream = stream; let input = audioContext.createMediaStreamSource(stream); recorder = new window.Recorder(input, { numChannels: 1, sampleBits: 16, // 8 or 16 //bufferLen: 4096, mimeType: "audio/wav", }); recorder.record(); if (stoptime == true) { stoptime = false; timerCycle(); } }) .catch(function (err) { //enable the record button if getUserMedia() fails recordButton.disabled = false; stopButton.disabled = true; pauseButton.disabled = true; });
};`
Thanks in advance!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
` const startRecording = () => {
regenerateImageButton.disabled = true;
let constraints = {
audio: true,
video: false,
};
};`
By default It is creating .wav file with 512kbps. I want to set it to 256kbps through code. Not getting any options. Any help will be appreciated.
Thanks in advance!
The text was updated successfully, but these errors were encountered: