-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
252 changed files
with
37,983 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test/**/__snapshots__/**/*.json linguist-generated=true | ||
|
||
* text=auto | ||
*.png -text | ||
*.wav -text |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @VOICEVOX/maintainer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: Bug Report | ||
about: 不具合の報告 | ||
labels: バグ | ||
--- | ||
|
||
## 不具合の内容 | ||
|
||
<!-- 概要はここに記載してください --> | ||
|
||
### 現象・ログ | ||
|
||
<!-- ここに記載してください --> | ||
|
||
### 再現手順 | ||
|
||
<!-- 最小の構成でできると、なおよい --> | ||
|
||
### 期待動作 | ||
|
||
<!-- 正しいと思う動作が明確であれば記載してください --> | ||
|
||
## VOICEVOXのバージョン | ||
|
||
0.?.0 | ||
|
||
<!-- "ヘルプ" → "アップデート情報" で確認できます --> | ||
|
||
## OSの種類/ディストリ/バージョン | ||
|
||
<!-- チェックするには [ ] を [x] に変更してください --> | ||
|
||
- [ ] Windows | ||
- [ ] macOS | ||
- [ ] Linux | ||
|
||
<!-- | ||
なるべく詳しく書いてください 記述例: | ||
* Windows 10 Pro 64bit (10.0.10586) | ||
* macOS Sierra | ||
* Linux fedora 23 64bit | ||
* Others | ||
--> | ||
|
||
## その他 | ||
|
||
<!-- 関連して何か気がついたこと、気になることがあればココに書いてください --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
name: Feature Request | ||
about: 機能要望・改善提案 | ||
labels: 機能向上 | ||
--- | ||
|
||
## 内容 | ||
|
||
<!-- ここに要望する機能を記載してください --> | ||
<!-- その機能が必要な理由や、具体例も --> | ||
|
||
### Pros 良くなる点 | ||
|
||
<!-- 改善される状態など --> | ||
|
||
### Cons 悪くなる点 | ||
|
||
<!-- ないことが望ましいが、もしあるなら --> | ||
|
||
### 実現方法 | ||
|
||
<!-- 実現方法について検討済みであるなら --> | ||
|
||
## VOICEVOXのバージョン | ||
|
||
0.?.0 | ||
|
||
<!-- "ヘルプ" → "アップデート情報" で確認できます --> | ||
|
||
## OSの種類/ディストリ/バージョン | ||
|
||
<!-- チェックするには [ ] を [x] に変更してください --> | ||
|
||
- [ ] Windows | ||
- [ ] macOS | ||
- [ ] Linux | ||
|
||
<!-- | ||
なるべく詳しく書いてください 記述例: | ||
* Windows 10 Pro 64bit (10.0.10586) | ||
* macOS Sierra | ||
* Linux fedora 23 64bit | ||
* Others | ||
--> | ||
|
||
## その他 | ||
|
||
<!-- 関連して何か気がついたこと、気になることがあればココに書いてください --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
name: Question | ||
about: 質問 (既存のIssueや一般事例を良く調べてからしてください) | ||
labels: 要議論 | ||
--- | ||
|
||
## 質問の内容 | ||
|
||
<!-- ここに記載してください --> | ||
|
||
## VOICEVOXのバージョン | ||
|
||
0.?.0 | ||
|
||
<!-- "ヘルプ" → "アップデート情報" で確認できます --> | ||
|
||
## OSの種類/ディストリ/バージョン | ||
|
||
<!-- チェックするには [ ] を [x] に変更してください --> | ||
|
||
- [ ] Windows | ||
- [ ] macOS | ||
- [ ] Linux | ||
|
||
<!-- | ||
なるべく詳しく書いてください 記述例: | ||
* Windows 10 Pro 64bit (10.0.10586) | ||
* macOS Sierra | ||
* Linux fedora 23 64bit | ||
* Others | ||
--> | ||
|
||
## その他 | ||
|
||
<!-- 関連して何か気がついたこと、気になることがあればココに書いてください --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## 内容 | ||
|
||
<!-- | ||
プルリクエストの内容説明を端的に記載してください。 | ||
--> | ||
|
||
## 関連 Issue | ||
|
||
<!-- | ||
関連するIssue番号を記載してください。 | ||
番号の前に"close"を書くと自動的にIssueが閉じられます。 | ||
(例) | ||
ref #0 | ||
close #0 | ||
--> | ||
|
||
## スクリーンショット・動画など | ||
|
||
<!-- | ||
UIを変更した際は、変更がわかるような動画・スクリーンショットがあると助かります。 | ||
--> | ||
|
||
## その他 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
'OS:mac': | ||
- '\[x\] macOS' | ||
'OS:linux': | ||
- '\[x\] Linux' | ||
'OS:win': | ||
- '\[x\] Windows' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
name: build-docker | ||
on: | ||
push: | ||
branches: | ||
- master | ||
release: | ||
types: | ||
- created | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "バージョン情報(A.BB.C / A.BB.C-preview.D)" | ||
required: true | ||
|
||
env: | ||
IMAGE_NAME: ${{ vars.DOCKERHUB_USERNAME }}/voicevox_engine | ||
PYTHON_VERSION: "3.11.3" | ||
VOICEVOX_RESOURCE_VERSION: "0.18.1" | ||
VOICEVOX_CORE_VERSION: "0.15.3" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
config: # 全 jobs で利用する定数の定義. `env` が利用できないコンテキストでも利用できる. | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version_or_latest: ${{ steps.vars.outputs.version_or_latest }} | ||
steps: | ||
- name: declare variables | ||
id: vars | ||
run: | | ||
: # releaseタグ名か、workflow_dispatchでのバージョン名か、latestが入る | ||
echo "version_or_latest=${{ github.event.release.tag_name || github.event.inputs.version || 'latest' }}" >> "$GITHUB_OUTPUT" | ||
build-docker: | ||
needs: [config] | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
tag: | ||
- "" | ||
- cpu | ||
- cpu-ubuntu20.04 | ||
- nvidia | ||
- nvidia-ubuntu20.04 | ||
include: | ||
# Ubuntu 20.04 | ||
- tag: "" | ||
target: runtime-env | ||
base_image: ubuntu:20.04 | ||
base_runtime_image: ubuntu:20.04 | ||
onnxruntime_version: 1.13.1 | ||
platforms: linux/amd64,linux/arm64/v8 | ||
- tag: cpu | ||
target: runtime-env | ||
base_image: ubuntu:20.04 | ||
base_runtime_image: ubuntu:20.04 | ||
onnxruntime_version: 1.13.1 | ||
platforms: linux/amd64,linux/arm64/v8 | ||
- tag: cpu-ubuntu20.04 | ||
target: runtime-env | ||
base_image: ubuntu:20.04 | ||
base_runtime_image: ubuntu:20.04 | ||
onnxruntime_version: 1.13.1 | ||
platforms: linux/amd64,linux/arm64/v8 | ||
- tag: nvidia | ||
target: runtime-nvidia-env | ||
base_image: ubuntu:20.04 | ||
base_runtime_image: nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu20.04 | ||
onnxruntime_version: 1.13.1 | ||
platforms: linux/amd64 | ||
- tag: nvidia-ubuntu20.04 | ||
target: runtime-nvidia-env | ||
base_image: ubuntu:20.04 | ||
base_runtime_image: nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu20.04 | ||
onnxruntime_version: 1.13.1 | ||
platforms: linux/amd64 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Setup Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ vars.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
# Download VOICEVOX RESOURCE | ||
- name: Prepare VOICEVOX RESOURCE cache | ||
uses: actions/cache@v3 | ||
id: voicevox-resource-cache | ||
with: | ||
key: voicevox-resource-${{ env.VOICEVOX_RESOURCE_VERSION }} | ||
path: download/resource | ||
|
||
- name: Checkout VOICEVOX RESOURCE | ||
if: steps.voicevox-resource-cache.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: VOICEVOX/voicevox_resource | ||
ref: ${{ env.VOICEVOX_RESOURCE_VERSION }} | ||
path: download/resource | ||
|
||
# Merge VOICEVOX RESOURCE | ||
- name: Merge VOICEVOX RESOURCE | ||
env: | ||
DOWNLOAD_RESOURCE_PATH: download/resource | ||
run: bash build_util/process_voicevox_resource.bash | ||
|
||
- name: Build and Deploy Docker image | ||
uses: docker/build-push-action@v3 | ||
env: | ||
IMAGE_TAG: | ||
|- # If it's a release, add the version, otherwise add the `latest` | ||
${{ ( | ||
matrix.tag != '' && ( | ||
format('{0}:{1}-{2}', env.IMAGE_NAME, matrix.tag, needs.config.outputs.version_or_latest) | ||
) || format('{0}:{1}', env.IMAGE_NAME, needs.config.outputs.version_or_latest) | ||
) }} | ||
IMAGE_CACHE_FROM: | ||
|- # Always use the `latest` buildcache. :latest-buildcache or :{tag}-latest-buildcache | ||
${{ ( | ||
matrix.tag != '' && ( | ||
format('type=registry,ref={0}:{1}-latest-buildcache', env.IMAGE_NAME, matrix.tag) | ||
) || format('type=registry,ref={0}:latest-buildcache', env.IMAGE_NAME) | ||
) }} | ||
IMAGE_CACHE_TO: | ||
|- # If it's a release, do not create buildcache, otherwise create the `latest` buildcache. :latest-buildcache or :{tag}-latest-buildcache | ||
${{ ( | ||
needs.config.outputs.version_or_latest == 'latest' && ( | ||
matrix.tag != '' && ( | ||
format('type=registry,ref={0}:{1}-latest-buildcache,mode=max', env.IMAGE_NAME, matrix.tag) | ||
) || format('type=registry,ref={0}:latest-buildcache,mode=max', env.IMAGE_NAME) | ||
) || '' | ||
) }} | ||
with: | ||
context: . | ||
builder: ${{ steps.buildx.outputs.name }} | ||
file: ./Dockerfile | ||
build-args: | | ||
BASE_IMAGE=${{ matrix.base_image }} | ||
BASE_RUNTIME_IMAGE=${{ matrix.base_runtime_image }} | ||
PYTHON_VERSION=${{ env.PYTHON_VERSION }} | ||
VOICEVOX_ENGINE_VERSION=${{ needs.config.outputs.version_or_latest }} | ||
VOICEVOX_CORE_VERSION=${{ env.VOICEVOX_CORE_VERSION }} | ||
VOICEVOX_RESOURCE_VERSION=${{ env.VOICEVOX_RESOURCE_VERSION }} | ||
USE_GPU=${{ matrix.target == 'runtime-nvidia-env' }} | ||
ONNXRUNTIME_VERSION=${{ matrix.onnxruntime_version }} | ||
target: ${{ matrix.target }} | ||
push: true | ||
tags: ${{ env.IMAGE_TAG }} | ||
cache-from: ${{ env.IMAGE_CACHE_FROM }} | ||
cache-to: ${{ env.IMAGE_CACHE_TO }} | ||
platforms: ${{ matrix.platforms }} | ||
|
||
run-release-test-workflow: | ||
# version が指定されている場合のみ実行する | ||
if: needs.config.outputs.version_or_latest != 'latest' | ||
needs: [config, build-docker] | ||
uses: ./.github/workflows/release-test-docker.yml | ||
with: | ||
version: ${{ needs.config.outputs.version_or_latest }} | ||
repo_url: ${{ format('{0}/{1}', github.server_url, github.repository) }} # このリポジトリのURL |
Oops, something went wrong.