Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/VOICEVOX/voicevox_core into…
Browse files Browse the repository at this point in the history
… feature/resolve-conflict-from-main
  • Loading branch information
qwerty2501 committed Jul 23, 2022
2 parents 8df0774 + 50082b6 commit 605a831
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 1,136 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ directml*/

# Build artifacts
build/
test_build/
lib/
bin/
core/_core.cpp
Expand Down
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,21 @@ sudo apt install libgomp1
```

## サンプル実行

### C++ サンプルコード

* [Linux・macOS サンプルコード](./example/cpp/unix#readme)
* [Windows サンプルコード](./example/cpp/windows#readme)

### Python サンプルコード

まずOpen JTalk辞書フォルダを配置します。
http://open-jtalk.sourceforge.net/ を開き、Dictionary for Open JTalk 欄の Binary Package (UTF-8)をクリックして「open_jtalk_dic_utf_8-1.11.tar.gz」をダウンロードします。
これを展開してできた「open_jtalk_dic_utf_8-1.11」フォルダをexample/pythonに配置します。

```bash
cd example/python

# サンプルコード実行のための依存モジュールのインストール
pip install -r requirements.txt
python run.py \
--text "これは本当に実行できているんですか" \
--speaker_id 1
Expand All @@ -113,8 +123,7 @@ python run.py \
# --text 読み上げるテキスト
# --speaker_id 話者ID
# --use_gpu GPUを使う
# --f0_speaker_id 音高の話者ID(デフォルト値はspeaker_id)
# --f0_correct 音高の補正値(デフォルト値は0。+-0.3くらいで結果が大きく変わります)
# --openjtalk_dict OpenJtalk辞書フォルダへのパス
```

### その他の言語
Expand Down Expand Up @@ -148,6 +157,11 @@ cmake --build . --config Release
cmake --install .
cd ..

#(省略可能) C++のテスト実行
cmake -S . -B test_build -DBUILD_TEST=YES
cmake --build test_build
ctest --test-dir test_build --verbose

# (省略可能) pythonモジュールのテスト
python setup.py test

Expand Down
3 changes: 3 additions & 0 deletions example/python/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,6 @@ dmypy.json

# Cython debug symbols
cython_debug/

# OpenJTalk-dictionary's dir
open_jtalk_dic_utf_8-*
226 changes: 0 additions & 226 deletions example/python/acoustic_feature_extractor.py

This file was deleted.

41 changes: 0 additions & 41 deletions example/python/core.pxd

This file was deleted.

Loading

0 comments on commit 605a831

Please sign in to comment.