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
|
@NonNullByDefault
|
||||||
public abstract class AbstractCachedTTSService implements CachedTTSService {
|
public abstract class AbstractCachedTTSService implements CachedTTSService {
|
||||||
|
|
||||||
private TTSCache ttsCache;
|
private final TTSCache ttsCache;
|
||||||
|
|
||||||
@Override
|
public AbstractCachedTTSService(final @Reference TTSCache ttsCache) {
|
||||||
public final AudioStream synthesize(String text, Voice voice, AudioFormat requestedFormat) throws TTSException {
|
this.ttsCache = ttsCache;
|
||||||
return ttsCache.get(this, text, voice, requestedFormat);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public AbstractCachedTTSService(@Reference TTSCache ttsCache) {
|
@Override
|
||||||
this.ttsCache = ttsCache;
|
public AudioStream synthesize(String text, Voice voice, AudioFormat requestedFormat) throws TTSException {
|
||||||
|
return ttsCache.get(this, text, voice, requestedFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user