public interface TTSService
Modifier and Type | Interface and Description |
---|---|
static class |
TTSService.ServiceDisabledException |
static class |
TTSService.SynthesisException |
Modifier and Type | Method and Description |
---|---|
default String |
getDisplayName() |
String |
getName() |
TTSEngine |
newEngine(Map<String,String> params)
Allocate a new TTSEngine
|
TTSEngine newEngine(Map<String,String> params) throws TTSService.ServiceDisabledException, Throwable
params
- contains various key-value pairs. Some of them might be options
for the TTS processor under consideration, e.g. server IPs,
priorities or sound quality. It can also contain options which
have nothing to do with the returned TTSEngine. Such options must
be ignored. This method is allowed to perform heavy
initializations as long as they can be interrupted with the
regular Java thread interruption mechanism. In particular, it is
not recommended to test a full text-to-speech step in this
method.TTSService.ServiceDisabledException
- if the service is not available, e.g. because
it was disabled by the user, or because required configuration is
missing.Throwable
- if an engine could not be allocated for another reason.String getName()
default String getDisplayName()
Copyright © 2010–2025 The DAISY Consortium. All rights reserved.