audio

The system cannot find the path specified in JAR

末鹿安然 提交于 2021-02-11 14:24:50
问题 I'm trying to play an audio file. In my IDE (intellij) that works completely fine, but when running in a JAR, I get the error java.io.FileNotFoundException: D:\soni801\Documents\Redsea Productions\The Great X Wars\alpha-0.0.7.1.jar\audio\click.au (The system cannot find the path specified) The file's location inside the JAR is audio/click.au , and the JAR is located at D:\soni801\Documents\Redsea Productions\The Great X Wars\alpha-0.0.7.1.jar which afaik should make the absolute path D:

capturing internal audio java

吃可爱长大的小学妹 提交于 2021-02-11 14:00:54
问题 i will record the sound from my programs. I use Ubuntu 14.04 and PulseAudio. Now i try to record from pulseaudio but currently i'm only recording from my microphone. How can i record the sound from pulseaudio instead of my microphone? public static void captureAudio() { try { final AudioFormat format = getFormat(); DataLine.Info info = new DataLine.Info(TargetDataLine.class, format); final TargetDataLine line = (TargetDataLine) AudioSystem.getLine(info); line.open(format); line.start();

Merge and Concat Multiple Audio and Video files using FFMPEG

纵饮孤独 提交于 2021-02-11 13:52:47
问题 I have a script at present that results in several audio-only and video-only files. My goal is to take these and then concat each video clip whilst merging in the audio-clips. I thought this would be easy but I have not been able to find a good example to work from. FFMPEG.org suggests that the movie/amovie input syntax could be the best option.. but am craving more doco. FFMPEG's information on the topic is @ https://www.ffmpeg.org/ffmpeg-filters.html#Examples-124. It suggests that to "..

What is the problem with my ajax Post or with code in my views.py file that the audio is not being retrieved

拥有回忆 提交于 2021-02-11 13:38:54
问题 I am currently working on a project in Django which records audio on the browser and send it to the server for communication. i have already recorded the audio but when i try to POST it using an ajax request, an empty dictionary is received in views.py. here is my script where i have recorded the audio and tried to post an ajax request(record.html) <form method="POST" enctype='multipart/form-data'> {%csrf_token%} <audio scr="" name="audio" id="audio1"></audio><br> <input type="button" value=

Is it possible to ignore plugged in Headset and still use phone speakers?

蹲街弑〆低调 提交于 2021-02-11 13:38:32
问题 I would like to use the Phone Speakers while a Headset is plugged-in, instead of the Headset-Speakers. Is it possible to do that? if yes, how can I achieve it? I'm developing an App in Java for Android 9 . Detection if Headset is Plugged in works so far: public class HeadsetIntentReceiver extends BroadcastReceiver { private String TAG = "HeadSet"; public HeadsetIntentReceiver() { Log.d(TAG, "Created"); } @Override public void onReceive(Context context, Intent intent) { if(intent.getAction()

How to pass and play specific queue position media item from playlist in audio_service flutter?

眉间皱痕 提交于 2021-02-11 12:22:25
问题 I am using flutter audio_service and just_audio package for music player. I want to play specific queue position media item from playlist when I initialize the music player. It is always playing first item of the playlist when I called AudioService.start() method. How can I pass and play specific queue position media item from playlist when I start the audio service? AudioService start AudioService.start( backgroundTaskEntrypoint: _audioPlayerTaskEntrypoint, androidNotificationChannelName:

Detect specific sound in audio

╄→尐↘猪︶ㄣ 提交于 2021-02-11 11:50:31
问题 I have a short (~1 second) arbitrary sound file and two devices. At some unknown time, device 1 will play the sound file out of its speaker. Device 2 should then be able to detect that sound. There may be background noise. It's unknown how loud the sound will be played. This feels like it should be a common solved problem, but searching for answers has left me with nothing. If anyone has good a solution or could just point me in the right direction I'd be very grateful. 回答1: In most distance

AudioUnit + Opus codec = crackle issue

旧街凉风 提交于 2021-02-11 08:38:32
问题 I am creating a voip app for iOS in objective-c. Currently i am trying to create the audio part: recording the audio data from microphone, encoding with Opus, decoding, and then playing. For the recording and playing i use AudioUnit. Also i made a buffer implementation which allocates places of memory each with initially set size. There are three main methods: - setBufferSize - for setting buffer's sub allocated spaces. - writeDataToBuffer - for creating new space(if needed), and filling data

Android Audio Record to wav

微笑、不失礼 提交于 2021-02-11 08:32:06
问题 I recorded an audio using the audio recorder on Android and it produces a raw PCM file. I'm trying to convert it to a format I can listen to (wav or mp3 for example. I've started with this example but don't know where to go from here: Android AudioRecord example tried following these: http://computermusicblog.com/blog/2008/08/29/reading-and-writing-wav-files-in-java Recording .Wav with Android AudioRecorder Here is my code to record (note I am using Countdown Timer to tell it when to start

How to play more than one stream at once using soundio?

旧街凉风 提交于 2021-02-11 08:10:26
问题 I'm new to soundio. I'm wondering how to play more than one audio source at once. I'm looking to understand if I'm supposed to create several streams (seems wrong) and let the operating system do the mixing, or am I supposed to implement software mixing? Software mixing seems tough too if my input sources are operating at different frequencies. Am I basically asking "how to mix audio"? I need a little direction. Here's my use-case: I have 5 different MP3 files. One is background music and the