org.jvoicexml.implementation.red5
Class Red5SpokenInput

java.lang.Object
  extended by org.jvoicexml.implementation.red5.Red5SpokenInput
All Implemented Interfaces:
ExternalResource, InputDevice, ObservableSpokenInput, SpokenInput, RemoteConnectable

public final class Red5SpokenInput
extends Object
implements SpokenInput

Demo implementation for a synthesized output using the Red5 server.

Since:
0.7.4
Author:
Dirk Schnelle-Walka, Mohamed Ali

Constructor Summary
Red5SpokenInput()
           
 
Method Summary
 void activate()
          
 void activateGrammars(Collection<GrammarImplementation<?>> grammars)
          
 void addListener(SpokenInputListener listener)
          
 void close()
          
 void connect(ConnectionInformation client)
          
 void deactivateGrammars(Collection<GrammarImplementation<?>> grammars)
          
 void disconnect(ConnectionInformation client)
          
 Collection<org.jvoicexml.xml.vxml.BargeInType> getSupportedBargeInTypes()
          
 Collection<org.jvoicexml.xml.srgs.GrammarType> getSupportedGrammarTypes()
          
 String getType()
          
 URI getUriForNextSpokenInput()
          
 boolean isBusy()
          
 GrammarImplementation<?> loadGrammar(Reader reader, org.jvoicexml.xml.srgs.GrammarType type)
          
 void open()
          
 void passivate()
          
 void removeListener(SpokenInputListener listener)
          
 void startRecognition(SpeechRecognizerProperties speech, DtmfRecognizerProperties dtmf)
          
 void stopRecognition()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Red5SpokenInput

public Red5SpokenInput()
Method Detail

getType

public String getType()

Specified by:
getType in interface ExternalResource

open

public void open()
          throws NoresourceError

Specified by:
open in interface ExternalResource
Throws:
NoresourceError

activate

public void activate()
              throws NoresourceError

Specified by:
activate in interface ExternalResource
Throws:
NoresourceError

passivate

public void passivate()
               throws NoresourceError

Specified by:
passivate in interface ExternalResource
Throws:
NoresourceError

close

public void close()

Specified by:
close in interface ExternalResource

isBusy

public boolean isBusy()

Specified by:
isBusy in interface ExternalResource

connect

public void connect(ConnectionInformation client)
             throws IOException

Specified by:
connect in interface RemoteConnectable
Throws:
IOException

disconnect

public void disconnect(ConnectionInformation client)

Specified by:
disconnect in interface RemoteConnectable

startRecognition

public void startRecognition(SpeechRecognizerProperties speech,
                             DtmfRecognizerProperties dtmf)
                      throws NoresourceError,
                             BadFetchError

Specified by:
startRecognition in interface InputDevice
Throws:
NoresourceError
BadFetchError

stopRecognition

public void stopRecognition()

Specified by:
stopRecognition in interface InputDevice

addListener

public void addListener(SpokenInputListener listener)

Specified by:
addListener in interface ObservableSpokenInput

removeListener

public void removeListener(SpokenInputListener listener)

Specified by:
removeListener in interface ObservableSpokenInput

activateGrammars

public void activateGrammars(Collection<GrammarImplementation<?>> grammars)
                      throws BadFetchError,
                             UnsupportedLanguageError,
                             NoresourceError

Specified by:
activateGrammars in interface SpokenInput
Throws:
BadFetchError
UnsupportedLanguageError
NoresourceError

deactivateGrammars

public void deactivateGrammars(Collection<GrammarImplementation<?>> grammars)
                        throws NoresourceError,
                               BadFetchError

Specified by:
deactivateGrammars in interface SpokenInput
Throws:
NoresourceError
BadFetchError

getUriForNextSpokenInput

public URI getUriForNextSpokenInput()
                             throws NoresourceError,
                                    URISyntaxException

Specified by:
getUriForNextSpokenInput in interface SpokenInput
Throws:
NoresourceError
URISyntaxException

getSupportedGrammarTypes

public Collection<org.jvoicexml.xml.srgs.GrammarType> getSupportedGrammarTypes()

Specified by:
getSupportedGrammarTypes in interface SpokenInput

loadGrammar

public GrammarImplementation<?> loadGrammar(Reader reader,
                                            org.jvoicexml.xml.srgs.GrammarType type)
                                     throws NoresourceError,
                                            BadFetchError,
                                            UnsupportedFormatError

Specified by:
loadGrammar in interface SpokenInput
Throws:
NoresourceError
BadFetchError
UnsupportedFormatError

getSupportedBargeInTypes

public Collection<org.jvoicexml.xml.vxml.BargeInType> getSupportedBargeInTypes()

Specified by:
getSupportedBargeInTypes in interface SpokenInput


Copyright © 2010JVoiceXML group.