AudioRecordSourceFactory
class AudioRecordSourceFactory( val audioSource: Int = MediaRecorder.AudioSource.VOICE_RECOGNITION, val sampleRate: Int = 16000, val channelConfig: Int = android.media.AudioFormat.CHANNEL_IN_FRONT, val audioFormat: Int = android.media.AudioFormat.ENCODING_PCM_16BIT, val bufferSize: Int = sampleRate * 2 * 10) : AudioSourceFactory
Content copied to clipboard
Default implementation of AudioSourceFactory for android.media.AudioRecord
Constructors
Link copied to clipboard
fun AudioRecordSourceFactory( audioSource: Int = MediaRecorder.AudioSource.VOICE_RECOGNITION, sampleRate: Int = 16000, channelConfig: Int = android.media.AudioFormat.CHANNEL_IN_FRONT, audioFormat: Int = android.media.AudioFormat.ENCODING_PCM_16BIT, bufferSize: Int = sampleRate * 2 * 10)
Content copied to clipboard
Types
Functions
Link copied to clipboard
Create a AudioSource
Link copied to clipboard
Return an audio format of audio source which will be created from create