AudioContext is a modular interface for audio processing for the WebAudio API.
Questions tagged [audiocontext]
277 questions
0
votes
1 answer
Why the web audio output from oscillator is not working as expected?
Here is the code:
I want to create an audio program that can play audio from very low frequency to high frequency.
However, this code results in different output (even with the same device):
The sound comes out suddenly - the expected result is it…

AGamePlayer
- 7,404
- 19
- 62
- 119
0
votes
1 answer
How can I always display the frequencies of the audio object currently playing on a Canvas object?
I am currently programming an audiovisualizer for my own web player.
My goal is to always display the frequencies of the currently playing audio object on a canvas object even if this audio object will be changed.
To explain:
Whenever Play is…

consansri
- 1
- 2
0
votes
1 answer
How to pitchshift an audio buffer in Tone.js?
I would like to pitchshift audio in Javascript and I thought the easiest way would be Tone.js (https://tonejs.github.io/docs/r13/PitchShift), but my implementation is not playing any sound, but there's no errors. What am I doing wrong?
HTML (to load…

Seth Kitchen
- 1,526
- 19
- 53
0
votes
0 answers
How to convert WMA (audio) to an array of frequencies and durations
I am recording sounds for a game on my computer, but I am only able to use the audio context to play sounds. I cannot download audio from a server, so how do I convert WMA to a playable array with audio context.
It is easy to record audio on my…

John Porter
- 33
- 7
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 =…

Julia Park
- 69
- 5
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
MediaRecorder attaches last audio with new audio each time I record
I uploaded an audio and I connected it to the video output sound on recording, on first try work just perfect, but when trying to record the canvas again it plays last audio clip and attaches new audio clip, you can check what I mean in the next…

Mostafa AGUERRAM
- 573
- 1
- 7
- 17
0
votes
2 answers
`AudioContext().audioWorklet.addModule()`, how to load by `Blob`?
I am trying to use new AudioContext(). audioWorklet.addModule(URL.createObjectURL(blob))Load, but the console prompts error: cross source, if it is file:// protocol, how to use audioWorklet?
I tried to use new Blob([Source Code], {type:…

Milk
- 1
- 2
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…

Datow King
- 161
- 5
- 11
0
votes
1 answer
Repeat an audioContext oscillator every 5 seconds
I am trying to write a morse code trainer that produces a random two letter pattern every 5 seconds with the audiocontext recreated each loop, but I cannot figure out how to add code which will call for a repeated loop. I've tried setTimeout()…

djl
- 15
- 4
0
votes
1 answer
webkitaudiocontext on iOS 12 impossible to work?
I'm developping an angular App. This app need to play audio save in the IndexedDB. So I have saved the arrayBuffer, and when I start the PWA APP, I trnsform immediatlry the arrayBuffer in AudioBuffer.
Then When a user click on a button, a create an…

frixo
- 61
- 2
0
votes
1 answer
How to get the initial media stream from OpenTok subscriber? (Web)
I was able to get the media stream that OpenTok attaches to video element but looks like OpenTok creates audioContext.createMediaStreamSource from initial mediaStream received from PeerConnection and I get the adjusted one, not the initial.
This…

GProst
- 9,229
- 3
- 25
- 47
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
0
votes
1 answer
How to use audioWorklet.addModule in React?
I have started trying to create an audio recorder to use in React using the Web Audio API
Here is the code for my Recorder class
import AudioNode from './workletNode'
export default class Recorder {
constructor(context) {
this.context =…

Leo Farmer
- 7,730
- 5
- 31
- 47
0
votes
1 answer
Audio plays in Chrome but not Safari
I've got an angular 5 application where I've set the click handler of a button to download an audio file and play it. I'm using this code to do so:
onPreviewPressed(media: Media): void {
const url = ".....";
this.httpClient.get(url,…

Gargoyle
- 9,590
- 16
- 80
- 145