org.speechforge.zanzibar.jvoicexml.impl
Class MrcpImplementationPlatform

java.lang.Object
  extended by org.speechforge.zanzibar.jvoicexml.impl.MrcpImplementationPlatform
All Implemented Interfaces:
org.jvoicexml.ImplementationPlatform, org.speechforge.cairo.client.SpeechEventListener

public final class MrcpImplementationPlatform
extends java.lang.Object
implements org.speechforge.cairo.client.SpeechEventListener, org.jvoicexml.ImplementationPlatform


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.speechforge.cairo.client.SpeechEventListener
org.speechforge.cairo.client.SpeechEventListener.EventType
 
Field Summary
(package private)  org.speechforge.cairo.client.SpeechClient mrcpClient
          the speech client object that uses the speech server via mrcp
 
Constructor Summary
MrcpImplementationPlatform()
           
 
Method Summary
 org.jvoicexml.CallControl borrowCallControl()
           
 org.jvoicexml.SystemOutput borrowSystemOutput()
           
 org.jvoicexml.UserInput borrowUserInput()
           
 void characterEventReceived(java.lang.String c, org.speechforge.cairo.client.SpeechEventListener.EventType status)
           
 void close()
           
 org.jvoicexml.CallControl getBorrowedCallControl()
           
 org.jvoicexml.UserInput getBorrowedUserInput()
           
 org.jvoicexml.CallControl getCallControl()
           
 org.jvoicexml.CharacterInput getCharacterInput()
           
 org.speechforge.cairo.client.SpeechClient getMrcpClient()
           
 org.jvoicexml.SystemOutput getSystemOutput()
           
 org.jvoicexml.UserInput getUserInput()
           
 void inputEnded()
           
 void inputStarted()
           
 void markerReached(java.lang.String mark)
           
 void outputEnded()
           
 void outputStarted()
           
 void recognitionEventReceived(org.mrcp4j.message.MrcpEvent event, org.speechforge.cairo.client.recog.RecognitionResult r)
           
 void resultAccepted(org.jvoicexml.RecognitionResult result)
           
 void resultRejected(org.jvoicexml.RecognitionResult result)
           
 void returnCallControl(org.jvoicexml.CallControl arg0)
           
 void returnSystemOutput(org.jvoicexml.SystemOutput arg0)
           
 void returnUserInput(org.jvoicexml.UserInput arg0)
           
 void setEventHandler(org.jvoicexml.event.EventObserver observer)
           
 void setMrcpClient(org.speechforge.cairo.client.SpeechClient mrcpClient)
           
 void setSession(org.jvoicexml.Session arg0)
           
 void speechStarted(org.jvoicexml.xml.vxml.BargeInType type)
           
 void speechSynthEventReceived(org.mrcp4j.message.MrcpEvent event)
           
 void waitOutputQueueEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mrcpClient

org.speechforge.cairo.client.SpeechClient mrcpClient
the speech client object that uses the speech server via mrcp

Constructor Detail

MrcpImplementationPlatform

public MrcpImplementationPlatform()
Method Detail

getSystemOutput

public org.jvoicexml.SystemOutput getSystemOutput()
                                           throws org.jvoicexml.event.error.NoresourceError
Throws:
org.jvoicexml.event.error.NoresourceError

getUserInput

public org.jvoicexml.UserInput getUserInput()
                                     throws org.jvoicexml.event.error.NoresourceError
Throws:
org.jvoicexml.event.error.NoresourceError

getCharacterInput

public org.jvoicexml.CharacterInput getCharacterInput()
                                               throws org.jvoicexml.event.error.NoresourceError
Specified by:
getCharacterInput in interface org.jvoicexml.ImplementationPlatform
Throws:
org.jvoicexml.event.error.NoresourceError

getCallControl

public org.jvoicexml.CallControl getCallControl()
                                         throws org.jvoicexml.event.error.NoresourceError
Throws:
org.jvoicexml.event.error.NoresourceError

close

public void close()
Specified by:
close in interface org.jvoicexml.ImplementationPlatform

getMrcpClient

public org.speechforge.cairo.client.SpeechClient getMrcpClient()
Returns:
the mrcpClient

setMrcpClient

public void setMrcpClient(org.speechforge.cairo.client.SpeechClient mrcpClient)
Parameters:
mrcpClient - the mrcpClient to set

setEventHandler

public void setEventHandler(org.jvoicexml.event.EventObserver observer)
Specified by:
setEventHandler in interface org.jvoicexml.ImplementationPlatform

speechStarted

public void speechStarted(org.jvoicexml.xml.vxml.BargeInType type)

resultAccepted

public void resultAccepted(org.jvoicexml.RecognitionResult result)

resultRejected

public void resultRejected(org.jvoicexml.RecognitionResult result)

inputStarted

public void inputStarted()

inputEnded

public void inputEnded()

outputStarted

public void outputStarted()

outputEnded

public void outputEnded()

markerReached

public void markerReached(java.lang.String mark)

speechSynthEventReceived

public void speechSynthEventReceived(org.mrcp4j.message.MrcpEvent event)
Specified by:
speechSynthEventReceived in interface org.speechforge.cairo.client.SpeechEventListener

recognitionEventReceived

public void recognitionEventReceived(org.mrcp4j.message.MrcpEvent event,
                                     org.speechforge.cairo.client.recog.RecognitionResult r)
Specified by:
recognitionEventReceived in interface org.speechforge.cairo.client.SpeechEventListener

characterEventReceived

public void characterEventReceived(java.lang.String c,
                                   org.speechforge.cairo.client.SpeechEventListener.EventType status)
Specified by:
characterEventReceived in interface org.speechforge.cairo.client.SpeechEventListener

borrowCallControl

public org.jvoicexml.CallControl borrowCallControl()
                                            throws org.jvoicexml.event.error.NoresourceError
Specified by:
borrowCallControl in interface org.jvoicexml.ImplementationPlatform
Throws:
org.jvoicexml.event.error.NoresourceError

borrowSystemOutput

public org.jvoicexml.SystemOutput borrowSystemOutput()
                                              throws org.jvoicexml.event.error.NoresourceError
Specified by:
borrowSystemOutput in interface org.jvoicexml.ImplementationPlatform
Throws:
org.jvoicexml.event.error.NoresourceError

borrowUserInput

public org.jvoicexml.UserInput borrowUserInput()
                                        throws org.jvoicexml.event.error.NoresourceError
Specified by:
borrowUserInput in interface org.jvoicexml.ImplementationPlatform
Throws:
org.jvoicexml.event.error.NoresourceError

getBorrowedCallControl

public org.jvoicexml.CallControl getBorrowedCallControl()
Specified by:
getBorrowedCallControl in interface org.jvoicexml.ImplementationPlatform

getBorrowedUserInput

public org.jvoicexml.UserInput getBorrowedUserInput()
Specified by:
getBorrowedUserInput in interface org.jvoicexml.ImplementationPlatform

returnCallControl

public void returnCallControl(org.jvoicexml.CallControl arg0)
Specified by:
returnCallControl in interface org.jvoicexml.ImplementationPlatform

returnSystemOutput

public void returnSystemOutput(org.jvoicexml.SystemOutput arg0)
Specified by:
returnSystemOutput in interface org.jvoicexml.ImplementationPlatform

returnUserInput

public void returnUserInput(org.jvoicexml.UserInput arg0)
Specified by:
returnUserInput in interface org.jvoicexml.ImplementationPlatform

setSession

public void setSession(org.jvoicexml.Session arg0)
Specified by:
setSession in interface org.jvoicexml.ImplementationPlatform

waitOutputQueueEmpty

public void waitOutputQueueEmpty()
Specified by:
waitOutputQueueEmpty in interface org.jvoicexml.ImplementationPlatform


Copyright 2008-2008-2009 SpeechForge. All Rights Reserved.