microphone

Query noise level in Android

妖精的绣舞 提交于 2019-12-03 07:44:02
问题 I want to develop a small Android app to measure the current noise level (probablyin dB). But I have no idea what to look for in the libs. I don't want to record the noise. Can someone give me a pointer what classes to look at? 回答1: I recommend looking in these classes: android.media.AudioFormat android.media.AudioManager android.media.AudioTrack We used them in the Blinkendroid audio package a short while ago. 回答2: For me ' maxAmplitude ' was not helpful. After day of researching I

Realtime microphone sound level monitoring

人走茶凉 提交于 2019-12-03 07:32:35
问题 I'm trying to access sound volume data from the microphone in realtime. I've tried AVAudioPlayer but it only monitors sounds from a source like an mp3 and not from a microphone. I've also tried The SpeakHere app but it's proving to be much tougher to understand with all the Objective C++ syntax (i'm a newbie). Is there another class similiar to the one in SpeakHere but written only in Objective C? 回答1: sc_listener is deprecated. The correct answer today is to use AVAudioRecorder. This

how to play sound from microphone to speaker directly on android?

懵懂的女人 提交于 2019-12-03 04:32:49
问题 in my application, I need to direct sound from microphone directly to speaker. No other actions. I found a way to direct sound from microphone to earpiece by playing a file and setting speaker off. So I guess speaker can work similarly. However I don' know how to get rid of the playing file thing. Thank you. speaker() { m_audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); m_audioManager.setSpeakerphoneOn(true); // not needed I think //m_audioManager.setRouting(AudioManager

Voice Recording/Saving in Delphi

不羁岁月 提交于 2019-12-03 04:01:55
Is there a component or code that allows the following: Record a spoken word (or words) and save it/them to a file that can be played back. The file must be able to be played back on XP, Vista and Windows 7. The file can be either stand alone or saved to a datasource. [Using Delphi 7 for creating apps on XP and using Absolute Database.] The functions in MMSystem.pas let you do this using Windows API. You can either use high-level functions such as the MCI functions and PlaySound , or low-level functions such as waveInOpen , waveInPrepareHeader , waveInProc etc. If you want high control, you

How to detect input data through the audio jack?

给你一囗甜甜゛ 提交于 2019-12-03 03:20:13
问题 I know that some devices headphone ports (maybe all of them? any reference here would be good) have 3 channels, for stereo sound and microphone. So I was wondering if it's possible to detect something like this pedal on these devices. If it's possible, using the audio recorder would be enough? I'm studying possibilities for an app here, and this sounds promising if possible. Thanks EDIT I was searching more about it and I was wondering if the pedal would have the same effect as those headsets

Android audio stream and microphone

北战南征 提交于 2019-12-02 21:33:19
问题 Im fairly new to Android development but from what I read I am pretty sure there is no direct API access to the in-call audio stream. I need to make something very close to an answering machine so I was wondering if there is any API support to pass an audiostream to the microhpone internally and use that as a workaround for not having access to the call stream. IE someone calls, we get the answer, mute the microphone so that he cant hear the environment and pass an alternative audiostream

Android, How to use microphone in order to calculate sound frequencies?

我只是一个虾纸丫 提交于 2019-12-02 21:22:10
I'm working on Audio tuner application in order to tune musical instruments. User should play a note, then in my application I should show which frequency it has. The first, I should access to microphone? AudioRecord recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate, AudioFormat.CHANNEL_IN_STEREO, AudioFormat.ENCODING_PCM_16BIT, bufferSize); Then I need to calculate frequency of sound. How can I do this? TRManderson I'm also trying to do this. I haven't managed it myself yet, as I'm completely new to android development, but here are two useful links to the source code of

Query noise level in Android

本小妞迷上赌 提交于 2019-12-02 21:09:22
I want to develop a small Android app to measure the current noise level (probablyin dB). But I have no idea what to look for in the libs. I don't want to record the noise. Can someone give me a pointer what classes to look at? I recommend looking in these classes: android.media.AudioFormat android.media.AudioManager android.media.AudioTrack We used them in the Blinkendroid audio package a short while ago. soul For me ' maxAmplitude ' was not helpful. After day of researching I eventually reached my target. You can find my solution here: Android: AudioRecord Class Problem: Callback is never

Realtime microphone sound level monitoring

穿精又带淫゛_ 提交于 2019-12-02 21:03:24
I'm trying to access sound volume data from the microphone in realtime. I've tried AVAudioPlayer but it only monitors sounds from a source like an mp3 and not from a microphone. I've also tried The SpeakHere app but it's proving to be much tougher to understand with all the Objective C++ syntax (i'm a newbie). Is there another class similiar to the one in SpeakHere but written only in Objective C? Erik B sc_listener is deprecated. The correct answer today is to use AVAudioRecorder . This tutorial explains how to use it. Erik's answer is correct. Here is a reusable implementation using this

how to play sound from microphone to speaker directly on android?

柔情痞子 提交于 2019-12-02 17:43:14
in my application, I need to direct sound from microphone directly to speaker. No other actions. I found a way to direct sound from microphone to earpiece by playing a file and setting speaker off. So I guess speaker can work similarly. However I don' know how to get rid of the playing file thing. Thank you. speaker() { m_audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); m_audioManager.setSpeakerphoneOn(true); // not needed I think //m_audioManager.setRouting(AudioManager.MODE_NORMAL, AudioManager.ROUTE_EARPIECE, AudioManager.ROUTE_ALL); earpiece need this?