|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nuance.nmdp.speechkit.Prompt
public final class Prompt
An audio or vibration prompt created by SpeechKit.defineAudioPrompt(int)
()
or vibrate(). Once created, prompts may be played during a Recognizer
's
recognition, either due to being configured in SpeechKit.setDefaultRecognizerPrompts(com.nuance.nmdp.speechkit.Prompt, com.nuance.nmdp.speechkit.Prompt, com.nuance.nmdp.speechkit.Prompt, com.nuance.nmdp.speechkit.Prompt)
()
or Recognizer.setPrompt(int, com.nuance.nmdp.speechkit.Prompt)
().
Method Summary | |
---|---|
void |
release()
Release the resources used by this prompt. |
static Prompt |
vibration(int duration)
Get a prompt that vibrates. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void release()
public static Prompt vibration(int duration)
SpeechKit
instance. It does not need
to be released.
duration
- The duration (in milliseconds) of the vibration. Must be
greater than 0.
Prompt
object, which can be used to cause a Recognizer
to vibrate at certain stages of the recognition. Returns null
if the duration is invalid.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |