From 8a7f5561b1652d1c080d2a7fdc823c8d4bf93b31 Mon Sep 17 00:00:00 2001 From: Kai Kreuzer Date: Tue, 13 Sep 2016 18:12:47 +0200 Subject: [PATCH] readded old TTS interface so that 1.x compiles (#62) Signed-off-by: Kai Kreuzer --- bundles/org.openhab.core.compat1x/META-INF/MANIFEST.MF | 1 + .../java/org/openhab/io/multimedia/tts/TTSService.java | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 bundles/org.openhab.core.compat1x/src/main/java/org/openhab/io/multimedia/tts/TTSService.java diff --git a/bundles/org.openhab.core.compat1x/META-INF/MANIFEST.MF b/bundles/org.openhab.core.compat1x/META-INF/MANIFEST.MF index eab23fe621..a2e658c820 100644 --- a/bundles/org.openhab.core.compat1x/META-INF/MANIFEST.MF +++ b/bundles/org.openhab.core.compat1x/META-INF/MANIFEST.MF @@ -91,6 +91,7 @@ Export-Package: org.codehaus.jackson, org.openhab.core.types, org.openhab.io.console, org.openhab.io.multimedia.actions, + org.openhab.io.multimedia.tts, org.openhab.io.net.actions, org.openhab.io.net.exec, org.openhab.io.net.http, diff --git a/bundles/org.openhab.core.compat1x/src/main/java/org/openhab/io/multimedia/tts/TTSService.java b/bundles/org.openhab.core.compat1x/src/main/java/org/openhab/io/multimedia/tts/TTSService.java new file mode 100644 index 0000000000..eaad0b2aa8 --- /dev/null +++ b/bundles/org.openhab.core.compat1x/src/main/java/org/openhab/io/multimedia/tts/TTSService.java @@ -0,0 +1,10 @@ +package org.openhab.io.multimedia.tts; + +// NOTE: This interface is only kept in order to allow openHAB 1.x TTS services to correctly compile. +// openHAB 2 is NOT compatible with these services, not even through the compatibility layer. +// Instead, ESH/openHAB2 compatible TTS services should be used. + +public interface TTSService { + + void say(String text, String voiceName, String outputDevice); +}