Asterisk-Java

org.asteriskjava.fastagi.command
Class SpeechCreateCommand

java.lang.Object
  extended by org.asteriskjava.fastagi.command.AbstractAgiCommand
      extended by org.asteriskjava.fastagi.command.SpeechCreateCommand
All Implemented Interfaces:
java.io.Serializable, AgiCommand

public class SpeechCreateCommand
extends AbstractAgiCommand

Creates a speech object to be used by the other Speech AGI commands.

Available since Asterisk 1.6.

Since:
1.0.0
Version:
$Id: SpeechCreateCommand.java 1013 2008-03-31 06:51:03Z srt $
Author:
srt
See Also:
SpeechDestroyCommand, SpeechLoadGrammarCommand, Serialized Form

Constructor Summary
SpeechCreateCommand(java.lang.String engine)
          Creates a new SpeechCreateCommand for the given engine.
 
Method Summary
 java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
 java.lang.String getEngine()
          Returns the name of the speech engine to use for subsequent Speech AGI commands.
 void setEngine(java.lang.String engine)
          Sets the name of the speech engine to use for subsequent Speech AGI commands.
 
Methods inherited from class org.asteriskjava.fastagi.command.AbstractAgiCommand
escapeAndQuote, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpeechCreateCommand

public SpeechCreateCommand(java.lang.String engine)
Creates a new SpeechCreateCommand for the given engine.

Parameters:
engine - the name of the speech engine to use for subsequent Speech AGI commands.
Method Detail

getEngine

public java.lang.String getEngine()
Returns the name of the speech engine to use for subsequent Speech AGI commands.

Returns:
the name of the speech engine to use for subsequent Speech AGI commands.

setEngine

public void setEngine(java.lang.String engine)
Sets the name of the speech engine to use for subsequent Speech AGI commands.

Parameters:
engine - the name of the speech engine to use for subsequent Speech AGI commands.

buildCommand

public java.lang.String buildCommand()
Description copied from interface: AgiCommand
Returns a string suitable to be sent to asterisk.

Specified by:
buildCommand in interface AgiCommand
Specified by:
buildCommand in class AbstractAgiCommand
Returns:
a string suitable to be sent to asterisk.

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.