35,922 questions
1
vote
0
answers
64
views
AudioSystem,isAudioLineSupported returns false
I am trying to use some Java audio code that worked back in 2019. I am now using the Eclipse IDE with JavaSE-21 running on Windows 11. The following code is not working:
AudioFormat af = ...
5
votes
0
answers
78
views
WASAPI Application Loopback is unable to record MS Teams
I am trying to develop a system audio recording application which uses the application loopback method provided by WASAPI. I'm basing my implementation upon the Windows classic samples application ...
1
vote
0
answers
38
views
Segments too short for OpenSmile feature processing
I am currently working on creating a time series of feature vectors from video input with consistent capture at 30 fps, ignoring the fps of the input video. I have decided to use PyAV to split the ...
0
votes
2
answers
63
views
How to enumerate MMDevice devices that are USB
There are well documentated ways to enumerate MMDevice audio devices such as:
How do you programatically get a list of a computer's recording devices?
Does anyone know a way to tell if a devce is USB ...
0
votes
0
answers
27
views
how does librosa.pyin() result scale to original audio input?
I need to get the f0 for some chunks on audio, knowing the timestamps and indexes of samples of audio defining the chunks. Since librosa.pyin() is very slow, I would like to compute it once for the ...
0
votes
1
answer
46
views
ESP32 + INMP441: Frequency response measurement fails despite chirp sweep playback from Python
I'm trying to measure the frequency response of an INMP441 microphone using an ESP32 and a Python script. The ESP32 captures 6000 samples via I²S and sends them over serial. I play a 62.5 ms ...
Advice
0
votes
1
replies
92
views
HTML 5 Audio Player
https://codepen.io/sekedus/pen/ExxjZEz
I have been using the HTML 5 Audio Player with Playlists in a couple of sites for a few years. It works quite well. Up until recently it would advance ...
0
votes
0
answers
69
views
How to play audio in flame game with flutter
I am trying to make a game in flutter using flame (flame: ^1.30.1 flame_audio: ^2.11.11). I wanted to add sound effect, but this is where it goes wrong. When playing the game on an android emulator, ...
3
votes
0
answers
115
views
ScreenCaptureKit recording output is corrupted when captureMicrophone is true
I'm working on a screen recording app using ScreenCaptureKit and I've hit a strange issue. My app records the screen to an .mp4 file, and everything works perfectly until the .captureMicrophone is ...
1
vote
1
answer
94
views
snd_pcm_readi returns an empty array
I want to transmit audio from the microphone to the headphones (something like an echo). However, when calling snd_pcm_readi, my array remains empty.
PCM parametrs for capture audio(In real code, ...
0
votes
3
answers
80
views
pyaudio appending audio to wav file from previous recording
I have pyaudio starting a recording when a GPIO button is pressed then stops the recording when the GPIO button is pressed again, any reason why it's appending the audio to the file. I want a new file ...
2
votes
0
answers
77
views
FMOD Error in Build: "Cannot create FMOD::Sound instance" - AudioClips Fail to Load (Works perfect in Editor)
I’m currently developing a Full Motion Video (FMV) game which, by its nature, contains a very large number of video and audio clips. I’ve encountered a critical issue that only appears in the built ...
1
vote
0
answers
45
views
AVAudioSession - Play audio in the internal speaker while music is playing on bluetooth speaker
I'd like to play an application sound through the internal speaker while the device is playing music through a bluetooth speaker. Is that possible?
The context is I am working on a timer app. My timer ...
1
vote
1
answer
79
views
I'm trying to record audio from my computers speakers and microphone and save it into a single file
I'm trying to record audio from my computers speakers and microphone, the idea is to create a program that can transcribe any meeting, regardless of what I'm using (web cam, speakers, air pods, ...
1
vote
1
answer
81
views
Playing audio independently of audio volume
How to play audio independently of system master volume? For example if my app has its volume set to 40, then the user increases their volume to 45 (assuming both mixers were starting at 40), the ...
1
vote
0
answers
63
views
How to enumerate microphone formats
So I found the undocumented API to change sound device formats How to change microphone format programmatically
However, it's still unclear how to enumerate the available endpoint formats that can be ...
2
votes
1
answer
63
views
Release section of ADSR envelope not working
I'm trying to make a digital audio synthesizer from scratch in C++ using a combination of resources. I'm using functions from raylib to play a raw audio stream. Here's the code:
#include <iostream&...
1
vote
0
answers
164
views
Implementing a Simple Icecast Client using Python
I am learning Python these days for data-science, ML and network programming amongst other things. I am trying to implement a simple Icecast client to stream live audio to Icecast server such as ...
0
votes
1
answer
116
views
Why does my Python game pauses everytime tkSnack plays an audio file?
I'm new here and this is my first question!
So I have this simple Python snake game that uses tkinter and tkSnack and it's working as intended graphics and controls wise except that the game or frame ...
1
vote
0
answers
98
views
Reflect Windows Sound Settings in MMDevice
This is portacapture x8 format selection in windows sound settings.
Portacapture Input Settings ComboBox
When 2 channel is selected from combobox, in NAudio C# application I can see mmdevice....
2
votes
0
answers
102
views
How do I deal with the issue of memory constantly running out, triggering lowmemorykiller and then forceclose?
I am currently developing a podcast-like application built with Flutter. I am using the just_audio library to play the audio.
When the app is opened, it works fine at first. (Plays one audio file, ...
1
vote
1
answer
37
views
AudioGraph render device disconnect
I have an AudioGraph
Audio*InputNode.AddOutgoingConnection(AudioDeviceOutputNode)
User pauses audio
leaves computer and Monitor eventually turns off, disconnecting the Sound Output Device
User comes ...
1
vote
1
answer
111
views
AudioFocus requests ignored on Samsung devices (Android 15, targetSdk 35) even with foreground service
When I updated my app’s targetSdk to 35, I noticed an issue on Samsung devices running Android 15:
Even if my app is running a foreground service, AudioFocus requests are ignored whenever the app ...
1
vote
1
answer
75
views
How to transcribe audio files (m4a/wav) on Android? Can SpeechRecognizer API be used for this?
I have an audio file (in .m4a / .wav format) stored on the Android device, and I need to transcribe the speech content from it into text.
From my understanding, the built-in SpeechRecognizer API in ...
1
vote
1
answer
55
views
Audio context output latency, my device has undefined value, so I cannot manage to sync the audio in different devices
I am trying to sync multiple audio files to be played in different devices and browsers at the same time. I have already manage to sync the clocks of all the devices with a max error of 10ms, avg ...
1
vote
0
answers
43
views
iOS app not playing audio from background despite correct permission setup
I have below simple iOS app with just one screen:
import SwiftUI
import AVFoundation
struct ContentView: View {
let synthesizer = AVSpeechSynthesizer()
let timer = Timer.publish(every: 10, on:...
5
votes
0
answers
128
views
Why does my real-time FFT of a logarithmic sweep keep sinking — and why does this weird normalization fix it? [closed]
I’m building an open-source audio spectrum analyzer for loudspeaker manufacturing. The “killer feature” is using a logarithmic sweep as the excitation signal, and analyzing the response as the sweep ...
1
vote
0
answers
61
views
How to prevent CallKit from defaulting to speaker on subsequent calls
I’m developing a VoIP app that uses Linphone and CallKit. Everything works as expected until the user enables the speaker on the native CallKit screen. After that, all subsequent calls start with the ...
1
vote
1
answer
46
views
How can I disable playout in in Google's WebRTC Swift/ObjC framework?
I'm building a Mac and iOS app and using Google's WebRTC (m137 using LiveKit's binary distribution). For a regular app it's very convenient that it just automatically starts playback/playout of all ...
1
vote
0
answers
59
views
Mimic iPhone microphone from Mac using Blackhole
I am trying to conduct some automated testing on my iPhone on an app that uses speech for various commands.
My approach will be:
Use a Text to Speech tool to generate the speech I need as various ...
0
votes
1
answer
97
views
YouTube Video Pause Function
I found this code that allows me to play a YouYube video when I click a custom play button:
<div style="position: relative;">
<img src="http://s3.amazonaws.com/content....
1
vote
1
answer
72
views
Javascript getUserMedia - Detect if any mics are actually active
I'm working on an audio recording feature. I usually work with my macbook closed and noticed a bug where if the mac is closed, the built-in microphone still shows up as an audio input but when i ...
3
votes
1
answer
85
views
Unexpected Frequency Modulation Behavior in Rust Rodio
I'm seeing some unexpected FM behavior in both Rodio 0.20.1 and 0.21.0
Below is my main.rs demonstrating the problem. When DEMONSTRATING_DEFECT is false, you hear what you would expect, a siren-like ...
1
vote
1
answer
120
views
React Native: Lock Screen Audio Widget Disappears on Pause (react-native-track-player)
I'm building a React Native app that plays audio using react-native-track-player. Everything works well when the audio is actively playing — I can see the media widget on the lock screen, control ...
0
votes
0
answers
131
views
Input audio from microphone not collected when audio is reproduced
I'm developing a simple real-time voice bot using the OpenAI real-time API, specifically integrating with Semantic Kernel. The code is written in an async manner, and it initially works well. However, ...
0
votes
0
answers
135
views
How do I filter out audio spillage from audio extraction?
I created a transcription and audio extraction Python script using Claude AI and Whisper. I get audio spillage that comes into the audio extracted (the wave form at the start and end of the screenshot)...
0
votes
1
answer
60
views
Matlab reads differently MP3 file in Windows and in Linux [closed]
In my project I have to get a numeric vector of audio signal wave from MP3 file.
Using MATLAB and "audioread" function.
The code is very basic:
[x, Faudio] = audioread('patient01.MP3');
...
2
votes
1
answer
84
views
How can I set my iOS AVAudioSession to return input buffers of <0.1 s?
I'm trying to get short audio samples into my iOS app (in Kotlin Multiplatform). Here's my relatively simple setup (sampleRateInHz is defined elsewhere):
val bufferSize: AVAudioFrameCount = 512u
val ...
1
vote
1
answer
106
views
Why does AVAudioFormat fail to create a 4-channel PCM format for 44100/48000 Hz on Apple Silicon (M2) with AVFoundation?
I'm building a macOS audio batch processor in Swift using AVFoundation. I want to combine two stereo WAV files into a single 4-channel WAV file (either at 44100 Hz or 48000 Hz sample rate).
I've Tried:...
1
vote
1
answer
157
views
Next.js 15: Unable to serve static audio file from public directory
Problem Description
I'm trying to play an MP3 audio file in my Next.js 15 application, but the audio files in the public/audio/ directory are not being served. When I check the browser's developer ...
0
votes
0
answers
62
views
WebRTC mic permission fails in Android WebView when loading index.html from assets folder (not external URL)
I'm currently learning how to build an Android WebView app that includes features like chat and WebRTC audio calls. All my files (HTML, JS, CSS) are loaded locally from the assets/ folder inside the ...
2
votes
1
answer
439
views
expo-audio not consistently playing in silent mode on iOS
I'm developing a Reactive Native app with audio as one of the main features. Recently, I noticed that playing in silent mode on iOS is no longer working and I can't quite figure out why. I have also ...
0
votes
0
answers
66
views
Twilio `<Stream>` Call Disconnects After 5 Seconds – No Error, Audio Not Played
I'm using Twilio's <Stream> tag to stream audio to a WebSocket for a voice call. The WebSocket is established successfully and I receive audio chunks from Twilio just fine. However:
The call ...
1
vote
0
answers
60
views
Why is are the arguments to a function I'm putting onto the stack in Uiua not being in the right order later in the function?
My current code is supposed to have a function, SINESYNTH, that takes 2 arguments (length and frequency) and make an audio clip of that length at that note. my code currently looks like:
TOFREQ ← ×220˜...
0
votes
1
answer
145
views
How to display real audio waveform from MP3 binary data stored in a database in Flutter?
I have an app where audio recordings are stored as MP3 binary blobs in my database. I retrieve these recordings via an API as base64-encoded strings or binary streams.
I want to display the actual ...
1
vote
1
answer
27
views
Periodic beeping in live audio stream using Flask-SocketIO and sounddevice — concurrency issue?
Periodic beeping in live audio stream using Flask-SocketIO and sounddevice — concurrency or deployment issue?
Question
I'm building a live audio streaming feature with Flask-SocketIO and sounddevice. ...
2
votes
1
answer
195
views
How to fix high pitch audio when increasing playback speed in Android using expo-audio?
I'm using the expo-audio library in my React Native project to play audio files. When I increase the playback speed using setPlaybackRate(2), the audio plays faster but with a higher pitch on Android ...
0
votes
0
answers
79
views
WaveSurfer.js and audio.play() both trigger playback — how to avoid duplicate sound and multiple waves playing?
I’m currently learning JavaScript and trying to build a simple SoundCloud clone. I’m using WaveSurfer.js for audio waveform visualization, but I’ve run into a couple of issues:
Problem 1: Double ...
1
vote
1
answer
113
views
MediaSource reinitialization issue in audio buffer
I am providing the binary data and on frontend it is making it as a buffer and passing it to the MediaSoruce.addEventListerer
it is getting the data, but it is not appending it as I cannot hear to the ...
2
votes
0
answers
157
views
Flutter SoLoud: How to reduce playback latency when syncing audio with UI (metronome-style)?
I want to play a short .wav sound every second and update a counter on the screen at the same time.
I'm using the flutter_soloud package and based my code on their metronome example from GitHub.
...