Skip to main content

Questions tagged [web-audio-api]

Web Audio API is an advanced audio processing API directly available inside browser that helps to create, manipulate and analyze audio data using JavaScript.

0 votes
0 answers
16 views

How can I ensure that the audio plays through the connected Bluetooth device on iOS?

I'm developing a React component for audio playback in a chat application. The component works well on Android devices, but I've encountered an issue on iOS devices. When connecting Bluetooth headsets ...
Rutvik D Mehta's user avatar
1 vote
0 answers
15 views

Can't recognize audio file in Flask backend

I am having difficulty processing an audio blob I am sending to a Flask backend. I want to process the blob into a mel-spectrogram using librosa/pydub, but I get the following errors: ERROR:root:...
Lan Do's user avatar
  • 150
1 vote
0 answers
30 views

Initialize a frame of PCM audio data using AudioData for encoding into Opus format with AudioEncoder

I use WebAssembly to implement the libopus encode method in the browser, encoding PCM audio data into Opus format frame by frame in real-time, and it works very well. However, when I set the same ...
luzka's user avatar
  • 11
-3 votes
0 answers
36 views

Adding a sound effect when I start a recording(WEB API) [closed]

I'm working on an automatic bot that records an audio when I start talking. I have reached a stage where I want to attach some sound effects to the beginning and end of the recording. So when I start ...
Mike P's user avatar
  • 1
0 votes
0 answers
84 views

setSinkId Not Working in Microsoft Edge on Windows 11

I'm working on a web application that requires assigning different audio output devices using setSinkId in Windows 11, but I'm encountering an issue where the audio always defaults to the system ...
yash bhaje's user avatar
0 votes
1 answer
43 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://...
Royi Bernthal's user avatar
-1 votes
1 answer
33 views

Error playing audio: PlatformException(WebAudioError, Player has not yet been created or has already been disposed., null, null)

Im making a mobile flutter project, this is a opening page of my project, it contains a short videop opening and audio. but the audio won't playing. only the video. and at my terminal says Error ...
Omega's user avatar
  • 1
0 votes
0 answers
25 views

How do I add a recording and a mp3 together

Alright so I am building a website where you listen to an audio and can talk into it. The talking is being recorded as seem in the code. navigator.mediaDevices.getUserMedia({ audio: true }).then(async ...
Max Raider's user avatar
-1 votes
0 answers
26 views

How to combine ArrayBuffers which contain audio to play using DecodeAudioData?

const newChunk = new Uint8Array(event.data); const combinedChunks = new Uint8Array(accumulatedSizeRef.current + newChunk.length); combinedChunks.set(accumulatedChunksRef.current); combinedChunks.set(...
Harsh Singh's user avatar
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 ...
Royi Bernthal's user avatar
0 votes
0 answers
28 views

Fixing DOMException: HTMLMediaElement Already Connected to a Different MediaElementSourceNode in JavaScript Audio Player

The issue arises when clicking the nextBtn and prevBtn in JavaScript audio player. When navigating through different audio tracks using the next or previous buttons, when the arrIndexCount reaches 0, ...
Hriddha Pratim's user avatar
1 vote
0 answers
48 views

Audio recording in front-end

I create a Vue application (using Vue 3.4.21). I am interested in allow user to record an audio, and managed to create a component that does it, and saving it to local user machine. Here you can see ...
guyaloni's user avatar
  • 5,512
0 votes
1 answer
22 views

Web Audio API gain does not mute and panner does not pan audio completely to one side?

I found some people with similar problems online, especially with regards to gain, but I can't figure out why this is happening, especially since I think I followed the official MDN docs to the T. (...
Worker1432's user avatar
0 votes
0 answers
30 views

any other way to play audio in browser using reactjs other than using DecodeAudioData?

So basically from the server using websocket I am receiving chunks of audio data in the form of ArrayBuffer, so the DecodeAudioData api is not able to decode partial audio into sound, so I was ...
Harsh Singh's user avatar
0 votes
0 answers
11 views

Using the web audio API to create a mouse click sound

I am trying to make a mouse click sound using the web audio API but it's so hard to understand how the different waves actually produces sounds. Here's my attempt at it which failed. const ...
Jun Wen Soh's user avatar

15 30 50 per page
1
2 3 4 5
175