Questions tagged [audiocontext]
AudioContext is a modular interface for audio processing for the WebAudio API.
audiocontext
291
questions
0
votes
1
answer
44
views
Web Audio API - "EncodingError: Decoding failed" on IOS only when decoding mp3 chunks
I'm streaming mp3 chunks that are generated by a 3rd party to the browser via socket io.
The audio format is mp3 with 44.1kHz sample rate at 192kbps.
I'm using standardized-audio-context (https://...
0
votes
0
answers
11
views
Webm file downloaded from user's microphone does not have duration metadata [duplicate]
I am trying to record the user's microphone, and then send it to an API.
I did the code for the recording, and it works well, but when I send it to the API, it says that it does not have a duration.
...
0
votes
2
answers
198
views
AudioWorkletProcessor playing streamed audio sounds scrambled
I'm trying to play in the browser audio that's streamed from my backend to simulate a real-time voice call, in a way that's compatible with all the relevant browsers, devices, and OSs.
The audio ...
0
votes
1
answer
11
views
check if mediatracks from audiocontext api is empty
I'm currently building a audio to video instance. While there is no problem to capture the canvas.captureStream(25).getVideoTracks(), the audioctx.added.stream.getAudioTracks() is.
let audioctx=new(...
0
votes
1
answer
52
views
Audio playback from a WebSockets endpoint on the Web
I have a web application with FastAPI backend and a web frontend. I would like to be able to play the audio via WebSockets on the client. The reason for that is that the user has a bunch of other ...
0
votes
0
answers
42
views
Get a <video/> element audio without having to play the video
I'm developing a feature where i need to export a canvas (created with fabricjs) as a video file. Exporting the canvas as a video is already working by using MediaRecorderApi, the problem is that if ...
0
votes
0
answers
53
views
AudioContext Warning upon trying to play an audio while using WaveSurfer.js
I am trying to play an audio and generating it's waveform using Wavesurfer.js, however when I click the Play button, an AudioContext warning gets displayed in the console and the audio does not play. ...
0
votes
1
answer
130
views
ReferenceError: AudioContext is not defined in Angular service
In my Angular service, I have defined AudioContext, like so:
@Injectable({
providedIn: 'root'
})
export class AudioService {
private context = new AudioContext();
...
}
At compile time, ...
0
votes
1
answer
116
views
How to convert ArrayBuffer sent from websocket into a MediaStream, and then transmit it to webrtc server via peerConnection.addTrack?
The problem:
I have audio binary data, sent from websocket, in ArrayBuffer or Uint8Array format. Let's name it as wsAudioData.
I want to transmit this wsAudioData to my webrtc server, and I can ...
0
votes
1
answer
90
views
Microphone, the sound appears only after adjusting the volume
No sound from microphone until volume is adjusted in WebRTC application
Expected Behavior:
When the microphone is turned on, I expect to hear sound immediately without needing to adjust the volume ...
0
votes
0
answers
58
views
AudioContext.outputLatency not supported in Safari: How do audiovisual apps handle bluetooth latency in Safari?
I am developing an audio/visual web app. In order to synchronize the visual and audio elements of my app, when users are using bluetooth headphones, I make use of the web audio api's AudioContext....
4
votes
0
answers
450
views
AudioContext failed to resume in iOS Safari 17.4 beta: InvalidStateError: Failed to start the audio device
The problem is new in the newly published iOS Safari 17.4 beta.
The code below will go into the catch block with error message:
InvalidStateError: Failed to start the audio device
Tested on an ...
0
votes
0
answers
17
views
Audio Context not loading on time
I have a component which uses Soundfont to play a note which loads by useEffect.
useEffect(() => { // fix loading
const ac = new AudioContext();
soundfontInstrument(ac, '...
0
votes
0
answers
60
views
Web audio API (AudioContext) streaming works on desktop browsers but fails on iOS mobile browsers after first few seconds
I developed a JavaScript class for streaming audio. It works on desktop browsers, but I'm encountering an issue on iOS mobile browsers. Specifically, the audio plays for the first 2-3 seconds (which I ...
0
votes
1
answer
74
views
audiocontext only resumes after tap on iphone
i'm building a website using rnbo (max msp) and p5.js. i create an audiocontext and everything works fine on desktop but on my iphone i always have to tap once on the display before the audicontext....