¡@

Home 

2014/10/16 ¤W¤È 08:23:27

android Programming Glossary: samplerate

How to record audio/voice in background contineously in android?

http://stackoverflow.com/questions/10025824/how-to-record-audio-voice-in-background-contineously-in-android

int source MediaRecorder.AudioSource.MIC private int sampleRate 0 private int encoder 0 private int nChannels 0 private int.. count 0 preTimeStamp 0 public AudioRecorder Context c this.sampleRate 11025 this.encoder AudioFormat.ENCODING_PCM_16BIT this.nChannels.. new RandomAccessFile fileName rw framePeriod sampleRate TIMER_INTERVAL 1000 bufferSize framePeriod 2 bSamples nChannels..

Playing an arbitrary tone with Android

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

private final int duration 3 seconds private final int sampleRate 8000 private final int numSamples duration sampleRate private.. int sampleRate 8000 private final int numSamples duration sampleRate private final double sample new double numSamples private final.. for int i 0 i numSamples i sample i Math.sin 2 Math.PI i sampleRate freqOfTone convert to 16 bit pcm sound array assumes the sample..

AudioRecord object not initializing

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

int audioSource MediaRecorder.AudioSource.MIC private int sampleRate 22050 private int channel AudioFormat.CHANNEL_CONFIGURATION_MONO.. R.id.TextView01 bufferSize AudioRecord.getMinBufferSize sampleRate channel encoding buffer new byte bufferSize recorder new AudioRecord.. new byte bufferSize recorder new AudioRecord audioSource sampleRate channel encoding AudioRecord.getMinBufferSize sampleRate channel..

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

private double ComputeFrequency int arrayIndex return 1.0 sampleRate 1.0 fftOutWindowSize arrayIndex share improve this answer..

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

. . for loop for audioFormat ended here. . . for loop for sampleRate return private void startPlaying LOG_TAG startPlaying Log.e..

How to convert the WAV/OGG file to FLAC file in Android?

http://stackoverflow.com/questions/9733064/how-to-convert-the-wav-ogg-file-to-flac-file-in-android

private void adjustConfigurations AudioFormat format int sampleRate 16000 int format.getSampleRate int sampleSize 16 int format.getSampleSizeInBits.. sc new StreamConfiguration channels blockSize blockSize sampleRate sampleSize sc.setSampleRate sampleRate sc.setBitsPerSample.. blockSize sampleRate sampleSize sc.setSampleRate sampleRate sc.setBitsPerSample sampleSize sc.setChannelCount channels..

How to record audio/voice in background contineously in android?

http://stackoverflow.com/questions/10025824/how-to-record-audio-voice-in-background-contineously-in-android

RECORDING ERROR STOPPED private byte audioBuffer null private int source MediaRecorder.AudioSource.MIC private int sampleRate 0 private int encoder 0 private int nChannels 0 private int bufferRead 0 private int bufferSize 0 private RandomAccessFile.. 120 volatile Thread t null public int TimeStamp 0 count 0 preTimeStamp 0 public AudioRecorder Context c this.sampleRate 11025 this.encoder AudioFormat.ENCODING_PCM_16BIT this.nChannels AudioFormat.CHANNEL_CONFIGURATION_MONO this.preTimeStamp.. myApp.getQueue try String fileName sdcard XYZ 11025.wav tempAudioFile new RandomAccessFile fileName rw framePeriod sampleRate TIMER_INTERVAL 1000 bufferSize framePeriod 2 bSamples nChannels 8 if bufferSize AudioRecord.getMinBufferSize sampleRate..

Playing an arbitrary tone with Android

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

and modified by Steve Pomeroy steve@staticfree.info private final int duration 3 seconds private final int sampleRate 8000 private final int numSamples duration sampleRate private final double sample new double numSamples private final double.. private final int duration 3 seconds private final int sampleRate 8000 private final int numSamples duration sampleRate private final double sample new double numSamples private final double freqOfTone 440 hz private final byte generatedSnd.. playSound thread.start void genTone fill out the array for int i 0 i numSamples i sample i Math.sin 2 Math.PI i sampleRate freqOfTone convert to 16 bit pcm sound array assumes the sample buffer is normalised. int idx 0 for final double dVal sample..

AudioRecord object not initializing

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

private DataOutputStream dos private 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.. set about to init audiorec obj text TextView findViewById R.id.TextView01 bufferSize AudioRecord.getMinBufferSize sampleRate channel encoding buffer new byte bufferSize recorder new AudioRecord audioSource sampleRate channel encoding AudioRecord.getMinBufferSize.. sampleRate channel encoding buffer new byte bufferSize recorder new AudioRecord audioSource sampleRate channel encoding AudioRecord.getMinBufferSize sampleRate channel encoding Log.i recorder obj state recorder.getRecordingState..

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

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

Some Exception e for loop for channel config ended here. . . . for loop for audioFormat ended here. . . for loop for sampleRate return private void startPlaying LOG_TAG startPlaying Log.e LOG_TAG start Playing private void stopPlaying LOG_TAG stopPlaying..

How to convert the WAV/OGG file to FLAC file in Android?

http://stackoverflow.com/questions/9733064/how-to-convert-the-wav-ogg-file-to-flac-file-in-android

public void useThreads boolean val useThreads val private void adjustConfigurations AudioFormat format int sampleRate 16000 int format.getSampleRate int sampleSize 16 int format.getSampleSizeInBits int channels 1 int format.getChannels.. int format.getChannels int blockSize sc.getMaxBlockSize sc new StreamConfiguration channels blockSize blockSize sampleRate sampleSize sc.setSampleRate sampleRate sc.setBitsPerSample sampleSize sc.setChannelCount channels Set the stream.. sc new StreamConfiguration channels blockSize blockSize sampleRate sampleSize sc.setSampleRate sampleRate sc.setBitsPerSample sampleSize sc.setChannelCount channels Set the stream configuration for this encoder to use...