|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.speech4j.speech.NativeObject | +--com.speech4j.speech.TTSMode
Represents CTTSMode class.
Field Summary | |
static byte |
CHARSET_ENGINEPHONETIC
An engine-specific phonetic character set |
static byte |
CHARSET_IPAPHONETIC
The IPA character set |
static byte |
CHARSET_TEXT
The text character set |
static byte |
VPS_ABBREVIATION
Shortened form of a word -- for example, "hr." is an abbreviation for "hour." |
static byte |
VPS_ADJECTIVE
Word that modifies a noun -- for example, "green" describes color in "green grass." |
static byte |
VPS_ADVERB
Word that modifies a verb, an adjective, or another adverb -- for example, "quickly" describes speed in "quickly run." |
static byte |
VPS_CARDINAL
Number used in simple counting -- for example, "one," "two," or "three." |
static byte |
VPS_CONJUNCTION
Word used to join sentences, clauses, or phrases -- for example, "dogs and cats." |
static byte |
VPS_CONTRACTION
Shortened form of one or two words with the omitted letter or letters indicated by an apostrophe -- for example, "can't" is the contraction for "cannot." |
static byte |
VPS_DETERMINER
Limiting noun modifier that precedes an adjective modifying the same noun -- for example, "her" in "her new house." |
static byte |
VPS_INTERJECTION
Word or phrase that expresses emotion -- for example, "indeed" or "heavens." |
static byte |
VPS_NOUN
Word that names a person, place, thing, or abstraction -- for example, "astronaut," "New York," "printer," or "history." |
static byte |
VPS_ORDINAL
Number used to show order -- for example, "first," "second," or "third." |
static byte |
VPS_PREPOSITION
Word that precedes a noun or pronoun to form an adjectival or adverbial phrase -- for example, "aboard" in "aboard the ship." |
static byte |
VPS_PRONOUN
Word that substitutes for a noun -- for example, "it" in "it fell apart." |
static byte |
VPS_PROPERNOUN
Noun that names a specific person or place -- for example, "Katherine" or "Cleveland." |
static byte |
VPS_PUNCTUATION
Marks that clarify the meaning and structure of writing -- for example, a period (.) indicates the end of a sentence. |
static byte |
VPS_QUANTIFIER
Limiting noun modifier that expresses quantity and precedes an adjective modifying the same noun -- for example, "four" in "the four ripe strawberries." |
static byte |
VPS_UNKNOWN
Part of speech is unknown, or the application or engine does not store this information. |
static byte |
VPS_VERB
Word that expresses an act or a state of being -- for example, "eat" or "be." |
Constructor Summary | |
TTSMode()
|
Method Summary | |
void |
aboutDlg()
Invokes aboutDlg(null). |
void |
aboutDlg(java.lang.String title)
See CTTSMode::AboutDlg() |
void |
add(byte charSet,
java.lang.String text,
java.lang.String pronounce,
byte partOfSpeech)
See CTTSMode::Add() |
void |
addSink(TTSNotifySink sink)
Adds sink (event listener). |
void |
audioPause()
See CTTSMode::AudioPause() |
void |
audioReset()
See CTTSMode::AudioReset() |
void |
audioResume()
See CTTSMode::AudioResume() |
void |
create()
Creates native object. |
void |
destroy()
Releases the corresponding native object. |
protected void |
finalize()
Invokes destroy() to release undelining native object. |
void |
generalDlg()
Invokes generalDlg(null). |
void |
generalDlg(java.lang.String title)
See CTTSMode::GeneralDlg() |
java.lang.String |
get(byte charSet,
java.lang.String text,
short sense,
ByteWrap partOfSpeech)
See CTTSMode::Get() |
TTSModeInfo |
getMode()
Creates new TTSModeInfo , calls next(TTSModeInfo) and retruns info. |
void |
getMode(TTSModeInfo info)
See CTTSMode::ModeGet() |
short |
getPitch()
See CTTSMode::PitchGet() |
long |
getPosn()
See CTTSMode::PosnGet() |
int |
getRealTime()
See CTTSMode::RealTimeGet() |
int |
getSpeed()
See CTTSMode::SpeedGet() |
int |
getVolume()
See CTTSMode::VolumeGet() |
void |
init()
See CTTSMode::Init() |
void |
init(byte[] mode)
See CTTSMode::Init(GUID gMode) |
void |
init(java.lang.String mode)
Invokes init(string2Bytes(mode)) |
void |
initAudioDestMM(int device)
See CTTSMode::InitAudioDestMM() |
void |
initAudioDestObject(AudioDest audio)
See CTTSMode::InitAudioDestObject() |
void |
inject(java.lang.String tag)
See CTTSMode::Inject() |
void |
lexiconDlg()
Invokes lexiconDlg(null). |
void |
lexiconDlg(java.lang.String title)
See CTTSMode::LexiconDlg() |
java.lang.String |
phoneme(byte charSet,
int flags,
java.lang.String text)
See CTTSMode::Phoneme() |
void |
remove(java.lang.String text,
short sense)
See CTTSMode::Remove() |
void |
removeSink(TTSNotifySink sink)
Removes sink (event listener) |
void |
setPitch(short pitch)
See CTTSMode::PitchSet() |
void |
setRealTime(int realTime)
See CTTSMode::RealTimeSet() |
void |
setSpeed(int speed)
See CTTSMode::SpeedSet() |
void |
setVolume(int volume)
See CTTSMode::VolumeSet() |
void |
speak(java.lang.String speak)
Invokes speak(speak, false, null) |
void |
speak(java.lang.String speak,
boolean tagged,
TTSBufNotifySink sink)
See CTTSMode::Speak() |
void |
speakAndWait(java.lang.String speak,
boolean tagged)
Speaks the text. |
void |
textData(byte charSet,
int flags,
java.lang.String text)
Invokes textData(charSet, flags, text, null) |
void |
textData(byte charSet,
int flags,
java.lang.String text,
TTSBufNotifySink sink)
See CTTSMode::TextData() |
void |
translateDlg()
Invokes translateDlg(null). |
void |
translateDlg(java.lang.String title)
See CTTSMode::TranslateDlg() |
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 |
Field Detail |
public static final byte CHARSET_TEXT
public static final byte CHARSET_IPAPHONETIC
public static final byte CHARSET_ENGINEPHONETIC
public static final byte VPS_UNKNOWN
public static final byte VPS_NOUN
public static final byte VPS_VERB
public static final byte VPS_ADVERB
public static final byte VPS_ADJECTIVE
public static final byte VPS_PROPERNOUN
public static final byte VPS_PRONOUN
public static final byte VPS_CONJUNCTION
public static final byte VPS_CARDINAL
public static final byte VPS_ORDINAL
public static final byte VPS_DETERMINER
public static final byte VPS_QUANTIFIER
public static final byte VPS_PUNCTUATION
public static final byte VPS_CONTRACTION
public static final byte VPS_INTERJECTION
public static final byte VPS_ABBREVIATION
public static final byte VPS_PREPOSITION
Constructor Detail |
public TTSMode()
Method Detail |
protected void finalize()
finalize
in class java.lang.Object
public void textData(byte charSet, int flags, java.lang.String text) throws SpeechException
charSet
- Character set. Can be
CHARSET_ENGINEPHONETIC
,
CHARSET_IPAPHONETIC
,
CHARSET_TEXT
flags
- Flagstext
- Text to speak
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or TextData() returns nonzero error code.public void speak(java.lang.String speak) throws SpeechException
speak
- Text to speak
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Speak returns nonzero error code.public void create() throws SpeechException
SpeechException
- If a corresponding native object already exists.public void destroy()
public void initAudioDestObject(AudioDest audio) throws SpeechException
audio
- Audio destination
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or InitAudioDestObject() returns nonzero error code.public void initAudioDestMM(int device) throws SpeechException
device
- MMDevice number
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or InitAudioDestMM() returns nonzero error code.public void init() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Init() returns nonzero error code.public void init(byte[] mode) throws SpeechException
mode
- Mode ID
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Init() returns nonzero error code.public void init(java.lang.String mode) throws SpeechException
mode
- Mode ID
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Init() returns nonzero error code.public short getPitch() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or PitchGet() returns nonzero error code.public void setPitch(short pitch) throws SpeechException
pitch
- Pitch
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or PitchSet() returns nonzero error code.public int getRealTime() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or RealTimeGet() returns nonzero error code.public void setRealTime(int realTime) throws SpeechException
realTime
- Real time setting
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or RealTimeSet() returns nonzero error code.public int getSpeed() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or SpeedGet() returns nonzero error code.public void setSpeed(int speed) throws SpeechException
speed
- Speed of a text-to-speech mode.
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or SpeedSet() returns nonzero error code.public int getVolume() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or VolumeGet() returns nonzero error code.public void setVolume(int volume) throws SpeechException
volume
- Volume
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or VolumeSet() returns nonzero error code.public void audioPause() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or AudioPause() returns nonzero error code.public void audioReset() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or AudioReset() returns nonzero error code.public void audioResume() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or AudioResume() returns nonzero error code.public void inject(java.lang.String tag) throws SpeechException
tag
- Tag to inject
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Inject() returns nonzero error code.public void getMode(TTSModeInfo info) throws SpeechException
info
- TTSModeInfo to put data to
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or ModeGet() returns nonzero error code.public TTSModeInfo getMode() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or ModeGet() returns nonzero error code.public java.lang.String phoneme(byte charSet, int flags, java.lang.String text) throws SpeechException
charSet
- Character set. Can be
CHARSET_ENGINEPHONETIC
,
CHARSET_IPAPHONETIC
,
CHARSET_TEXT
flags
- Flagstext
- Text
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Phoneme() returns nonzero error code.public long getPosn() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or PosnGet() returns nonzero error code.public void textData(byte charSet, int flags, java.lang.String text, TTSBufNotifySink sink) throws SpeechException
charSet
- Character set. Can be
CHARSET_ENGINEPHONETIC
,
CHARSET_IPAPHONETIC
,
CHARSET_TEXT
flags
- Flagstext
- Text to speaksink
- TTSBufNotifySink
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or TextData() returns nonzero error code.public void speak(java.lang.String speak, boolean tagged, TTSBufNotifySink sink) throws SpeechException
speak
- Text to speaktagged
- Indicates tagged textsink
- Event sink
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Speak() returns nonzero error code.public void speakAndWait(java.lang.String speak, boolean tagged) throws SpeechException
speak
- Text.tagged
- Indicates tagged text.
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Speak() returns nonzero error code.public void aboutDlg(java.lang.String title) throws SpeechException
title
- Dialog window title
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or AboutDlg() returns nonzero error code.public void generalDlg(java.lang.String title) throws SpeechException
title
- Dialog window title
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or GeneralDlg() returns nonzero error code.public void lexiconDlg(java.lang.String title) throws SpeechException
title
- Dialog window title
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or LexiconDlg() returns nonzero error code.public void translateDlg(java.lang.String title) throws SpeechException
title
- Dialog window title
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or TranslateDlg() returns nonzero error code.public void aboutDlg() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or AboutDlg() returns nonzero error code.public void generalDlg() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or GeneralDlg() returns nonzero error code.public void lexiconDlg() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or LexiconDlg() returns nonzero error code.public void translateDlg() throws SpeechException
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or TranslateDlg() returns nonzero error code.public void addSink(TTSNotifySink sink) throws SpeechException, java.lang.NullPointerException
sink
- TTSNotifySink
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or sink registration fails.
java.lang.NullPointerException
- If sink is null.public void removeSink(TTSNotifySink sink) throws SpeechException
sink
- TTSNotifySink
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or sink unregistration fails.public void add(byte charSet, java.lang.String text, java.lang.String pronounce, byte partOfSpeech) throws SpeechException
charSet
- Character set. Can be
CHARSET_ENGINEPHONETIC
,
CHARSET_IPAPHONETIC
,
CHARSET_TEXT
text
- Textpronounce
- Phonetic transcriptionpartOfSpeech
- Part of speech. Can be one of the following:
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Add() returns nonzero error code.public java.lang.String get(byte charSet, java.lang.String text, short sense, ByteWrap partOfSpeech) throws SpeechException
charSet
- Character set. Can be
CHARSET_ENGINEPHONETIC
,
CHARSET_IPAPHONETIC
,
CHARSET_TEXT
text
- Textsense
- Sense. Starts with 0.partOfSpeech
- Part of speech. Can be one of the following:
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Get() returns nonzero error code.public void remove(java.lang.String text, short sense) throws SpeechException
text
- Textsense
- Sense.
SpeechException
- If a corresponding native object does not exist
(create() has not been invoked or destroy() has been invoked)
or Remove() returns nonzero error code.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |