com.speech4j.speech
Class TTSEnum

java.lang.Object
  |
  +--com.speech4j.speech.NativeObject
        |
        +--com.speech4j.speech.TTSEnum

public class TTSEnum
extends NativeObject

Represents CTTSEnum class.

Version:
1.2
Author:
Pavel Vlasov

Constructor Summary
TTSEnum()
          Constructor.
 
Method Summary
 void destroy()
          Call this method to explicitly destroy "native" part of the object.
protected  void finalize()
          Invokes destroy() to release native object.
 TTSModeInfo findByModeName(java.lang.String name)
          Finds mode by name.
 TTSModeInfo next()
          Creates new TTSModeInfo , calls next(TTSModeInfo) and retruns info.
 boolean next(TTSModeInfo info)
          See CTTSEnum::Next()
 void reset()
          See CTTSEnum::Reset()
 TTSMode select(byte[] guid, AudioDest audio)
          See CTTSEnum::Select()
 TTSMode select(java.lang.String guid, AudioDest audio)
          Invokes select(string2Bytes(guid),audio).
 void skip()
          Calls Skip(1)
 void skip(int cnt)
          See CTTSEnum::Skip()
 
Methods inherited from class com.speech4j.speech.NativeObject
bytes2String, cleanup, getObjID, processMessages, stopProcessingMessages, string2Bytes, testSpeech
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TTSEnum

public TTSEnum()
        throws SpeechException
Constructor.

Method Detail

finalize

protected void finalize()
Invokes destroy() to release native object.

Overrides:
finalize in class java.lang.Object

destroy

public void destroy()
Call this method to explicitly destroy "native" part of the object. Otherwise the GC will do it.


next

public boolean next(TTSModeInfo info)
             throws SpeechException
See CTTSEnum::Next()

Parameters:
info - - object to put data to
Returns:
true if next succeded, false if there is no more modes.
SpeechException

next

public TTSModeInfo next()
                 throws SpeechException
Creates new TTSModeInfo , calls next(TTSModeInfo) and retruns info. See CTTSEnum::Next()

Returns:
TTSModeInfo
SpeechException

skip

public void skip(int cnt)
          throws SpeechException
See CTTSEnum::Skip()

Parameters:
cnt - Number of modes to skip
SpeechException

reset

public void reset()
           throws SpeechException
See CTTSEnum::Reset()

SpeechException

select

public TTSMode select(byte[] guid,
                      AudioDest audio)
               throws SpeechException
See CTTSEnum::Select()

Parameters:
guid - Mode ID
audio - Audio destination
Returns:
TTSMode
SpeechException

select

public TTSMode select(java.lang.String guid,
                      AudioDest audio)
               throws SpeechException
Invokes select(string2Bytes(guid),audio). See CTTSEnum::Select()

Parameters:
guid - Mode ID
audio - Audio destination
Returns:
TTSMode
SpeechException

skip

public void skip()
          throws SpeechException
Calls Skip(1)

SpeechException

findByModeName

public TTSModeInfo findByModeName(java.lang.String name)
                           throws SpeechException
Finds mode by name.

Parameters:
name - Mode name
Returns:
TTSModeInfo
Throws:
SpeechException - if mode not found


Copyright © 2003 Pavel Vlasov. All Rights Reserved.