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
29
votes
2 answers

AudioContext on Safari

Yesterday, I had a question about the noteOn method of the AudioContext object. I've gotten myself all turned around now on this AudioContext object. Here's what I've tried and their associated error messages in Safari on my desktop: var ctx //…
Phillip Senn
  • 46,771
  • 90
  • 257
  • 373
24
votes
2 answers

Custom MediaStream

I'm receive raw float32 audio through websockets and would like to playback this in the browser. From my understanding I would need to to use MediaStream API for this. However, I cannot find a way to create a MediaStream which I can append data…
ronag
  • 49,529
  • 25
  • 126
  • 221
17
votes
2 answers

webkitAudioContext createMediaElementSource on iOS Safari not working

I want to do a live sound analysis on the iPhone. Therefor I use the webkitAudioContext Analyser. var ctx = new (window.AudioContext || window.webkitAudioContext); var audioGoodmorning = new Audio('assets/sounds/greeting.m4a'); var audioSrc =…
fox
  • 311
  • 2
  • 8
11
votes
4 answers

AudioContext issue on Safari

I'm trying to use AudioContext in my typescript file for an Angular 5 app. It works great on Chrome, doesn't work on Safari. Everything I see by googling says to use window.webkitAudioContext but that immediately blows up when the typescript…
Gargoyle
  • 9,590
  • 16
  • 80
  • 145
11
votes
3 answers

WebKit Audio distorts on iOS 6 (iPhone 5) first time after power cycling

I've been struggling with an elusive audio distortion bug using webkitAudioContext in HTML5 under iOS 6. It can happen in other circumstances, but the only way I can get 100% repro is on the first visit to my page after power cycling the device. …
jeffvav
  • 111
  • 1
  • 5
9
votes
1 answer

Downsampling a PCM audio buffer in javascript

I am attempting to downsample the sample rate i am getting from audioContext. I believe it is coming in at 44100, and i want it to be 11025. I thought i could just average every 3 samples and it plays back at the correct rate, but the pitch of is…
Neablis
  • 894
  • 2
  • 12
  • 30
8
votes
2 answers

Record Sounds from AudioContext (Web Audio API)

Is there a way to record the audio data that's being sent to webkitAudioContext.destination? The data that the nodes are sending there is being played by the browser, so there should be some way to store that data into a (.wav) file.
kennysong
  • 2,044
  • 6
  • 24
  • 37
7
votes
2 answers

ReferenceError: AudioContext not defined

I'm trying to use the RecorderJS library (https://github.com/mattdiamond/Recorderjs) which requires me to have an AudioContext. However, when declaring the AudioContext at the very beginning of my script, I am getting an error in the console on page…
6
votes
1 answer

Safari AudioContext suspended even with onclick creation

I'm having troubles creating an AudioContext with Safari (desktop and mobile). It seems that even with creation upon user interaction, it is still suspended. My code: const test = () => { …
ffritz
  • 2,180
  • 1
  • 28
  • 64
4
votes
0 answers

Safari: AudioContext MediaElementAudioSourceNode does not respect playbackRate

I'm currently working on an application that uses the AudioContext api to control audio for both video clips and background audio. We would like to use the AudioContext (and therefore MediaElementAudioSourceNodes) so we can make adjustments to the…
4
votes
1 answer

Using WebAudio API from NodeJs

I want to use WebAudio(AudioContext) in NodeJS. However NodeJS does not support WebAudio. There is an npm for web-audio-api but it is still in alpha stage and is incomplete. So how can I use WebAudio(AudioContext) in NodeJS. Can I instantiate a…
Aniket
  • 4,926
  • 12
  • 41
  • 54
4
votes
1 answer

AudioContext stereo output from MediaStreamDestination in Chrome M34

It seems that AudioContext.createMediaStreamDestination() defaults to mono output. This default is being changed, but is there a way to set the number of desired output channels manually? Or is there any other way to get the stream from WebAudio…
Mantriur
  • 986
  • 7
  • 20
4
votes
1 answer

HTML 5 Audio - AnalyserNode.getByteFrequencyData() Returns Undefined

This appears to be a common question - Javascript Web Audio API AnalyserNode Not Working - But I can't be sure if I've found an edge case with my implementation. I create an audio source using createMediaElementSource(), but instead of using an…
Charlie
  • 4,197
  • 5
  • 42
  • 59
3
votes
2 answers

webkitAudioContext on iOS (15.4.1) pitch fluctuations with MediaElementSource

I am making a website that plays mp3 audio and then fades out after X seconds. I had this working using a regular audio tag implementation by manipulating the volume at an interval, but this solution doesn't work on iOS because volume is a readonly…
Reverate
  • 163
  • 2
  • 8
3
votes
0 answers

Is Safari createMediaElementSource broken on HLS/m3u8 video sources?

I'm currently attempting to integrate a custom audio filter on a video player handling both HLS and raw MP4 files. I'm having little to no issue integrating it on Chrome and Firefox - Safari on the other hand is not behaving accordingly. I've…
1
2 3 4 5