examples.synthesis
Class MPEGFileWriter
java.lang.Object
|
+--examples.synthesis.MPEGFileWriter
- All Implemented Interfaces:
- javax.media.ControllerListener, javax.media.datasink.DataSinkListener
- public class MPEGFileWriter
- extends java.lang.Object
- implements javax.media.ControllerListener, javax.media.datasink.DataSinkListener
Utility class for saving synthesized speech to an MP3 file. Displays a window
for feedback on the progress of writing to the file.
Used by the VoicePad application.
- See Also:
VoicePad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MPEGFileWriter
public MPEGFileWriter()
useNotificationWindow
public void useNotificationWindow(boolean useWin)
speakToMedia
public void speakToMedia(Synthesizer synth,
java.lang.String text,
javax.media.MediaLocator outputMedia)
throws EngineException,
java.io.IOException
dataSinkUpdate
public void dataSinkUpdate(javax.media.datasink.DataSinkEvent evt)
- Specified by:
dataSinkUpdate in interface javax.media.datasink.DataSinkListener
controllerUpdate
public void controllerUpdate(javax.media.ControllerEvent evt)
- Specified by:
controllerUpdate in interface javax.media.ControllerListener