From 118802a98cac6398afb8482c3933cc67b872e8fe Mon Sep 17 00:00:00 2001 From: Yuto Ashida Date: Sun, 28 Nov 2021 01:10:48 -0800 Subject: [PATCH] =?UTF-8?q?[HOTFIX]=20Python=E3=83=90=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=81=AE=E3=82=A2=E3=83=83=E3=83=97=E3=83=87?= =?UTF-8?q?=E3=83=BC=E3=83=88=E3=81=A8pyworld=E3=81=AElazy=20import?= =?UTF-8?q?=E3=81=AErevert=20(#204)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Revert "pyworld を 必要なAPIでのみインポートするように (#203)" This reverts commit 8465e984b207c9d9acb1f2bb2798c2a28fb2fdfb. * update to python 3.8 * update python version --- .github/workflows/build.yml | 6 +++--- Dockerfile | 2 +- run.py | 5 +---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9e863a246..3b6b6d047 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: matrix: include: - os: [macos-11] - python: '3.7' + python: '3.8' python_architecture: 'x64' pip_cache_path: ~/Library/Caches/pip voicevox_resource_version: '0.9.2' @@ -408,7 +408,7 @@ jobs: include: # Windows CPU - os: windows-2019 - python: '3.7' + python: '3.8' python_architecture: 'x64' voicevox_resource_version: '0.9.2' voicevox_core_version: '0.9.0' @@ -421,7 +421,7 @@ jobs: pip_cache_path: ~\AppData\Local\pip\Cache # Windows NVIDIA GPU - os: windows-2019 - python: '3.7' + python: '3.8' python_architecture: 'x64' voicevox_resource_version: '0.9.2' voicevox_core_version: '0.9.0' diff --git a/Dockerfile b/Dockerfile index 336697162..367fdf604 100644 --- a/Dockerfile +++ b/Dockerfile @@ -145,7 +145,7 @@ RUN < List[AccentPhrase]: def synthesis_world_params( query: AudioQuery, base_speaker: int, target_speaker: int ): - import pyworld as pw - base_wave = engine.synthesis(query=query, speaker_id=base_speaker).astype( "float" ) @@ -405,8 +404,6 @@ def synthesis_morphing( モーフィングの割合は`morph_rate`で指定でき、0.0でベースの話者、1.0でターゲットの話者に近づきます。 """ - import pyworld as pw - if morph_rate < 0.0 or morph_rate > 1.0: raise HTTPException( status_code=422, detail="morph_rateは0.0から1.0の範囲で指定してください"