audio

How can I stream audio from the microphone of an iPhone to a Mac/PC via sockets or a framework?

余生长醉 提交于 2021-02-05 20:34:15
问题 How can I stream audio from the microphone of an iPhone to a Mac/PC? Is there already some framework for this, or can I just send audio over sockets. I'm new to sockets though. Basically, I want to be able to speak into the iPhone, and the computer will receive the iPhone's mic input as its own mic input for computers that do not have microphones. I already have an app that makes a bonjour connection to a Mac, which runs a very simple server, and the iPhone can send text to the computer, but

Perceptual similarity between two audio sequences

不羁岁月 提交于 2021-02-05 20:04:49
问题 I would like to get some sort of distance measure between two pieces of audio. For example, I want to compare the sound of an animal to the sound of a human mimicking that animal, and then return a score of how similar the sounds were. It seems like a difficult problem. What would be the best way to approach it? I was thinking to extract a couple of features from the audio signals and then do a Euclidian distance or cosine similarity (or something like that) on those features. What kind of

OpenCL GPU Audio

天大地大妈咪最大 提交于 2021-02-05 16:43:35
问题 There's not much on this subject, perhaps because it isn't a good idea in the first place. I want to create a realtime audio synthesis/processing engine that runs on the GPU. The reason for this is because I will also be using a physics library that runs on the GPU, and the audio output will be determined by the physics state. Is it true that GPU only carries audio output and can't generate it? Would this mean a large increase in latency, if I were to read the data back on the CPU and output

iPhone: Change playback speed with Audio Units

邮差的信 提交于 2021-02-05 13:01:53
问题 What are the different ways to change the playback speed of audio on the iPhone, when using Audio Units ? What are the advantages / disadvantages of each solution? I have a mixer unit and an IO unit. Do I need to add another unit (eg. converter unit)? What audio unit parameters should I set, on which (input or output) bus on which audio unit(s)? My current setup: ------------------------- ------------------------- | mixer unit | -----------> | IO unit | ------------------------- -------------

How can I add some sound to my Java JFrame? [closed]

旧巷老猫 提交于 2021-02-05 12:20:05
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 months ago . Improve this question I am making a Java game in JFrame. The game is almost completed but I want to add some sound to it. Like when the game will start, the sound should also start. I have checked the Internet but the codes are either not working or are very long. Can anyone help

MPEG Audio Constant bit rate conversion

纵然是瞬间 提交于 2021-02-05 11:34:48
问题 I am trying to convert few .wav files to .mp3 format The desired .mp3 format is : I tried with FFmpeg with this code : ffmpeg -i input.wav -vn -ac 2 -b:a 160k output1.mp3 This is the output of this command on one .wav format I am getting the result but two things are different Overall bit rate mode and Writing library Writing library: LAME3.99.5 vs LAME3.100 ( I think this shouldn't make any problem?) bit rate mode Constant Vs variable How to change bit rate mode from variable to Constant?

MPEG Audio Constant bit rate conversion

房东的猫 提交于 2021-02-05 11:34:07
问题 I am trying to convert few .wav files to .mp3 format The desired .mp3 format is : I tried with FFmpeg with this code : ffmpeg -i input.wav -vn -ac 2 -b:a 160k output1.mp3 This is the output of this command on one .wav format I am getting the result but two things are different Overall bit rate mode and Writing library Writing library: LAME3.99.5 vs LAME3.100 ( I think this shouldn't make any problem?) bit rate mode Constant Vs variable How to change bit rate mode from variable to Constant?

Problem with extracting audio from a video file (android)

纵然是瞬间 提交于 2021-02-05 11:26:07
问题 I need to convert an mp4 (or any other video format) to mp3 or wav file. I am using C# Xamarin.Forms. Any library I used either doesn't work for me, or isn't compatible with android. I have tried using Xamarin.Android.FFMpeg and Xobe.FFMpeg. I repost this because it was marked as duplicate and I clearly stated that that solution isn't working for me. This is the post that was flagged as duplicate: How can I extract the audio out of a video file? (android) . Please, I tried it but it just

SoundPool not playing sound (while MediaPlayer does)

百般思念 提交于 2021-02-05 11:24:23
问题 I am trying to play a sound in an app. However, using SoundPool I am unable to do so. The code is really simple and I don't see where it can fail. A similar code but using MediaPlayer does work, but I am interested in using SoundPool. SoundPool code: private void playSound2(){ SoundPool sp = new SoundPool.Builder().build(); int soundID = sp.load(MainActivity.this, R.raw.sound, 1); sp.play(soundID, 1, 1, 1, 0, 1); } Context: public void goButtonClick(View view){ Button goButton = findViewById

Load wavs into memory then play sounds asynchronously using Win32 API

亡梦爱人 提交于 2021-02-05 08:57:26
问题 I'm writing a simple game, using C++ and the Win32 API. I'd like to load a few sound effects into memory during the initialisation phase (before the game starts). Then I want to be able to trigger those sounds asynchronously during the game. I've researched a few posts that recommend mmlib, (PlaySound), this works but the examples seem to load from file each time, something like this: PlaySound("rocket_launch.wav", NULL, SND_FILENAME | SND_ASYNC); I'd like to load my sounds into memory at the