org.jvoicexml
Interface CharacterInput

All Superinterfaces:
InputDevice, RemoteConnectable
All Known Subinterfaces:
UserInput
All Known Implementing Classes:
BufferedCharacterInput, CharacterInputStub

public interface CharacterInput
extends InputDevice, RemoteConnectable

Facade for easy control and monitoring of the user's DTMF input.

Objects that implement this interface are able to detect character input and to control input detection interval duration with a timer whose length is specified by a VoiceXML document.

If an input resource is not available, an error.noresource event must be thrown.

Since:
0.5
Version:
$Revision: 216 $

Copyright © 2006 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
Dirk Schnelle

Method Summary
 void addCharacter(char dtmf)
          The user entered a DTMF.
 void startRecognition()
          Detects and reports character and/or spoken input simultaneously.
 void stopRecognition()
          Stops a previously started recognition.
 
Methods inherited from interface org.jvoicexml.RemoteConnectable
connect
 

Method Detail

addCharacter

void addCharacter(char dtmf)
The user entered a DTMF.

Parameters:
dtmf - Entered DTMF.

startRecognition

void startRecognition()
                      throws NoresourceError,
                             BadFetchError
Detects and reports character and/or spoken input simultaneously.

Specified by:
startRecognition in interface InputDevice
Throws:
NoresourceError - The input resource is not available.
BadFetchError - The active grammar contains some errors.

stopRecognition

void stopRecognition()
Stops a previously started recognition.

Specified by:
stopRecognition in interface InputDevice
See Also:
startRecognition()


Copyright © 2005-2007 JVoiceXML group.