Skip to content

Commit

Permalink
Merge pull request #2 from umjammer/0.1.4
Browse files Browse the repository at this point in the history
0.1.4
  • Loading branch information
umjammer authored Oct 27, 2022
2 parents fcdfb20 + 4488e79 commit 8fe6572
Show file tree
Hide file tree
Showing 54 changed files with 1,056 additions and 728 deletions.
51 changes: 21 additions & 30 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,48 +15,39 @@ on:
# - cron: '0 1 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
CodeQL-Build:
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
runs-on: macos-latest

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['java', 'cpp']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
permissions:
# required for all workflows
security-events: write

# only required for workflows in private repositories
actions: read
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
languages: java

# 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 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.8
java-version: '8'
distribution: 'temurin'
cache: maven
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

Expand All @@ -77,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
15 changes: 10 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,24 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.8
java-version: '8'
distribution: 'temurin'
cache: maven
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven
env:
DOCOMO_GOO_HIRAGANA_API_KEY : ${{ secrets.DOCOMO_GOO_HIRAGANA_API_KEY }}
RECRUIT_PROOFREADING_API_KEY : ${{ secrets.RECRUIT_PROOFREADING_API_KEY }}
YAHOOJAPAN_API_KEY : ${{ secrets.YAHOOJAPAN_API_KEY }}
GOOGLE_APPLICATION_CREDENTIALS : tmp/google.json
GOOGLE_APPLICATION_CREDENTIALS : 'tmp/google.json'
GOOGLE : ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
GITHUB_TOKEN: ${{ github.token }}
run: |
mkdir tmp
echo "$GOOGLE" > tmp/google.json
mvn -B package --file pom.xml
mvn -B package --file pom.xml -s $GITHUB_WORKSPACE/settings.xml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tmp/
lib/
local.properties
src/test/resources/sudachi/sudachi-dictionary-*
40 changes: 37 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[![Release](https://jitpack.io/v/umjammer/vavi-speech.svg)](https://jitpack.io/#umjammer/vavi-speech) [![Java CI with Maven](https://github.com/umjammer/vavi-speech/workflows/Java%20CI%20with%20Maven/badge.svg)](https://github.com/umjammer/vavi-speech/actions)
[![Release](https://jitpack.io/v/umjammer/vavi-speech.svg)](https://jitpack.io/#umjammer/vavi-speech)
[![Java CI with Maven](https://github.com/umjammer/vavi-speech/workflows/Java%20CI%20with%20Maven/badge.svg)](https://github.com/umjammer/vavi-speech/actions)
[![CodeQL](https://github.com/umjammer/vavi-speech/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/umjammer/vavi-speech/actions/workflows/codeql-analysis.yml)
![Java](https://img.shields.io/badge/Java-8-b07219)

# vavi-speech

Expand All @@ -24,6 +27,9 @@ Text to Speech (JSAPI) for Java
| [YahooJapan Furigana](https://developer.yahoo.co.jp/webapi/jlp/furigana/v1/furigana.html) | Web || 😐 | 助詞(は,へ) |
| [YahooJapan MA](https://developer.yahoo.co.jp/webapi/jlp/ma/v1/parse.html) | Web | - | | |
| [Goo Furigana](https://labs.goo.ne.jp/api/jp/hiragana-translation/) | Web || 😐 | 助詞(は,へ) |
| [Rococoa](https://gist.github.com/doraTeX/3163b5aef70951ac8c541c4c77ac6293) | || 😃 | 数字+助数詞 |

selected by `aquestalk10.properties`

## Install

Expand All @@ -47,7 +53,7 @@ Text to Speech (JSAPI) for Java

* locate `librococoa.dylib` into class path
* if you use maven it's already done, you can find it at `target/test-classes`.
* ~rococoa doesn't work w/ current jna version 5.5.0, run w/ version 3.4.0~
* ~~rococoa doesn't work w/ current jna version 5.5.0, run w/ version 3.4.0~~

### Sen

Expand All @@ -63,6 +69,14 @@ $ cat src/test/resources/aquestalk10.properties
phonemer=vavi.speech.phoneme.SenJaPhonemer
```

### sudachi

```shell
$ cd vavi-speech
$ curl -o sudachi-dictionary-20210802-full.zip http://sudachi.s3-website-ap-northeast-1.amazonaws.com/sudachidict/sudachi-dictionary-20210802-full.zip
$ tar zxvf sudachi-dictionary-20210802-full.zip src/test/resources/sudachi/
```

### goo to hiragana

* register by github account
Expand Down Expand Up @@ -116,12 +130,18 @@ phonemer=vavi.speech.phoneme.SudachiJaPhonemer
* implement voices
* [watson](https://www.ibm.com/watson/jp-ja/developercloud/text-to-speech.html)
* https://github.com/festvox/festival
* voicevox

* jsapi source

* ~~auto load aques framework (jna)~~

* https://www.google.co.jp/ime/cgiapi.html

* text analytics + nicotalk character emotion

* tacotron2

### Morphological Analyzer

* https://mocobeta.github.io/janome/
Expand All @@ -144,4 +164,18 @@ phonemer=vavi.speech.phoneme.SudachiJaPhonemer
### Kanji -> Kana

* chawan (lost in the internet)
* open jtalk njd*
* [open jtalk](https://github.com/r9y9/open_jtalk) njd*
* http://kakasi.namazu.org/index.html.ja
* https://github.com/nicolas-raoul/kakasi-java
* https://github.com/nicolas-raoul/jakaroma
* ~~[mac cocoa](https://gist.github.com/doraTeX/3163b5aef70951ac8c541c4c77ac6293)~~ (done)
* unidic

#### Romaji -> Kana

* https://icu.unicode.org/home
* https://github.com/andree-surya/moji4j

#### Proofreading

* https://developer.yahoo.co.jp/webapi/jlp/kousei/v2/kousei.html
2 changes: 2 additions & 0 deletions local.properties.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# vavi-speech
#

sudachi.dir=/Users/you/src/vavi-speech/src/test/resources/sudachi

sen.home=/usr/local/src/sen-1.2.2.1

aquesTalk10DevKey=XXXX-XXXX-XXXX-XXXX
Expand Down
Loading

0 comments on commit 8fe6572

Please sign in to comment.