audio

How to convert a seewave spectrogram into a wav file

假装没事ソ 提交于 2021-02-07 08:47:34
问题 I would like to manipulate a seewave audio spectrogram and then convert it back to a .wav file. A quick example library(tuneR) library(seewave) data(tico) #generate spectrogram with phase information spec_tico=spectro(tico,plot=FALSE,complex=TRUE,norm=FALSE,dB=NULL) #manipulate spectrogram spec_tico_new=dostuff(spec_tico) #convert back into Wave object - but there is no function spectr2Wave! tico_new=spectr2Wave(spec_tico_new,...) I haven't been able to find anything close to spectr2Wave in

macOS/swift Capture Audio with AVCaptureSession

江枫思渺然 提交于 2021-02-07 07:05:22
问题 I am currently trying to implement a simple audio recording tool on my Mac. Since I need the raw audio buffers in-memory, I cannot use AVAudioRecorder, which would just write the recording to a file. My approach is to create a AVCaptureSession, Input(Microphone) and Output(AVCaptureAudioDataOutput) and start the session. Everything works fine, however the delegate callback of the output is never called . I made sure to add mic/camera permissions (just in case) in the project settings. Maybe

Extract audio from video with FFMPEG but not the same duration

烂漫一生 提交于 2021-02-07 04:32:04
问题 My problem is that i need to extract with FFMPEG the audio contained in a video with the same duration. But for some files that i tested, the audio's duration is sometimes shorter than the video's duration. I need to have the exact same duration between the audio and the video file. The command that i have already tried is this following: ffmpeg -i input_video.mp4 output_audio.wav How can i fix this with options in my command ? 回答1: I found the solution. To get an audio extract with the exact

How to send AJAX POST request and play the audio in the response?

人盡茶涼 提交于 2021-02-07 04:16:31
问题 I am building an app where the user can click a button, and it sends data to the server. The server then computes audio based on the data in the request (most likely a POST), and returns a WAV file to the browser. I have already built the part with accepting a post request and responding with the wav file, but I can't figure out how to send the request in JS and to play the response to the user. Also, the playing of the audio must start (almost) as the first byte comes in, as the audio files

How to send AJAX POST request and play the audio in the response?

半城伤御伤魂 提交于 2021-02-07 04:14:13
问题 I am building an app where the user can click a button, and it sends data to the server. The server then computes audio based on the data in the request (most likely a POST), and returns a WAV file to the browser. I have already built the part with accepting a post request and responding with the wav file, but I can't figure out how to send the request in JS and to play the response to the user. Also, the playing of the audio must start (almost) as the first byte comes in, as the audio files

Check what programs are playing audio?

强颜欢笑 提交于 2021-02-07 03:55:48
问题 I am making a program and I want to find and mute programs that are playing audio so all you hear is mine. (This is an option for the program, nothing malicious about it) I have looked it up and I cannot seem to find a way to check what programs are playing audio (Much like windows does) I don't have any code examples of attempting this because id has no idea. In case someone misses reads or I don't word the above sentences correct I would like to find EVERY process with audio playing and

Check what programs are playing audio?

笑着哭i 提交于 2021-02-07 03:51:13
问题 I am making a program and I want to find and mute programs that are playing audio so all you hear is mine. (This is an option for the program, nothing malicious about it) I have looked it up and I cannot seem to find a way to check what programs are playing audio (Much like windows does) I don't have any code examples of attempting this because id has no idea. In case someone misses reads or I don't word the above sentences correct I would like to find EVERY process with audio playing and

Check what programs are playing audio?

夙愿已清 提交于 2021-02-07 03:50:36
问题 I am making a program and I want to find and mute programs that are playing audio so all you hear is mine. (This is an option for the program, nothing malicious about it) I have looked it up and I cannot seem to find a way to check what programs are playing audio (Much like windows does) I don't have any code examples of attempting this because id has no idea. In case someone misses reads or I don't word the above sentences correct I would like to find EVERY process with audio playing and

How do I play Opus encoded audio in Java?

戏子无情 提交于 2021-02-06 19:02:32
问题 When playing back the decoded audio, I've managed to produce a variety of sounds from gurgling to screeching to demonic chants. The closest of which sounds similar to being played in fast-forward and playback only lasts about 15 seconds. I've tried with a large combination of parameters for the decoding and AudioSystem API methods, nothing seems to be working. So, what is causing this audio distortion? Opusinfo for this file shows the following: Processing file "test.opus"... New logical

How I can know if I have headphones connected to my computer? HTML5 + JavaScript

浪尽此生 提交于 2021-02-06 09:37:06
问题 How I can know if I have headphones connected to my computer? My goal is to get it using HTML5 + JavaScript. On the next page shows all audio output devices, but there is no way of knowing if the active device is a headphonet or not. And in Firefox it doesn't work! https://webrtc.github.io/samples/src/content/devices/input-output/ All I want to know is if I have headphones connected with HTML5 and JavaScript. 回答1: As of today (2019 march) there is no realiable, cross-browser built-in tool to