public class TTSRegistry extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TTSRegistry.TTSResource |
| Constructor and Description |
|---|
TTSRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTTS(TTSService tts)
Service component callback
|
TTSRegistry.TTSResource |
allocateResourceFor(TTSEngine tts) |
Collection<TTSService> |
getServices()
List all available TTS services, including the disabled ones (in which case
TTSService.newEngine(java.util.Map<java.lang.String, java.lang.String>) will throw a TTSService.ServiceDisabledException),
and the services that may not allocate a working TTSEngine for other
reasons (because of missing configuration, because the list of available voices
can not be retrieved, because the engine failed a test, etc.). |
Collection<TTSEngine> |
getWorkingEngines(Map<String,String> properties,
TTSLog ttsLog,
org.slf4j.Logger log)
Allocate a list of working engines.
|
public void addTTS(TTSService tts)
public Collection<TTSService> getServices()
TTSService.newEngine(java.util.Map<java.lang.String, java.lang.String>) will throw a TTSService.ServiceDisabledException),
and the services that may not allocate a working TTSEngine for other
reasons (because of missing configuration, because the list of available voices
can not be retrieved, because the engine failed a test, etc.).public Collection<TTSEngine> getWorkingEngines(Map<String,String> properties, TTSLog ttsLog, org.slf4j.Logger log)
properties - Key-value pairs for the allocation of engines. See TTSService.newEngine(java.util.Map<java.lang.String, java.lang.String>).ttsLog - For logging engine allocations errors. May be null.log - For logging the engine status summary. May be null.public TTSRegistry.TTSResource allocateResourceFor(TTSEngine tts) throws TTSService.SynthesisException, InterruptedException
Copyright © 2010–2026 The DAISY Consortium. All rights reserved.