mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
AbstractCachedTTSService: make synthesize method non final (#3437)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
+6
-6
@@ -30,15 +30,15 @@ import org.osgi.service.component.annotations.Reference;
|
||||
@NonNullByDefault
|
||||
public abstract class AbstractCachedTTSService implements CachedTTSService {
|
||||
|
||||
private TTSCache ttsCache;
|
||||
private final TTSCache ttsCache;
|
||||
|
||||
@Override
|
||||
public final AudioStream synthesize(String text, Voice voice, AudioFormat requestedFormat) throws TTSException {
|
||||
return ttsCache.get(this, text, voice, requestedFormat);
|
||||
public AbstractCachedTTSService(final @Reference TTSCache ttsCache) {
|
||||
this.ttsCache = ttsCache;
|
||||
}
|
||||
|
||||
public AbstractCachedTTSService(@Reference TTSCache ttsCache) {
|
||||
this.ttsCache = ttsCache;
|
||||
@Override
|
||||
public AudioStream synthesize(String text, Voice voice, AudioFormat requestedFormat) throws TTSException {
|
||||
return ttsCache.get(this, text, voice, requestedFormat);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user