I’m creating a small music player web app, everything works fine, I have a problem: I want to create a playlist for it too and I’m kind of beginner in JS and I don’t know how to create the logic for that (every time user click on a specific song title in playlist, play that exact song which he just
Tag: audio
How to play different audio files on a single page
I would like to play different short audio clips on a single page by using different buttons, however the code I have means that all buttons will play only the first .mp3 located in the audio folder regardless of the html code I have that specifies which button will play which audio clip (example below). Could you help me with
React Native: Why is Expo-AV not playing audio?
I’m attempting to build an app that acts as a soundboard and can play different sounds when different buttons are pressed. I expected the audio to play but instead, I got an error that stated: This is my code: So far, I’ve tried adding a try/catch block, using different audio formats. I think the error has to do with state
How to generate an exponential curve between two values with a given amount of data points
I am trying to implement a function as follows but really lack the math skills, any help would be greatly appreciated. The function should take an amount of data points x and return an array of size x containing exponentially increasing values from 0 to 100 (for example). Ideally it should also accept a lambda value to modify the curve.
cant get length of m4a audio file on webpage
I am trying to make a nodejs website that will return the length in seconds of any audio file a user chooses. So far I have it working with mp3, wav, and flac files. But it doesn’t work for all .m4a or .aif files The code for my HTML page with javascript is below: I gathered 6 different files for
How can I request user permission for audio on Chrome?
I am working on SAAS solution and I need customers to receive notification sounds from the application. Even if they just launched it without any interaction with it. Google has changed Chrome behaviour regarding this aspect and now user is required to click on webpage to get notification sounds. I have found out that it is possible to allow sounds
How to record web/browser audio output (not microphone audio)
Has anyone successfully been able to access the audio stream that is being outputted from the browser window (not from the microphone)? We are currently building a sound studio app where the user can play an instrument and we want to be able to record and save that audio as it is being generated. We have real-time audio output being
sounds getting clipped when playing more then two different sounds at once
I am trying to build a drum kit web app in which a certain key is certain drum. When I’m playing two different sounds while the first one isn’t done it works fine, it’s just finishing both sounds and stops as it should do. When I’m trying to play the third sound while the first two didn’t yet finished, it
Getting audio markers / cue points with the Web Audio API
If I have an audio file in WAV format containing markers (or “cue points”), is there a way to get an array of those markers, preferably using the Web Audio API? I seem to remember seeing a method to do so before, but I can’t seem to find it. Any help or suggestions would be great! Answer Today I stumbled
Record mic and audio from SIP call using sip.js
Good evening Stack Overflow! I really need help for a project of mine where I’m using sip.js and a VoIP to make real calls to a phone number. The Goal I want to allow the user to record the audio and microphone and save the data on a server (in base64 encoding or as a file). So I after the