|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.slee.resource.tts.ra.TTSSessionImpl
public class TTSSessionImpl
| Constructor Summary | |
|---|---|
TTSSessionImpl(java.lang.String fileName,
java.lang.String voiceName)
Constructor for TTSSessionImpl |
|
| Method Summary | |
|---|---|
void |
dispose()
Shuts down this TTSSession synthesizer by closing the AudioPlayer and voice. |
boolean |
filetoAudioFile(java.lang.String filePath)
|
java.lang.String |
getSessionId()
|
boolean |
streamToAudioFile(java.io.InputStream is)
|
boolean |
streamToSpeech(java.io.InputStream is)
Converts the text contained in the given stream to speech. |
boolean |
textToAudioFile(java.lang.String text)
|
boolean |
textToSpeech(java.lang.String text)
Converts the given text to speech |
boolean |
urltoAudioFile(java.lang.String urlPath)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TTSSessionImpl(java.lang.String fileName,
java.lang.String voiceName)
fileName - This is the path of the file with fileName where you want to
store the audio output. For example /NotBackedUp/tmp/test.wav.voiceName - Used by VoiceManager to get a Voice for given voiceName| Method Detail |
|---|
public java.lang.String getSessionId()
getSessionId in interface org.mobicents.slee.resource.tts.ratype.TTSSessionpublic boolean textToAudioFile(java.lang.String text)
textToAudioFile in interface org.mobicents.slee.resource.tts.ratype.TTSSessionpublic boolean streamToAudioFile(java.io.InputStream is)
streamToAudioFile in interface org.mobicents.slee.resource.tts.ratype.TTSSessionpublic boolean urltoAudioFile(java.lang.String urlPath)
urltoAudioFile in interface org.mobicents.slee.resource.tts.ratype.TTSSessionpublic boolean filetoAudioFile(java.lang.String filePath)
filetoAudioFile in interface org.mobicents.slee.resource.tts.ratype.TTSSessionpublic boolean textToSpeech(java.lang.String text)
text - the text to speak
public boolean streamToSpeech(java.io.InputStream is)
is - the stream containing the text to speakpublic void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||