org.speechforge.apps.demos
Class Jukebox

java.lang.Object
  extended by org.speechforge.zanzibar.speechlet.Speechlet
      extended by org.speechforge.apps.demos.Jukebox
All Implemented Interfaces:
java.lang.Runnable, org.speechforge.cairo.client.SpeechEventListener, SessionProcessor

public class Jukebox
extends Speechlet
implements org.speechforge.cairo.client.SpeechEventListener

Jukebox Speech application. Plays songs (audio files) bases upon the spoken request. Demonstartes the use of preprecorded prompts.

Author:
Spencer Lord <salord@users.sourceforge.net>

Nested Class Summary
 
Nested classes/interfaces inherited from class org.speechforge.zanzibar.speechlet.Speechlet
Speechlet.InstrumentationListener
 
Nested classes/interfaces inherited from interface org.speechforge.cairo.client.SpeechEventListener
org.speechforge.cairo.client.SpeechEventListener.EventType
 
Field Summary
 
Fields inherited from class org.speechforge.zanzibar.speechlet.Speechlet
_logger, stopFlag
 
Constructor Summary
Jukebox()
           
 
Method Summary
 void characterEventReceived(java.lang.String c, org.speechforge.cairo.client.SpeechEventListener.EventType status)
           
 java.lang.String getAmy()
           
 java.lang.String getDylan()
           
 java.lang.String getFirstPrompt()
           
 java.lang.String getGreetingGrammar()
           
 java.lang.String getLaterPrompts()
           
 java.lang.String getPlayGrammar()
           
 java.lang.String getRadiohead()
           
 java.lang.String getStones()
           
 void recognitionEventReceived(org.mrcp4j.message.MrcpEvent event, org.speechforge.cairo.client.recog.RecognitionResult r)
           
protected  void runApplication()
          Run application.
 void setAmy(java.lang.String amy)
           
 void setDylan(java.lang.String dylan)
           
 void setFirstPrompt(java.lang.String firstPrompt)
           
 void setGreetingGrammar(java.lang.String greetingGrammar)
           
 void setLaterPrompts(java.lang.String laterPrompts)
           
 void setPlayGrammar(java.lang.String playGrammar)
           
 void setRadiohead(java.lang.String radiohead)
           
 void setStones(java.lang.String stones)
           
 void speechSynthEventReceived(org.mrcp4j.message.MrcpEvent event)
           
 
Methods inherited from class org.speechforge.zanzibar.speechlet.Speechlet
getClient, getContext, getId, getSession, isInstrumentation, run, setContext, setInstrumentation, startup, startup, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jukebox

public Jukebox()
Method Detail

runApplication

protected void runApplication()
                       throws org.speechforge.cairo.client.NoMediaControlChannelException
Description copied from class: Speechlet
Run application.

Specified by:
runApplication in class Speechlet
Throws:
org.speechforge.cairo.client.NoMediaControlChannelException

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

speechSynthEventReceived

public void speechSynthEventReceived(org.mrcp4j.message.MrcpEvent event)
Specified by:
speechSynthEventReceived 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

getAmy

public java.lang.String getAmy()
Returns:
the amy

setAmy

public void setAmy(java.lang.String amy)
Parameters:
amy - the amy to set

getDylan

public java.lang.String getDylan()
Returns:
the dylan

setDylan

public void setDylan(java.lang.String dylan)
Parameters:
dylan - the dylan to set

getFirstPrompt

public java.lang.String getFirstPrompt()
Returns:
the firstPrompt

setFirstPrompt

public void setFirstPrompt(java.lang.String firstPrompt)
Parameters:
firstPrompt - the firstPrompt to set

getGreetingGrammar

public java.lang.String getGreetingGrammar()
Returns:
the greetingGrammar

setGreetingGrammar

public void setGreetingGrammar(java.lang.String greetingGrammar)
Parameters:
greetingGrammar - the greetingGrammar to set

getLaterPrompts

public java.lang.String getLaterPrompts()
Returns:
the laterPrompts

setLaterPrompts

public void setLaterPrompts(java.lang.String laterPrompts)
Parameters:
laterPrompts - the laterPrompts to set

getPlayGrammar

public java.lang.String getPlayGrammar()
Returns:
the playGrammar

setPlayGrammar

public void setPlayGrammar(java.lang.String playGrammar)
Parameters:
playGrammar - the playGrammar to set

getRadiohead

public java.lang.String getRadiohead()
Returns:
the radiohead

setRadiohead

public void setRadiohead(java.lang.String radiohead)
Parameters:
radiohead - the radiohead to set

getStones

public java.lang.String getStones()
Returns:
the stones

setStones

public void setStones(java.lang.String stones)
Parameters:
stones - the stones to set


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