Questions tagged [audiocontext]

AudioContext is a modular interface for audio processing for the WebAudio API.

277 questions
0
votes
1 answer

Why does recording multiple audio using Recorder.js and MediaDevices result in an empty recording later on?

I am using Recorder.js and MediaDevices to record audio. First few recordings are good but after some recordings (random as far as I can tell) the recorded audio is empty. I can create the same issue if I Press Record and Stop in quick succession…
0
votes
0 answers

HTML5 video: changing audio track via AudioContext class

I'm trying to create a cross-browser way to change the audio track of an HTML5 video that plays in my web-app. I know that audioTracks video property is not supported in all browsers so I've been digging into an alternate way to do it. I came across…
zero
  • 2,999
  • 9
  • 42
  • 67
0
votes
1 answer

AudioContext stops working after being used exactly 50 times

Hi so i'm trying to make a Drum-Kit, for this i'm using AudioContext API. My issue is when I use it exactly 50 times than it stops working. Only thing I found to make it work is to close the previous AudioContext that was used, thing is that it…
Strum
  • 21
  • 2
0
votes
1 answer

Drawing sound bars around a canvas circle

I have the following which draws the frequency of an audio clip as soundbars: const drawSinewave = function() { requestAnimationFrame(drawSinewave); analyser.getByteFrequencyData(sinewaveDataArray); canvasCtx.fillStyle = 'white'; …
strangeQuirks
  • 4,761
  • 9
  • 40
  • 67
0
votes
0 answers

Voice modulator through Javascript possible?

I'm trying to build an app that will take mic input, modulate it, and then broadcast it as an audio source that my web browser can then use. Use cases for this would be like on a video call. If I need to change my voice to artificially make it…
BlueLite
  • 187
  • 1
  • 3
  • 16
0
votes
1 answer

new MediaRecorder(stream[, options]) stream can living modify?

new MediaRecorder(stream[, options]); I want record the user camera and audio I need mixing the song.mp3 to the audio track in recording. and result export a video file to download by link. But the MediaRecorder first params stream can living…
0
votes
1 answer

how to getUserMedia and record the video mixing the mp3 with javascript? mp3 can play pause and stop

I am using getUserMedia and mediaRecorder API to record an video from webcam. I am using chrome version 80. How to getUserMedia and record the video mixing the mp3 with javascript? mp3 can play pause and stop I don't know how to mixing the mp3 to…
0
votes
1 answer

Safari - WebkitAudioContext chokes on some mp3 files for unknown reason

I'm having an issue with certain MP3 files in Safari only. Here's a codepen: https://codepen.io/parliament718/pen/ExjwWEp In chrome, both buttons work to play both files. In safari only the first button works. Why is this? Does safari just choke…
parliament
  • 21,544
  • 38
  • 148
  • 238
0
votes
1 answer

Multiple Audio Contexts, what's the use case?

I'm working with the Web Audio API, and one of the main components is an AudioContext. This object is passed around everywhere, but there's really only one so I'm thinking I should just make it a global and be done with it. Before I do that --…
Seph Reed
  • 8,797
  • 11
  • 60
  • 125
0
votes
0 answers

How to access AudioContext in NodeJS and write sinewave into AudioBuffer

I'm trying to create a small snippet that allows me to make small audio buffers with simple sine waves in nodeJS. I found some code here on StackOverflow that I edited a little. It was intended for a web environment with new window.audioContext.…
jackik
  • 83
  • 1
  • 1
  • 8
0
votes
0 answers

mobile app browsers audio recorder high frequencies

in chrome PC i can record high frequencies , but in mobile chrome app or any other browser mobile app high frequencies are cutting off . any idea? i have tried to create high pass filter with createBiquadFilter , did not work . i am using Audio…
Maor
  • 1
0
votes
0 answers

audiocontext not producing any sound

I am trying to get my feet wet with AudioContext and so far I am not able to get a single sound to play. here is my simple example var context = new AudioContext() var o = context.createOscillator() o.type =…
Chaim Friedman
  • 6,124
  • 4
  • 33
  • 61
0
votes
1 answer

AudioContext decodeAudioData issue on Safari

I want to decode .ogg contents into an ArrayBuffer. I have following code in my Angular application component: ngOnInit() { (window as any).AudioContext = (window as any).AudioContext || (window as any).webkitAudioContext; this.audioContext =…
user5155835
  • 4,392
  • 4
  • 53
  • 97
0
votes
1 answer

Why do I have 2 waveforms with wavesurfer.js when playing?

I have: this.wavesurfer = WaveSurfer.create({ container: "#wavesurfer-player", height: 50, audioContext: _.get(this.$store, "state.audioContext.context"), waveColor: "blue", progressColor: "red" }); …
Shamoon
  • 41,293
  • 91
  • 306
  • 570
0
votes
1 answer

Canvas clear path with clearRect and AudioContext

I have this visualizer, everthing is working well. The only problem is that when you clear canvas with clean function, then click changeSrc, you can always see a visualizer from last song for a second. Can I get rid of this? You might need to run it…
Toniq
  • 4,492
  • 12
  • 50
  • 109