|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.impl.resource.mediaplayer.audio.tts.VoicesCache
public class VoicesCache
Class to store voices. It allocates them at start and caches - just like pool. This is required to avoid cost of voice.allocate(); method.
| Constructor Summary | |
|---|---|
VoicesCache()
|
|
| Method Summary | |
|---|---|
com.sun.speech.freetts.Voice |
allocateVoice(java.lang.String voiceName)
|
void |
clear()
|
void |
init(java.util.Map<java.lang.String,java.lang.Integer> voices)
|
void |
releaseVoice(com.sun.speech.freetts.Voice v)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VoicesCache()
| Method Detail |
|---|
public com.sun.speech.freetts.Voice allocateVoice(java.lang.String voiceName)
public void releaseVoice(com.sun.speech.freetts.Voice v)
public void clear()
public void init(java.util.Map<java.lang.String,java.lang.Integer> voices)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||