AbstractCachedTTSService: make synthesize method non final (#3437)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo
2023-03-08 22:57:26 +01:00
committed by GitHub
parent 07ffc11c87
commit a3a95b5bb9
@@ -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