From 648db7e85548520ff50ca730d4b01541d35eda89 Mon Sep 17 00:00:00 2001 From: "kevin.zhang" Date: Thu, 9 May 2024 15:39:18 +0800 Subject: [PATCH] chore: more voices --- Dockerfile | 5 +---- GPT_SoVITS/configs/voices/jack.yaml | 14 ++++++++++++++ GPT_SoVITS/configs/voices/liyunlong.yaml | 14 ++++++++++++++ GPT_SoVITS/configs/voices/morgan.yaml | 14 ++++++++++++++ test.py | 22 ++++++++++++++++++++++ 5 files changed, 65 insertions(+), 4 deletions(-) create mode 100644 GPT_SoVITS/configs/voices/jack.yaml create mode 100644 GPT_SoVITS/configs/voices/liyunlong.yaml create mode 100644 GPT_SoVITS/configs/voices/morgan.yaml create mode 100644 test.py diff --git a/Dockerfile b/Dockerfile index 74e282c4..0148729e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,12 +34,9 @@ RUN if [ "$IMAGE_TYPE" != "elite" ]; then \ fi -# Copy the rest of the application -COPY . /workspace - # Copy the rest of the application COPY . /workspace EXPOSE 9871 9872 9873 9874 9880 -CMD ["python", "webui.py"] +CMD ["python", "api_v3.py"] diff --git a/GPT_SoVITS/configs/voices/jack.yaml b/GPT_SoVITS/configs/voices/jack.yaml new file mode 100644 index 00000000..f7432a8f --- /dev/null +++ b/GPT_SoVITS/configs/voices/jack.yaml @@ -0,0 +1,14 @@ +custom: + bert_base_path: GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large + cnhuhbert_base_path: GPT_SoVITS/pretrained_models/chinese-hubert-base + device: cpu + is_half: false + t2s_weights_path: GPT_weights/jackma-e10.ckpt + vits_weights_path: SoVITS_weights/jackma_e8_s192.pth +default: + bert_base_path: GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large + cnhuhbert_base_path: GPT_SoVITS/pretrained_models/chinese-hubert-base + device: cpu + is_half: false + t2s_weights_path: GPT_SoVITS/pretrained_models/s1bert25hz-2kh-longer-epoch=68e-step=50232.ckpt + vits_weights_path: GPT_SoVITS/pretrained_models/s2G488k.pth diff --git a/GPT_SoVITS/configs/voices/liyunlong.yaml b/GPT_SoVITS/configs/voices/liyunlong.yaml new file mode 100644 index 00000000..c5a9c081 --- /dev/null +++ b/GPT_SoVITS/configs/voices/liyunlong.yaml @@ -0,0 +1,14 @@ +custom: + bert_base_path: GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large + cnhuhbert_base_path: GPT_SoVITS/pretrained_models/chinese-hubert-base + device: cpu + is_half: false + t2s_weights_path: GPT_weights/liyunlong-e15.ckpt + vits_weights_path: SoVITS_weights/liyunlong_e8_s176.pth +default: + bert_base_path: GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large + cnhuhbert_base_path: GPT_SoVITS/pretrained_models/chinese-hubert-base + device: cpu + is_half: false + t2s_weights_path: GPT_SoVITS/pretrained_models/s1bert25hz-2kh-longer-epoch=68e-step=50232.ckpt + vits_weights_path: GPT_SoVITS/pretrained_models/s2G488k.pth diff --git a/GPT_SoVITS/configs/voices/morgan.yaml b/GPT_SoVITS/configs/voices/morgan.yaml new file mode 100644 index 00000000..93b287a6 --- /dev/null +++ b/GPT_SoVITS/configs/voices/morgan.yaml @@ -0,0 +1,14 @@ +custom: + bert_base_path: GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large + cnhuhbert_base_path: GPT_SoVITS/pretrained_models/chinese-hubert-base + device: cpu + is_half: false + t2s_weights_path: GPT_weights/morgan-e15.ckpt + vits_weights_path: SoVITS_weights/morgan_e8_s120.pth +default: + bert_base_path: GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large + cnhuhbert_base_path: GPT_SoVITS/pretrained_models/chinese-hubert-base + device: cpu + is_half: false + t2s_weights_path: GPT_SoVITS/pretrained_models/s1bert25hz-2kh-longer-epoch=68e-step=50232.ckpt + vits_weights_path: GPT_SoVITS/pretrained_models/s2G488k.pth diff --git a/test.py b/test.py new file mode 100644 index 00000000..8c810d42 --- /dev/null +++ b/test.py @@ -0,0 +1,22 @@ +import os + + +def get_voices_yaml(directory): + try: + with os.scandir(directory) as entries: + for entry in entries: + if entry.is_file(): + print(entry.path) + except FileNotFoundError: + print("Directory not found") + except PermissionError: + print("Permission denied") + except Exception as e: + print(f"An error occurred: {e}") + + +# Specify the path to the directory +directory_path = 'GPT_SoVITS/configs/voices' + +# Call the function +get_voices_yaml(directory_path)