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() |
Collection<TTSEngine> |
getWorkingEngines(Map<String,String> properties,
TTSLog ttsLog,
org.slf4j.Logger log)
Allocate a list of working engines.
|
void |
removeTTS(TTSService tts)
Service component callback
|
void |
setURIResolver(URIResolver uriResolver)
Service component callback
|
void |
unsetURIResolver(URIResolver uriResolver)
Service component callback
|
public void setURIResolver(URIResolver uriResolver)
public void unsetURIResolver(URIResolver uriResolver)
public void addTTS(TTSService tts)
public void removeTTS(TTSService tts)
public Collection<TTSService> getServices()
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–2024 The DAISY Consortium. All rights reserved.