Latest Questions tagged Audio

Browse all latest questions tagged Audio

87
Votes
Published 19 Aug, 2022
Python - Windows XP - mute/unmute audio in programmatically in Python

My machine has two audio inputs: a mic in that I use for gaming, and a line in that I use for guitar. When using one it's important that the other be muted to remove hiss/static, so I was hoping to wr...

45
Votes
Published 07 Sep, 2022
Java - " java.lang.IllegalArgumentException: uri.getScheme() == null! " error using JavaFX to play audio

I'm trying to play mp3 audio on Java, and one of the forms. I belive is JavaFX, and all goes OK, until I try to play the audio. This is the code: import javax.sound.sampled.AudioPermission; import j...

18
Votes
Published 29 Jun, 2022
Python - record output sound in python

i want to programatically record sound coming out of my laptop in python. i found PyAudio and came up with the following program that accomplishes the task: import pyaudio, wave, sys chunk = 1024 F...

9
Votes
Published 24 Apr, 2022
Python - Stereo to Mono wav in Python

I am loading a wav with the scipy method wavefile.read() which gives me the samplerate and the audiodata I know that this audio data if stereo is stored as a multi-dimensional array such as audioda...

5
Votes
Published 05 May, 2022
React - How to import a sound file into react typescript component?

I have a small mp3 file located in project_root/src/audio/alarm.mp3. I try to import like so: import alarm from "./audio/alarm.mp3"; But when I try to import it into App.tsx, I get this compiler...

26
Votes
Published 07 Sep, 2022
Java - Controlling volume of a Clip when using Java Sound (javax,sound.sampled)

I'm using Java sound to play back a number of sound samples with the Clip.start() method. Given this, what is the best way to control the playback volume? In particular, I'm very keen that the solu...

30
Votes
Published 07 Sep, 2022
Java - Tuning GC for Java audio application

I've noticed that when playing audio in java, MarkSweepCompact stage in gc is too long and results in short periods of silence, which is unacceptable. So I need to use a low pause gc. I've tried Paral...

60
Votes
Published 16 Apr, 2022
Javascript - Generating sound on the fly with javascript/html5

Is it possible to generate a constant sound stream with javascript/html5? For example, to generate a perpetual sine wave, I would have a callback function, that would be called whenever the output buf...

70
Votes
Published 22 Jun, 2022
Python - Python: Compare two audio files which may have noise

For a project purpose, I am recording audio clips(wave files) from different areas near a stage. I need to check if the source audio ie; the audio from the stage is highly audible in the nearby locati...

0
Votes
Published 06 May, 2022
Python - Beginner: Python sound modules not working (Circular Import)

After installation of playsound and simpleaudio modules to try simple commands in order to play some audio files I always get the following message. playsound: ImportError: cannot import name 'playso...

60
Votes
Published 06 Sep, 2022
Java - javafx UNKNOWN duration on Media object

I am a newbie to both Java and JavaFX, I've spent the last couple years developing on Python with QT, and I am now developing in Java and JavaFX. I am developing a program that plays music files for...

31
Votes
Published 07 Aug, 2022
Python - 1/3 octave from audio file with python

I am a beginner in signal processing and I would like to apply third-octave band pass filters on mp3 or wav file (yields about 30 new filtered time series) center frequencies: 39 Hz, 50 Hz, 63 Hz, 79...

61
Votes
Published 16 Apr, 2022
Javascript - Why can't JavaScript .play() audio files on iPhone safari?

iOS disables autoplay, instead requiring that play be initiated as part of a user interaction (e.g., you can start playback within a touchstart listener). There's a bit of documentation about this on...

52
Votes
Published 16 Apr, 2022
Javascript - Play sound in Angular 4

I'm working on an Electron app with Angular 4. I want to play sound on some specific action. Is there any module or code for that? It can be in the angular 4 or if electron is providing some service f...

79
Votes
Published 24 Aug, 2022
Python - Audio: Converting between M4A and FLAC, WAV, or raw

I'm working with audio recorded via Quicktime and saved in .m4a format. I'd like to use Google Cloud Provider's Speech API and their recommendations are: Do: Use a lossless codec to record and tr...