com.speech4j.speech
Class AudioSource

java.lang.Object
  |
  +--com.speech4j.speech.NativeObject
        |
        +--com.speech4j.speech.Audio
              |
              +--com.speech4j.speech.AudioSource
Direct Known Subclasses:
AudioSourceFile

public class AudioSource
extends Audio

Represents IAudioSource interface

Version:
1.1
Author:
Pavel Vlasov

Constructor Summary
AudioSource()
           
 
Method Summary
 byte[] getData(int count)
          IAudioSource::DataGet
 int getDataAvailable()
          IAudioSource::DataAvailable.
 
Methods inherited from class com.speech4j.speech.Audio
claim, flush, getLevel, getPosn, getTotal, getWaveFormat, setLevel, setWaveFormat, start, Stop, unClaim
 
Methods inherited from class com.speech4j.speech.NativeObject
bytes2String, cleanup, getObjID, processMessages, stopProcessingMessages, string2Bytes, testSpeech
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioSource

public AudioSource()
Method Detail

getDataAvailable

public int getDataAvailable()
                     throws SpeechException
IAudioSource::DataAvailable.

Returns:
number of bytes available in the internal device buffer
SpeechException

getData

public byte[] getData(int count)
               throws SpeechException
IAudioSource::DataGet

Parameters:
count - number of bytes to get.
Returns:
data
SpeechException


Copyright © 2003 Pavel Vlasov. All Rights Reserved.