com.speech4j.ant
Class VoiceMessageTask

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--com.speech4j.ant.VoiceMessageTask

public class VoiceMessageTask
extends org.apache.tools.ant.Task

VoiceMessageTask produces vocal output to speaker or file.

Version:
1.1
Author:
Pavel Vlasov

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
VoiceMessageTask()
           
 
Method Summary
 void addText(java.lang.String msg)
          Set a multiline message.
 void execute()
           
 void setFailOnError(boolean failOnError)
          Sets fail on error
 void setFile(java.io.File file)
          Sets output file
 void setMessage(java.lang.String message)
          Sets message to speak
 void setModeId(java.lang.String modeId)
          Sets mode ID
 void setModeName(java.lang.String modeName)
          Sets mode name.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoiceMessageTask

public VoiceMessageTask()
Method Detail

setModeId

public void setModeId(java.lang.String modeId)
Sets mode ID

Parameters:
modeId - Mode ID (GUID)

setModeName

public void setModeName(java.lang.String modeName)
Sets mode name.

Parameters:
modeName - Mode name

setMessage

public void setMessage(java.lang.String message)
Sets message to speak

Parameters:
message - Message to speak

setFile

public void setFile(java.io.File file)
Sets output file

Parameters:
file - Output file

setFailOnError

public void setFailOnError(boolean failOnError)
Sets fail on error

Parameters:
failOnError - If set to true then exceptions in speaking will fail build.

addText

public void addText(java.lang.String msg)
Set a multiline message.


execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException


Copyright © 2003 Pavel Vlasov. All Rights Reserved.