Skip to content

Commit

Permalink
Merge pull request #22 from umjammer/0.0.19
Browse files Browse the repository at this point in the history
0.0.19
  • Loading branch information
umjammer authored Dec 14, 2024
2 parents e71be0f + b5c66c4 commit 49fd015
Show file tree
Hide file tree
Showing 32 changed files with 1,010 additions and 185 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
cache: maven
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
if: ${{ contains(github.event.head_commit.message, 'bump version') }}
run: grep "<version>" pom.xml | head -1 | grep -v SNAPSHOT

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
cache: maven
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
Expand Down
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Release](https://jitpack.io/v/umjammer/vavi-speech2.svg)](https://jitpack.io/#umjammer/vavi-speech2)
[![Java CI](https://github.com/umjammer/vavi-speech2/actions/workflows/maven.yml/badge.svg)](https://github.com/umjammer/vavi-speech2/actions/workflows/maven.yml)
[![CodeQL](https://github.com/umjammer/vavi-speech2/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/umjammer/vavi-speech2/actions/workflows/codeql-analysis.yml)
![Java](https://img.shields.io/badge/Java-17-b07219)
![Java](https://img.shields.io/badge/Java-21-b07219)

# vavi-speech2

Expand All @@ -10,14 +10,15 @@
Text to Speech and Speech to Text (JSAPI2) engines for Java

| **Type** | **Description** | **Sythesizer** | **Recognizer** | **Quality** | **Comment** |
|:----------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------:|:--------------:|:-----------:|:------------|
| AquesTalk10 | [AquesTalk](https://www.a-quest.com/products/aquestalk.html), JNA || - | 😐 | ゆっくり |
| Google Cloud Text To Speech | [Google Cloud Text To Speech](https://cloud.google.com/text-to-speech/docs/quickstart-client-libraries), Library || 🚧 | 👑 | |
| Cocoa | [Rococoa](https://github.com/iterate-ch/rococoa/blob/d5fdd3b884d5f044bc0b168aff66e5f52a014da8/rococoa/rococoa-contrib/src/test/java/org/rococoa/contrib/appkit/NSSpeechSynthesizerTest.java), JNA || 🚫 | 😃 | |
| Open JTalk | [jtalkdll](https://github.com/rosmarinus/jtalkdll), JNA || - | 💩 | |
| VoiceVox | [VOICEVOX](https://voicevox.hiroshiba.jp/), REST || - | 😃 | ずんだもん |
| CoeiroInk | [CoeiroInk](https://coeiroink.com/), REST || - | 😃 | つくよみちゃん |
| Gyutan (Open JTalk in Java) | [Gyutan](https://github.com/umjammer/Gyutan), Library || - | 💩 | |
|:----------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------:|:--------------:|:-----------:|:------------|
| AquesTalk10 | [AquesTalk](https://www.a-quest.com/products/aquestalk.html), JNA || - | 😐 | ゆっくり |
| Google Cloud Text To Speech | [Google Cloud Text To Speech](https://cloud.google.com/text-to-speech/docs/quickstart-client-libraries), Library || 🚧 | 👑 | |
| Cocoa | [Rococoa](https://github.com/iterate-ch/rococoa/blob/d5fdd3b884d5f044bc0b168aff66e5f52a014da8/rococoa/rococoa-contrib/src/test/java/org/rococoa/contrib/appkit/NSSpeechSynthesizerTest.java), JNA || 🚫 | 😃 | |
| Open JTalk | [jtalkdll](https://github.com/rosmarinus/jtalkdll), JNA || - | 💩 | |
| VoiceVox | [VOICEVOX](https://voicevox.hiroshiba.jp/), REST || - | 😃 | ずんだもん |
| CoeiroInk | [CoeiroInk](https://coeiroink.com/), REST || - | 😃 | つくよみちゃん |
| Gyutan (Open JTalk in Java) | [Gyutan](https://github.com/umjammer/Gyutan), Library || - | 💩 | |
| AivisSpeech | [Aivis Project](https://aivis-project.com/), REST || - | 👑 | |

## Install

Expand Down Expand Up @@ -55,6 +56,11 @@ Text to Speech and Speech to Text (JSAPI2) engines for Java

* https://agentcraft.sebastien.ai/

### AivisSpeech

* [download](https://aivis-project.com/) the application
* run the application before using this library

## Usage

### user
Expand Down Expand Up @@ -99,4 +105,4 @@ Text to Speech and Speech to Text (JSAPI2) engines for Java
* ~~rcp client/server (wip)~~ -> [vavi-speech-rpc](https://github.com/umjammer/vavi-speech-rpc)

---
<sub>images by <a href="https://commons.nicovideo.jp/works/nc327182">霊夢</a>, <a href="https://commons.nicovideo.jp/works/nc327184">魔理沙</a>, <a href="https://seiga.nicovideo.jp/seiga/im10865385">ずんだもん</a></sub>
<sub>images by <a href="https://commons.nicovideo.jp/works/nc327182">霊夢</a>, <a href="https://commons.nicovideo.jp/works/nc327184">魔理沙</a>, <a href="https://seiga.nicovideo.jp/seiga/im10865385">ずんだもん</a></sub>
2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
jdk:
- openjdk17
- openjdk21
69 changes: 26 additions & 43 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,23 @@
<jsapi2.groupId>com.github.umjammer.jsapi2</jsapi2.groupId> <!-- org.jvoicexml / com.github.umjammer.jsapi2 -->
<jsapi2.version>0.6.10</jsapi2.version>

<jersey.version>3.1.5</jersey.version>
<jersey.version>3.1.7</jersey.version>
</properties>

<profiles>
<profile>
<id>local (not on CI)</id>
<id>local</id>
<activation>
<file>
<exists>${basedir}/local.properties</exists>
</file>
<property>
<name>env.JITPACK</name>
<value>!true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.1.0</version>
<version>1.2.1</version>
<executions>
<execution>
<id>read-properties</id>
Expand All @@ -64,23 +60,21 @@
<!-- don't touch: this works well on github actions -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.2</version>
<version>3.2.5</version>
<configuration>
<reuseForks>false</reuseForks>
<trimStackTrace>false</trimStackTrace>
<systemProperties>
<sen.home>${sen.home}</sen.home>
<vavi.speech.voicevox.url>${voicevox.url}</vavi.speech.voicevox.url>
<htsvoice.dir>${htsvoice.dir}</htsvoice.dir>
</systemProperties>
<environmentVariables>
<GOOGLE_APPLICATION_CREDENTIALS>${google.credential}</GOOGLE_APPLICATION_CREDENTIALS>
<DOCOMO_GOO_HIRAGANA_API_KEY>${docomo.goo.hiragana.apiKey}</DOCOMO_GOO_HIRAGANA_API_KEY>
<YAHOOJAPAN_API_KEY>${yahoo.japan.apiKey}</YAHOOJAPAN_API_KEY>
</environmentVariables>
<argLine>
-Djava.util.logging.config.file=${project.build.testOutputDirectory}/logging.properties
-Dvavi.util.logging.VaviFormatter.extraClassMethod=sun\\.util\\.logging\\.internal\\.LoggingProviderImpl.*r#log
-Dvavi.util.logging.VaviFormatter.extraClassMethod=sun\.util\.logging\.internal\.LoggingProviderImpl.*r#log
-Dsen.home=@{sen.home}
-Dvavi.speech.voicevox.url=@{voicevox.url}
-Dhtsvoice.dir=@{htsvoice.dir}
</argLine>
<includes>
<include>**/*Test_*.java</include>
Expand Down Expand Up @@ -164,9 +158,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<version>3.12.1</version>
<configuration>
<release>17</release>
<release>21</release>
</configuration>
</plugin>
</plugins>
Expand All @@ -177,27 +171,22 @@
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<repository>
<id>maven_central</id>
<name>Maven Central</name>
<url>https://repo.maven.apache.org/maven2/</url>
</repository>
</repositories>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.13.0</version>
<version>26.43.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.10.2</version>
<version>5.10.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -223,11 +212,20 @@
<version>0.8.13</version>
</dependency>

<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-speech</artifactId>
</dependency>

<dependency>
<groupId>com.github.umjammer</groupId> <!-- vavi / com.github.umjammer -->
<artifactId>vavi-speech</artifactId>
<version>0.1.12</version>
<version>0.1.13</version>
<exclusions>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
<exclusion>
<groupId>com.github.umjammer</groupId>
<artifactId>javax-speech</artifactId>
Expand All @@ -236,29 +234,14 @@
<groupId>com.github.umjammer.FreeTTS</groupId>
<artifactId>freetts-jsapi10</artifactId>
</exclusion>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
<version>33.1.0-jre</version>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.25.5</version>
</dependency>

<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-speech</artifactId>
<exclusions>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
Expand Down Expand Up @@ -300,7 +283,7 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>2.0.13</version>
<version>2.0.16</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/vavi/speech/BaseEnginFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ protected EngineList createEngineListForSynthesizer(EngineMode require) {
try {
voices = geAlltVoices();
} catch (Throwable t) {
logger.log(Level.WARNING, t.getMessage(), t);
logger.log(Level.WARNING, t.getMessage());
logger.log(Level.TRACE, t.getMessage(), t);
}
if (voices == null)
voices = Collections.emptyList();
Expand Down
Loading

0 comments on commit 49fd015

Please sign in to comment.