Questions tagged [java-audio]
24 questions
0
votes
1 answer
Audio resample method in java
I have a project which is to convert a python audio processing application to Android, which means I need to translate the code from python to java.
The python code uses the librosa library to resample audio files (librosa.resample(y,…

user14834847
- 37
- 5
0
votes
0 answers
NullPointerException thrown in getCodeBase() to find audio clip
Using getCodeBase() for getAudioClip returns various errors.
I have tried putting my audio file in various locations in my project file* and tried using getDocumentBase instead, but it keeps returning the error.
*I've put it in bin, the the base of…

Lauren
- 61
- 2
- 4
0
votes
1 answer
Is there a way to record multi-threaded the mixed result of JavaFX AudioClip sounds to disk?
My program launchs an arbitrary number of sounds streamed from FreeSound.org and plays them using javafx.scene.media AudioClip instances.
I was trying to figure out whether it could be possible to capture the generated output to disk, from within…

cristian_v
- 93
- 1
- 5
0
votes
1 answer
Is there a way to play an .ogg file in Android at an increased speed?
I have sound files that I want to play at 1x speed, 2x speed and 3x speed. It should be pitch corrected. There are many solutions for changing the file offline and simple having three files. However that means that my app takes more disc space.
Is…

Christian
- 25,249
- 40
- 134
- 225
-1
votes
1 answer
How do I take a WAV recording and change the amplitude of a part of it in Java?
Imagine having a recording of something saying "Hi there"
I'd like to chop/slice the WAV file between "Hi" and "there"
At this point, the "Hi" would be on one WAV file and the "there" on another wav file .e.g
hi.wav
there.wav
From there, I'd like to…

smoovy
- 1
- 3
-1
votes
1 answer
Clip won't stop in Java after reopening panel
I am writing a music player that can be played in background while users do their thing. The problem is when I exit the music player panel into other panel, the music can't be stopped anymore.
Here is my code
JButton btnAddMusic = new…

Elite Axel
- 1
- 2
-1
votes
1 answer
audio playing in constructor instead of play method
so I've been working on my game library and I just got working on the sound aspect of it. But the problems are that the Sound starts playing from the constructor instead of the play method and also the stop doesn't work for the constructor and only…

fesd20
- 1
- 2
-1
votes
1 answer
"player" cannot be resolved or is not a field, How to solve this compilation error?
I'm trying to play music in Java but I'm unable to solve this.
package Mplayer;
import java.io.File;...
public class Music
{
private static final String AudioPlayer = null;
public static void main(String[] args)...
public static void…

Sadiq Hussain
- 1
- 2
-2
votes
0 answers
How do I play audio in java?
I know how to play audio, the trouble is that the computer skips over the line. I watched a tutorial that said to use the .next() object in the Scanner class, to make the computer wait for user input, to stop the audio(a song) or replay it, but I…

Rohan Prabhala
- 9
- 3