Skip to content

Commit

Permalink
[pipertts] Fix library load on windows (#17993)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Alvarez Diez <[email protected]>
  • Loading branch information
GiviMAD authored Dec 28, 2024
1 parent d14749b commit 3d547ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bundles/org.openhab.voice.pipertts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The add-on is compatible with the following platforms:

The add-on will download the required dependencies at first activation.

If your openHAB installation does not have access to the Internet, you need to download the [piper-jni jar file](https://repo1.maven.org/maven2/io/github/givimad/piper-jni/1.2.0-a0f09cd/piper-jni-1.2.0-a0f09cd.jar) and place it at '<OPENHAB_USERDATA>/piper/'.
If your openHAB installation does not have access to the Internet, you need to download the [piper-jni jar file](https://repo1.maven.org/maven2/io/github/givimad/piper-jni/1.2.0-c0670df/piper-jni-1.2.0-c0670df.jar) and place it at '<OPENHAB_USERDATA>/piper/'.

### Downloading Voice Model Files

Expand Down
2 changes: 1 addition & 1 deletion bundles/org.openhab.voice.pipertts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<dependency>
<groupId>io.github.givimad</groupId>
<artifactId>piper-jni</artifactId>
<version>1.2.0-a0f09cd</version>
<version>1.2.0-c0670df</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
+ " Text-to-Speech", description_uri = SERVICE_CATEGORY + ":" + SERVICE_ID)
public class PiperTTSService extends AbstractCachedTTSService {
// piper-jni version from pom.xml
private static final String PIPER_VERSION = "1.2.0-a0f09cd";
private static final String PIPER_VERSION = "1.2.0-c0670df";
private static final Path PIPER_FOLDER = Path.of(OpenHAB.getUserDataFolder(), "piper");
private static final Path LIB_FOLDER = PIPER_FOLDER.resolve("lib-" + PIPER_VERSION);
private static final Path JAR_FILE = PIPER_FOLDER.resolve("piper-jni-" + PIPER_VERSION + ".jar");
Expand Down

0 comments on commit 3d547ff

Please sign in to comment.