¡@

Home 

2014/10/16 ¤W¤È 08:10:18

android Programming Glossary: audioformat.channel_configuration_mono

how to convert or record .wav file in 16khz 16bit mono little-endian?

http://stackoverflow.com/questions/12260476/how-to-convert-or-record-wav-file-in-16khz-16bit-mono-little-endian

16000 private static final int RECORDER_CHANNELS AudioFormat.CHANNEL_CONFIGURATION_MONO private static final int RECORDER_AUDIO_ENCODING AudioFormat.ENCODING_PCM_16BIT..

Android - Getting audio to play through earpiece

http://stackoverflow.com/questions/2119060/android-getting-audio-to-play-through-earpiece

int buffersize AudioRecord.getMinBufferSize 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT AudioRecord arec new AudioRecord.. arec new AudioRecord MediaRecorder.AudioSource.MIC 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize AudioTrack atrack.. atrack new AudioTrack AudioManager.STREAM_MUSIC 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize AudioTrack.MODE_STREAM..

Playing an arbitrary tone with Android

http://stackoverflow.com/questions/2413426/playing-an-arbitrary-tone-with-android

new AudioTrack AudioManager.STREAM_MUSIC sampleRate AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT generatedSnd.length AudioTrack.MODE_STATIC..

How to record sound using bluetooth headset

http://stackoverflow.com/questions/4026002/how-to-record-sound-using-bluetooth-headset

this new AudioRecord MediaRecorder.AudioSource.MIC 8000 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT audioBufferSize After finishing..

Android: Mixing multiple AudioTrack instances?

http://stackoverflow.com/questions/4425526/android-mixing-multiple-audiotrack-instances

new AudioTrack AudioManager.STREAM_MUSIC 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT musicLength AudioTrack.MODE_STREAM..

AudioRecord object not initializing

http://stackoverflow.com/questions/4843739/audiorecord-object-not-initializing

private int sampleRate 22050 private int channel AudioFormat.CHANNEL_CONFIGURATION_MONO private int encoding AudioFormat.ENCODING_PCM_16BIT private..

android, AudioRecord.read() --> bufferoverflow, how to handle the buffer?

http://stackoverflow.com/questions/5218856/android-audiorecord-read-bufferoverflow-how-to-handle-the-buffer

public int buflen public int channelConfiguration AudioFormat.CHANNEL_CONFIGURATION_MONO public int audioEncoding AudioFormat.ENCODING_PCM_16BIT public..

How to decode audio via FFmpeg in Android

http://stackoverflow.com/questions/5367595/how-to-decode-audio-via-ffmpeg-in-android

track int bufSize AudioTrack.getMinBufferSize 44100 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT track new AudioTrack AudioManager.STREAM_MUSIC.. track new AudioTrack AudioManager.STREAM_MUSIC 44100 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT bufSize AudioTrack.MODE_STREAM..

Capturing Sound for Analysis and Visualizing Frequencies in Android

http://stackoverflow.com/questions/5511250/capturing-sound-for-analysis-and-visualizing-frequencies-in-android

int frequency 8000 int channelConfiguration AudioFormat.CHANNEL_CONFIGURATION_MONO int audioEncoding AudioFormat.ENCODING_PCM_16BIT private RealDoubleFFT.. int frequency 8000 int channelConfiguration AudioFormat.CHANNEL_CONFIGURATION_MONO int audioEncoding AudioFormat.ENCODING_PCM_16BIT private RealDoubleFFT..

Playing back sound coming from microphone in real-time

http://stackoverflow.com/questions/5728454/playing-back-sound-coming-from-microphone-in-real-time

int samplingRate 44100 in Hz private int channelConfig AudioFormat.CHANNEL_CONFIGURATION_MONO private int audioFormat AudioFormat.ENCODING_PCM_16BIT private.. audioPlayer new AudioTrack AudioManager.STREAM_MUSIC 44100 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT bufferSize AudioTrack.MODE_STREAM..

Android audio FFT to retrieve specific frequency magnitude using audiorecord

http://stackoverflow.com/questions/5774104/android-audio-fft-to-retrieve-specific-frequency-magnitude-using-audiorecord

the class using the AudioRecord class int channel_config AudioFormat.CHANNEL_CONFIGURATION_MONO int format AudioFormat.ENCODING_PCM_16BIT int sampleSize 8000..

Android: Listener to record sound if any sound occurs

http://stackoverflow.com/questions/9323452/android-listener-to-record-sound-if-any-sound-occurs

code in your application... private int RECORDER_CHANNELS AudioFormat.CHANNEL_CONFIGURATION_MONO private int RECORDER_AUDIO_ENCODING AudioFormat.ENCODING_PCM_16BIT..

Live Audio Recording and Playing in Android and Thread & callback handling

http://stackoverflow.com/questions/9413998/live-audio-recording-and-playing-in-android-and-thread-callback-handling

try buffersize AudioRecord.getMinBufferSize SAMPLE_RATE AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT if buffersize BUF_SIZE buffersize.. new AudioRecord MediaRecorder.AudioSource.MIC SAMPLE_RATE AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize 1 m_track new AudioTrack.. new AudioTrack AudioManager.STREAM_ALARM SAMPLE_RATE AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize 1 AudioTrack.MODE_STREAM..

how to convert or record .wav file in 16khz 16bit mono little-endian?

http://stackoverflow.com/questions/12260476/how-to-convert-or-record-wav-file-in-16khz-16bit-mono-little-endian

record_temp.raw private static final int RECORDER_SAMPLERATE 16000 private static final int RECORDER_CHANNELS AudioFormat.CHANNEL_CONFIGURATION_MONO private static final int RECORDER_AUDIO_ENCODING AudioFormat.ENCODING_PCM_16BIT private AudioRecord recorder null private..

Android - Getting audio to play through earpiece

http://stackoverflow.com/questions/2119060/android-getting-audio-to-play-through-earpiece

android.os.Process.THREAD_PRIORITY_URGENT_AUDIO int buffersize AudioRecord.getMinBufferSize 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT AudioRecord arec new AudioRecord MediaRecorder.AudioSource.MIC 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO.. AudioFormat.ENCODING_PCM_16BIT AudioRecord arec new AudioRecord MediaRecorder.AudioSource.MIC 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize AudioTrack atrack new AudioTrack AudioManager.STREAM_MUSIC 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO.. AudioFormat.ENCODING_PCM_16BIT buffersize AudioTrack atrack new AudioTrack AudioManager.STREAM_MUSIC 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize AudioTrack.MODE_STREAM am.setRouting AudioManager.MODE_NORMAL 1 AudioManager.STREAM_MUSIC..

Playing an arbitrary tone with Android

http://stackoverflow.com/questions/2413426/playing-an-arbitrary-tone-with-android

idx byte val 0xff00 8 void playSound final AudioTrack audioTrack new AudioTrack AudioManager.STREAM_MUSIC sampleRate AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT generatedSnd.length AudioTrack.MODE_STATIC audioTrack.write generatedSnd 0 generatedSnd.length..

How to record sound using bluetooth headset

http://stackoverflow.com/questions/4026002/how-to-record-sound-using-bluetooth-headset

.With AudioRecord you can record with an object created like this new AudioRecord MediaRecorder.AudioSource.MIC 8000 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT audioBufferSize After finishing don't forget to unregister this receiver and to stop..

Android: Mixing multiple AudioTrack instances?

http://stackoverflow.com/questions/4425526/android-mixing-multiple-audiotrack-instances

AudioRecord object used to create the file. AudioTrack audioTrack new AudioTrack AudioManager.STREAM_MUSIC 11025 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT musicLength AudioTrack.MODE_STREAM Start playback audioTrack.play Write the music..

AudioRecord object not initializing

http://stackoverflow.com/questions/4843739/audiorecord-object-not-initializing

TextView text private int audioSource MediaRecorder.AudioSource.MIC private int sampleRate 22050 private int channel AudioFormat.CHANNEL_CONFIGURATION_MONO private int encoding AudioFormat.ENCODING_PCM_16BIT private int result 0 private int bufferSize private byte buffer Called..

android, AudioRecord.read() --> bufferoverflow, how to handle the buffer?

http://stackoverflow.com/questions/5218856/android-audiorecord-read-bufferoverflow-how-to-handle-the-buffer

audioRecord null public int mSamplesRead public int buffersizebytes public int buflen public int channelConfiguration AudioFormat.CHANNEL_CONFIGURATION_MONO public int audioEncoding AudioFormat.ENCODING_PCM_16BIT public static short buffer public static final int SAMPLESPERSEC..

How to decode audio via FFmpeg in Android

http://stackoverflow.com/questions/5367595/how-to-decode-audio-via-ffmpeg-in-android

for you. You can do something like this. JAVA side. AudioTrack track int bufSize AudioTrack.getMinBufferSize 44100 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT track new AudioTrack AudioManager.STREAM_MUSIC 44100 AudioFormat.CHANNEL_CONFIGURATION_MONO.. AudioFormat.ENCODING_PCM_16BIT track new AudioTrack AudioManager.STREAM_MUSIC 44100 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT bufSize AudioTrack.MODE_STREAM track.play while true readBufferFromNative update buffer..

Capturing Sound for Analysis and Visualizing Frequencies in Android

http://stackoverflow.com/questions/5511250/capturing-sound-for-analysis-and-visualizing-frequencies-in-android

public class AudioProcessing extends Activity implements OnClickListener int frequency 8000 int channelConfiguration AudioFormat.CHANNEL_CONFIGURATION_MONO int audioEncoding AudioFormat.ENCODING_PCM_16BIT private RealDoubleFFT transformer int blockSize 256 Button startStopButton.. public class MainActivity extends Activity implements OnClickListener int frequency 8000 int channelConfiguration AudioFormat.CHANNEL_CONFIGURATION_MONO int audioEncoding AudioFormat.ENCODING_PCM_16BIT private RealDoubleFFT transformer int blockSize 256 Button startStopButton..

Playing back sound coming from microphone in real-time

http://stackoverflow.com/questions/5728454/playing-back-sound-coming-from-microphone-in-real-time

private int audioSource MediaRecorder.AudioSource.MIC private int samplingRate 44100 in Hz private int channelConfig AudioFormat.CHANNEL_CONFIGURATION_MONO private int audioFormat AudioFormat.ENCODING_PCM_16BIT private int bufferSize AudioRecord.getMinBufferSize samplingRate.. recorder.startRecording isRecording true AudioTrack audioPlayer new AudioTrack AudioManager.STREAM_MUSIC 44100 AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT bufferSize AudioTrack.MODE_STREAM if audioPlayer.getPlayState AudioTrack.PLAYSTATE_PLAYING..

Android audio FFT to retrieve specific frequency magnitude using audiorecord

http://stackoverflow.com/questions/5774104/android-audio-fft-to-retrieve-specific-frequency-magnitude-using-audiorecord

are played through the phone's microphone. I have set up the class using the AudioRecord class int channel_config AudioFormat.CHANNEL_CONFIGURATION_MONO int format AudioFormat.ENCODING_PCM_16BIT int sampleSize 8000 int bufferSize AudioRecord.getMinBufferSize sampleSize channel_config..

Android: Listener to record sound if any sound occurs

http://stackoverflow.com/questions/9323452/android-listener-to-record-sound-if-any-sound-occurs

mediarecorder share improve this question Try this code in your application... private int RECORDER_CHANNELS AudioFormat.CHANNEL_CONFIGURATION_MONO private int RECORDER_AUDIO_ENCODING AudioFormat.ENCODING_PCM_16BIT private int RECORDER_SAMPLERATE 44100 private byte RECORDER_BPP..

Live Audio Recording and Playing in Android and Thread & callback handling

http://stackoverflow.com/questions/9413998/live-audio-recording-and-playing-in-android-and-thread-callback-handling

true public void loopback Prepare the AudioRecord AudioTrack try buffersize AudioRecord.getMinBufferSize SAMPLE_RATE AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT if buffersize BUF_SIZE buffersize BUF_SIZE Log.i LOG_TAG Initializing Audio Record and.. Audio Record and Audio Playing objects m_record new AudioRecord MediaRecorder.AudioSource.MIC SAMPLE_RATE AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize 1 m_track new AudioTrack AudioManager.STREAM_ALARM SAMPLE_RATE AudioFormat.CHANNEL_CONFIGURATION_MONO.. AudioFormat.ENCODING_PCM_16BIT buffersize 1 m_track new AudioTrack AudioManager.STREAM_ALARM SAMPLE_RATE AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT buffersize 1 AudioTrack.MODE_STREAM m_track.setPlaybackRate SAMPLE_RATE catch Throwable..