Home | History | Annotate | Download | only in srec

Lines Matching refs:audio

56  * // create and start audio input
57 * InputStream audio = new MicrophoneInputStream(11025, 11025*5);
88 * // put more audio in the Recognizer
89 * recognizer.putAudio(audio);
101 * // stop the audio device
102 * audio.close();
160 * A separate config file is needed for each audio sample rate.
266 * Process some audio and return the current status.
289 * Put audio samples into the <code>Recognizer</code>.
290 * @param buf holds the audio samples.
293 * @param isLast indicates no more audio data, normally false.
301 * Read audio samples from an <code>InputStream</code> and put them in the
303 * @param audio <code>InputStream</code> containing PCM audio samples.
305 public void putAudio(InputStream audio) throws IOException {
306 // make sure the audio buffer is allocated
309 int nbytes = audio.read(mPutAudioBuffer);
320 // audio buffer for putAudio(InputStream)
513 * <code>Recognizer</code> processed one frame of audio.
563 * More audio encountered than is allowed by 'swirec_max_speech_duration'.