Questions tagged [webkitaudiocontext]

Use webkitaudiocontext for questions related to the Webkit prefixed version of the AudioContext API of the Web Audio API specification

References

73 questions
1
vote
0 answers

Using JavaScript to stream audio via webKitAudioContext

I am trying to access my computer's audio source in order to stream to a back end server. I am using the tutorial found here which uses a webKitAudioContext object to facilitate this connection. I'm confused by the stream object, however. First…
0
votes
0 answers

Adding a Pitch shift within Twilio.js to adjust voice during Webcalls

I'd like to add javascript (preferably without a library) to alter the pitch of the users voice to when using Twilios Webcall. I used the following code in an attempt to modify the voice, however, did not note any differencing in the stream which I…
0
votes
1 answer

AudioContext Mute sound when setValueAtTime foreach still working

I have class MorseCodeAudio to create sound for Morse'a code. I'm using window.AudioContext. In my class I have an method with forEach: morseCode() { // irrelevant code this.text.split('').forEach(letter => { switch(letter) { …
michal
  • 1,534
  • 5
  • 28
  • 62
0
votes
1 answer

Is it possible to avoid the "AudioContext was not allowed to start" alert?

I faced a browser policy problem "The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page." I wanted to execute that below code when page loaded. So, I tried to mock the user click gesture using a…
0
votes
0 answers

audiocontext doesn't play wav files

I am trying to learn how to use Audiocontext to give surrounding effects to my sounds. I've spent so many hours trying to set up a simple example on jfiddle or similar and I was frustrated to the extreme, unabel to set up the simplest of examples,…
Gonzalo Goded
  • 63
  • 1
  • 6
0
votes
0 answers

Recording result of audio processed from a buffer and placing it in an audio element

I have a JavaScript file that takes an audio file, places it in a buffer and then allows the audio in the buffer to be processed (by changing the speed and loop duration). I wish to record the resulting audio, including the manipulation, and place…
0
votes
1 answer

Javascript webkitAudioContext has no playback in Safari

I'm trying to setup audio playback which I cannot get working on Safari 14.0.3, but works fine in Chrome 88.0.4324.146. I have a function that returns a AudioContext or webkitAudioContext. I followed this answer:…
Chewie The Chorkie
  • 4,896
  • 9
  • 46
  • 90
0
votes
1 answer

audioContext oscillator gets 'stuck' after one second and doesn't stop

I want to create an oscillator that starts and stops when the user presses a key (just the space bar of now). But if the key is pressed for a too long, something like one second - the oscillator gets stuck and doesn't stop(); let signal = {} class…
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
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
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
0 answers

AudioContext: Sound not playing in Chrome, but working in Internet Explorer but workers when I comment out createMediaElement?t

Trying to get audio to play through Chrome. I have a functioning piece of code that works on Internet Explorer but not Chrome... I am able to get sound to play as long on Chrome as I comment out the line that says var audioSrc =…
0
votes
1 answer

audio context is not resuming

I was working with web audio API and I was following the code from https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/suspend to resume and suspend audio context. The suspending part is working but I can't resume after suspension.…
Tauseef Mamun
  • 126
  • 1
  • 3
  • 11
0
votes
1 answer

Safari webkitAudioContext.createBuffer API raises NotSupportedError exception

I am using the JavaScript Web Audio API, AudioContext, to play audio. It works fine with other major browsers, but Safari on MacOS raises NotSupportedError exception when calling the webkitAudioContext.createBuffer API. I found this question, Play…
0
votes
1 answer

Merge multiple audio buffer in to one by given position in real time - Web Audio Context

I am trying to mix multiple audios using jquery UI drag and drop. Means I will add tracks on the audio context dynamically which is dropped on a container. I am able to get track buffer after drop using XMLHttpRequest.
Tareq Aziz
  • 341
  • 1
  • 10
  • 25