microphone

JavaFX support for microphone audio capture

空扰寡人 提交于 2019-12-08 03:41:27
I am evaluating JavaFX for a project at work, but it appears that the platform does not support capturing audio using a microphone. I was under the impression that with JavaFX, one had access to "all of Java". If you can record using a microphone and an applet, why can't the same be accomplished using JavaFX? Are there workarounds to this limitation? Thanks. There's no limitation - you are right in saying that it has access to "all of Java". Assuming that there is a microphone / sound capture API for Java, then you can just "call down" to it from JavaFX code. JavaFX is essentially a DSL for

Redirect microphone input to headphone output (soft playthru)

对着背影说爱祢 提交于 2019-12-07 22:48:18
问题 If I use my in-ear headphones with my macbook pro it takes me a few minutes until they are fitting perfectly (due to the foam bits on the headphones) :) My idea is to use internal macbook pro microphone to be able talk to somebody coming to my desk without having to remove the headphones every time. So kind of an 'intercom' thing which can be enabled by hitting a hotkey. First thought was to use applescript which could be easily used for pausing iTunes, but I could not find information about

Using MediaRecorder and NoiseSuppressor in Android

北城以北 提交于 2019-12-07 18:06:24
I'm starting off a project experimenting with the Android microphone using code like this: mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mRecorder.setOutputFile(mFileName); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); After that, a prepare() and start() to begin recording mic audio. Trouble is, I'm trying to also add in some audio processing effects like NoiseSuppressor. The API docs state that NoiseSuppressor is done with this: NoiseSuppressor create (int audioSession)

How to detect if speech to text is available on android?

蹲街弑〆低调 提交于 2019-12-07 14:34:08
问题 I believe I have figured out how to detect if an android device has a microphone, like so: Intent speechIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); List<ResolveInfo> speechActivities = packageManager.queryIntentActivities(speechIntent, 0); TextView micAvailView = (TextView) findViewById(R.id.mic_available_flag); if (speechActivities.size() != 0) { //we have a microphone } else { //we do not have a microphones } However, how does one detect whether the android device has

AVAudioSession : microphone headphone as input and iphone speaker as output

两盒软妹~` 提交于 2019-12-07 09:59:15
问题 With iOS10 there are more possibilities to manage AUdioSession, but i couldn't manage to keep the headphone microphone as input while audio is going out through the iphone speaker. The 'overrideOutputAudioPort' method below also override the input audio port as the iphone microphone let session = AVAudioSession.sharedInstance() do { try session.setCategory(AVAudioSessionCategoryPlayAndRecord) try! session.overrideOutputAudioPort(.speaker) } catch { } Is there any solution to keep the

Simulate microphone Input

女生的网名这么多〃 提交于 2019-12-07 08:06:10
问题 I am trying to write a little program that reads a wav file and sends the output as if it would come from my microphone. Unfortunately I do not have much experience with the sound API. Background: What I am basically trying to realize is a program that plays a sound while I am in a voicechat (i.e Teamspeak, Ventrilo). To get that to work now I would have to switch the recording device to "What you hear", play the sound and then switch back to microphone. The program should simulate input from

How to listen to microphone and detect sound loudness in Delphi 7

你离开我真会死。 提交于 2019-12-06 15:30:23
I need a program to catch an event when microphone input gets louder than certain threshold value. So probably I need to constantly listen to mic, and somehow measure sound amplitude? Is it possible to do that in Delphi 7? I recommend you to look AudioLab I recommend you to use the BASS Audio Library http://www.un4seen.com/bass.html BASS is an audio library .. to provide developers with powerful stream (MP3.. OGG.. ) functions. All in a tiny DLL, under 100KB in size. it's very easy to use, as this simple minimalistic program illustrates. It is based on the BASS Record Test for Delphi, included

How can I capture audio input from 2 mics of my android phone real time and simultaneously

ぐ巨炮叔叔 提交于 2019-12-06 13:55:33
问题 I have a requirement where I need audio from both the mics on my android phone simultaneously in order to do some signal processing using Eclipse. Do you think it is possible to do this? Also can you suggest a method to start recording for both mics realtime simultaneously? For two instances of class AudioRecord, if I pass audio source as MIC and CAMCORDER respectively, will I be able to capture two separate mic inputs simultaneously? I am not sure if the mics will work in parallel, and also

Android - MIC external for speechRecognition

↘锁芯ラ 提交于 2019-12-06 10:53:50
问题 I need to know which event is triggered when connecting a microphone or a headset to your device, and I am using speech recognition and have observed that does not follow the same flow as when nothing is connected to the device. I would like to know if there is some kind of solution because the application I'm creating at the moment is tested in a Smartphone, but in the future will require connecting a microphone or a headset. A greeting and I hope your answers PS: At the moment in the code I

visualize mediastream which is coming from a remote peer connection

假如想象 提交于 2019-12-06 08:22:08
Since some days I`m trying to visualize an audiostream which is coming over webrtc. We already wrote some visuals which are working fine for the normal local stream (webaudio microphone usage). Then I found some really interesting things on https://github.com/muaz-khan/WebRTC-Experiment/tree/master/ for streaming the microphone input between different browsers. We need this to have the same audio data from one backend for all clients in the frontend. Everything works fine and some tests showed that we can hear each other. So I thought that it is also not a problem to visualize the incoming