org.mobicents.media.server.impl.resource.mediaplayer.audio.tts
Class VoicesCache

java.lang.Object
  extended by org.mobicents.media.server.impl.resource.mediaplayer.audio.tts.VoicesCache

public class VoicesCache
extends java.lang.Object

Class to store voices. It allocates them at start and caches - just like pool. This is required to avoid cost of voice.allocate(); method.

Author:
baranowb

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

VoicesCache

public VoicesCache()
Method Detail

allocateVoice

public com.sun.speech.freetts.Voice allocateVoice(java.lang.String voiceName)

releaseVoice

public void releaseVoice(com.sun.speech.freetts.Voice v)

clear

public void clear()

init

public void init(java.util.Map<java.lang.String,java.lang.Integer> voices)


Copyright © 2010. All Rights Reserved.