org.speechforge.zanzibar.jvoicexml.impl
Class MrcpImplementationPlatform
java.lang.Object
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 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mrcpClient
org.speechforge.cairo.client.SpeechClient mrcpClient
- the speech client object that uses the speech server via mrcp
MrcpImplementationPlatform
public MrcpImplementationPlatform()
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.