From 89630c21d694e0a72305b0a0bda03484523efa1c Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Thu, 14 Nov 2024 15:11:28 +0800 Subject: [PATCH 01/22] =?UTF-8?q?=E5=B0=88=E6=A1=88=E6=94=B9=E7=94=A8ka-t?= =?UTF-8?q?=C4=AB=20=C3=AA=E5=B0=88=E6=A1=88=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 02f34d0..1618f40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ -FROM registry.hf.space/formospeech-formosan-asr:latest +FROM registry.hf.space/ithuan-formosan-asr:latest -COPY app.py DEMO.md ./ \ No newline at end of file +COPY app.py DEMO.md ./ From d5d41eabdeaaf9c7ab02314e4cd8f135ffa33c42 Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Thu, 14 Nov 2024 15:14:46 +0800 Subject: [PATCH 02/22] =?UTF-8?q?ASR=E7=94=A8ka-t=C4=AB=20=C3=AA=E8=AE=8A?= =?UTF-8?q?=E6=95=B8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 2 +- deploy/.env.template | 2 +- docker-compose.yml | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 91ed902..548f472 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,6 +54,6 @@ jobs: --extra-vars "DEPLOY_HOST=${DEPLOY_HOST}" --extra-vars "DEPLOY_HOST_USER=${DEPLOY_HOST_USER}" --extra-vars "TRAVIS_TSUKI_SSH_KEY_PATH=${TRAVIS_TSUKI_SSH_KEY_PATH}" - --extra-vars "VIRTUAL_HOST=${VIRTUAL_HOST}" + --extra-vars "ASR_VIRTUAL_HOST=${ASR_VIRTUAL_HOST}" --extra-vars "SENTRY_DSN=${SENTRY_DSN}" ' diff --git a/deploy/.env.template b/deploy/.env.template index fd0fd25..d50b09d 100644 --- a/deploy/.env.template +++ b/deploy/.env.template @@ -1,5 +1,5 @@ # 線頂機專案網域名。若按算tī開發機試,就設定做`localhost`。 -VIRTUAL_HOST={{ VIRTUAL_HOST }} +ASR_VIRTUAL_HOST={{ ASR_VIRTUAL_HOST }} # Sentry監控事件 ## 登入Sentry,到本專案 > Settings > Client Keys(DSN) diff --git a/docker-compose.yml b/docker-compose.yml index d1bbf33..9aad75c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,11 +15,10 @@ services: count: all capabilities: [gpu] networks: - - default - nginx-bridge environment: - - VIRTUAL_HOST=${VIRTUAL_HOST:-sapolita.ithuan.tw} - - LETSENCRYPT_HOST=${VIRTUAL_HOST:-sapolita.ithuan.tw} + - VIRTUAL_HOST=${ASR_VIRTUAL_HOST:-sapolita.ithuan.tw} + - LETSENCRYPT_HOST=${ASR_VIRTUAL_HOST:-sapolita.ithuan.tw} - LETSENCRYPT_EMAIL=ithuan@ithuan.tw restart: always From 1ff76e5e3f3f19b8a14cfc5c61df5ebe680adb67 Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Thu, 14 Nov 2024 15:17:36 +0800 Subject: [PATCH 03/22] =?UTF-8?q?=E8=A3=9C=E5=90=88=E6=88=90=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 1 + deploy/.env.template | 1 + docker-compose.yml | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+) diff --git a/.travis.yml b/.travis.yml index 548f472..6b711a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,5 +55,6 @@ jobs: --extra-vars "DEPLOY_HOST_USER=${DEPLOY_HOST_USER}" --extra-vars "TRAVIS_TSUKI_SSH_KEY_PATH=${TRAVIS_TSUKI_SSH_KEY_PATH}" --extra-vars "ASR_VIRTUAL_HOST=${ASR_VIRTUAL_HOST}" + --extra-vars "TTS_VIRTUAL_HOST=${TTS_VIRTUAL_HOST}" --extra-vars "SENTRY_DSN=${SENTRY_DSN}" ' diff --git a/deploy/.env.template b/deploy/.env.template index d50b09d..123ddc3 100644 --- a/deploy/.env.template +++ b/deploy/.env.template @@ -1,5 +1,6 @@ # 線頂機專案網域名。若按算tī開發機試,就設定做`localhost`。 ASR_VIRTUAL_HOST={{ ASR_VIRTUAL_HOST }} +TTS_VIRTUAL_HOST={{ TTS_VIRTUAL_HOST }} # Sentry監控事件 ## 登入Sentry,到本專案 > Settings > Client Keys(DSN) diff --git a/docker-compose.yml b/docker-compose.yml index 9aad75c..eb089e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,6 +21,27 @@ services: - LETSENCRYPT_HOST=${ASR_VIRTUAL_HOST:-sapolita.ithuan.tw} - LETSENCRYPT_EMAIL=ithuan@ithuan.tw restart: always + tts: + build: ./ + command: python app.py + expose: + - 7860 + volumes: + - "./tts_model_cache:/home/user/.cache:rw" + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] + networks: + - nginx-bridge + environment: + - VIRTUAL_HOST=${TTS_VIRTUAL_HOST:-hnang-kari-ai-asi-sluhay.ithuan.tw} + - LETSENCRYPT_HOST=${TTS_VIRTUAL_HOST:-hnang-kari-ai-asi-sluhay.ithuan.tw} + - LETSENCRYPT_EMAIL=ithuan@ithuan.tw + restart: always networks: nginx-bridge: From c0f8d7013b02a32a4f3e83cad5e9933860ec2f8e Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Thu, 14 Nov 2024 15:19:10 +0800 Subject: [PATCH 04/22] =?UTF-8?q?asr=E6=AA=94=E6=A1=88ka-t=C4=AB=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DEMO.md => asr/DEMO.md | 0 Dockerfile => asr/Dockerfile | 0 app.py => asr/app.py | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename DEMO.md => asr/DEMO.md (100%) rename Dockerfile => asr/Dockerfile (100%) rename app.py => asr/app.py (100%) diff --git a/DEMO.md b/asr/DEMO.md similarity index 100% rename from DEMO.md rename to asr/DEMO.md diff --git a/Dockerfile b/asr/Dockerfile similarity index 100% rename from Dockerfile rename to asr/Dockerfile diff --git a/app.py b/asr/app.py similarity index 100% rename from app.py rename to asr/app.py From 1cde7ab24c7a1f3ba36b5a32bb90ad5acedae0a7 Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Thu, 14 Nov 2024 15:20:17 +0800 Subject: [PATCH 05/22] =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E6=AA=94=E6=94=8F?= =?UTF-8?q?=E6=90=AC=E5=8E=BBdockerfile=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asr/Dockerfile | 3 +++ docker-compose.yml | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/asr/Dockerfile b/asr/Dockerfile index 1618f40..a01fbf8 100644 --- a/asr/Dockerfile +++ b/asr/Dockerfile @@ -1,3 +1,6 @@ FROM registry.hf.space/ithuan-formosan-asr:latest COPY app.py DEMO.md ./ + +EXPOSE 7860 +CMD ["python", "app.py"] diff --git a/docker-compose.yml b/docker-compose.yml index eb089e5..ab4c7c2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,7 @@ --- services: asr: - build: ./ - command: python app.py - expose: - - 7860 + build: ./asr/ volumes: - "./model_cache:/home/user/.cache:rw" deploy: From ca7b3cfba0f88edacaba69350fef868f2754c1a4 Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Thu, 14 Nov 2024 15:23:12 +0800 Subject: [PATCH 06/22] =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E5=90=88=E6=88=90?= =?UTF-8?q?=E6=AA=94=E6=A1=88=E7=B0=BF=E4=BB=94=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/deploy.yaml | 9 +++++++-- docker-compose.yml | 7 ++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/deploy/deploy.yaml b/deploy/deploy.yaml index 9b4ae3a..f69b529 100644 --- a/deploy/deploy.yaml +++ b/deploy/deploy.yaml @@ -21,9 +21,14 @@ ansible.builtin.template: src: .env.template dest: "{{ tsuanan_path }}/.env" - - name: 設定model_cache檔案簿仔 + - name: 設定辨識model_cache檔案簿仔 ansible.builtin.file: - path: "{{ tsuanan_path }}/model_cache" + path: "{{ tsuanan_path }}/asr_model_cache" + state: directory + mode: '1777' + - name: 設定合成model_cache檔案簿仔 + ansible.builtin.file: + path: "{{ tsuanan_path }}/tts_model_cache" state: directory mode: '1777' - name: 開docker compose up -d diff --git a/docker-compose.yml b/docker-compose.yml index ab4c7c2..195db87 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ services: asr: build: ./asr/ volumes: - - "./model_cache:/home/user/.cache:rw" + - "./asr_model_cache:/home/user/.cache:rw" deploy: resources: reservations: @@ -19,10 +19,7 @@ services: - LETSENCRYPT_EMAIL=ithuan@ithuan.tw restart: always tts: - build: ./ - command: python app.py - expose: - - 7860 + build: ./tts volumes: - "./tts_model_cache:/home/user/.cache:rw" deploy: From dd17bd359a170c42f28b5e061945eb3789858200 Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Thu, 14 Nov 2024 15:27:01 +0800 Subject: [PATCH 07/22] =?UTF-8?q?=E4=BF=AEmodel=5Fcache=20path=EF=BC=8C?= =?UTF-8?q?=E8=BC=83=E5=A5=BD=E7=AE=A1=E7=90=86=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- deploy/deploy.yaml | 4 ++-- docker-compose.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 934f65f..82aa5a6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ .env -model_cache/ +model_cache* diff --git a/deploy/deploy.yaml b/deploy/deploy.yaml index f69b529..fadf5c4 100644 --- a/deploy/deploy.yaml +++ b/deploy/deploy.yaml @@ -23,12 +23,12 @@ dest: "{{ tsuanan_path }}/.env" - name: 設定辨識model_cache檔案簿仔 ansible.builtin.file: - path: "{{ tsuanan_path }}/asr_model_cache" + path: "{{ tsuanan_path }}/model_cache_asr" state: directory mode: '1777' - name: 設定合成model_cache檔案簿仔 ansible.builtin.file: - path: "{{ tsuanan_path }}/tts_model_cache" + path: "{{ tsuanan_path }}/model_cache_tts" state: directory mode: '1777' - name: 開docker compose up -d diff --git a/docker-compose.yml b/docker-compose.yml index 195db87..aa228c5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ services: asr: build: ./asr/ volumes: - - "./asr_model_cache:/home/user/.cache:rw" + - "./model_cache_asr:/home/user/.cache:rw" deploy: resources: reservations: @@ -21,7 +21,7 @@ services: tts: build: ./tts volumes: - - "./tts_model_cache:/home/user/.cache:rw" + - "./model_cache_tts:/home/user/.cache:rw" deploy: resources: reservations: From 13cdf0ec974bf7b4d17ec87d51db4134db6760fd Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Thu, 14 Nov 2024 15:28:41 +0800 Subject: [PATCH 08/22] =?UTF-8?q?=E8=A3=9CTTS=20dockerfile=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 2 +- tts/Dockerfile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 tts/Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index aa228c5..988399e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,7 @@ services: - LETSENCRYPT_EMAIL=ithuan@ithuan.tw restart: always tts: - build: ./tts + build: ./tts/ volumes: - "./model_cache_tts:/home/user/.cache:rw" deploy: diff --git a/tts/Dockerfile b/tts/Dockerfile new file mode 100644 index 0000000..adb5c72 --- /dev/null +++ b/tts/Dockerfile @@ -0,0 +1,4 @@ +FROM registry.hf.space/ithuan-formosan-tts:latest + +EXPOSE 7860 +CMD ["python", "app.py"] From ad97d560b4fb5c05072ecdf68699e80b0855908a Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Thu, 14 Nov 2024 17:34:32 +0800 Subject: [PATCH 09/22] =?UTF-8?q?=E5=9B=BA=E5=AE=9Agradio=E7=89=88?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E9=96=83LocalProtocolError?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit h11._util.LocalProtocolError: Too much data for declared Content-Length - when returning dict as response, with custom status code --- tts/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tts/Dockerfile b/tts/Dockerfile index adb5c72..b64dd77 100644 --- a/tts/Dockerfile +++ b/tts/Dockerfile @@ -1,4 +1,6 @@ FROM registry.hf.space/ithuan-formosan-tts:latest +RUN pip install gradio==4.42.0 + EXPOSE 7860 CMD ["python", "app.py"] From 70e38d0c56649def2c39709bd0962d7f42841c98 Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Fri, 15 Nov 2024 10:04:05 +0800 Subject: [PATCH 10/22] =?UTF-8?q?=E7=A2=BA=E5=AE=9A4.44.1=20=C4=93-t=C3=A0?= =?UTF-8?q?ng=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tts/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tts/Dockerfile b/tts/Dockerfile index b64dd77..40981fc 100644 --- a/tts/Dockerfile +++ b/tts/Dockerfile @@ -1,6 +1,6 @@ FROM registry.hf.space/ithuan-formosan-tts:latest -RUN pip install gradio==4.42.0 +RUN pip install gradio==4.44.1 EXPOSE 7860 CMD ["python", "app.py"] From e42b227aa03dd48b7a4e889c7421c941331872af Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Fri, 15 Nov 2024 10:05:24 +0800 Subject: [PATCH 11/22] =?UTF-8?q?M=C3=A0i=20tshap=20venv.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 82aa5a6..ac03c3d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .env model_cache* +venv/ From dadd7c92be27c2a5351d5be1b09016aa918fcbf2 Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Fri, 15 Nov 2024 10:06:51 +0800 Subject: [PATCH 12/22] =?UTF-8?q?=E5=90=88=E6=88=90CD=E4=B8=8A=E7=B7=9A?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6b711a0..1392535 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ before_install: branches: only: - main - - CD-demo-md + - Ka-hapsing jobs: include: - name: Check YAML format @@ -36,7 +36,7 @@ jobs: - tox -e shellcheck - stage: deploy name: deploy - if: (type = push or type = cron) and (branch = main or branch = CD-demo-md) + if: (type = push or type = cron) and (branch = main or branch = Ka-hapsing) install: - pip install ansible before_script: From ab839cf27ecc9dcb86b3bfbfd2b744b5eb34bb7b Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Tue, 19 Nov 2024 09:47:44 +0800 Subject: [PATCH 13/22] =?UTF-8?q?=E7=94=A8=E7=B7=9A=E9=A0=82=E6=8E=92?= =?UTF-8?q?=E7=89=88=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asr/DEMO.md | 12 ------ asr/Dockerfile | 2 - asr/app.py | 112 ------------------------------------------------- 3 files changed, 126 deletions(-) delete mode 100644 asr/DEMO.md delete mode 100644 asr/app.py diff --git a/asr/DEMO.md b/asr/DEMO.md deleted file mode 100644 index ec16599..0000000 --- a/asr/DEMO.md +++ /dev/null @@ -1,12 +0,0 @@ -# 族語AI語音辨識系統 - -ILRDF Automatic-Speech-Recognition System - -## 研發團隊 - -- [李鴻欣 Hung-Shin Lee](mailto:hungshinlee@gmail.com) -- [陳力瑋 Li-Wei Chen](mailto:wayne900619@gmail.com) -- [意傳科技](https://ithuan.tw/) -- [原住民族語言研究發展基金會](https://www.ilrdf.org.tw/) - -感謝[聯和科創](https://www.104.com.tw/company/1a2x6bmu75)、[Pipalofasaran to Sowal no Pangcah/'Amis 台灣阿美族語言永續發展學會/原民會阿美族語言推動組織](https://www.facebook.com/groups/ypspt/about)、[台灣太魯閣族語言發展學會](https://qkktt.com/)、[台灣原住民族賽德克族語言文化學會](https://www.facebook.com/3S3TBL/)及族語老師們大力協助! diff --git a/asr/Dockerfile b/asr/Dockerfile index a01fbf8..b6730db 100644 --- a/asr/Dockerfile +++ b/asr/Dockerfile @@ -1,6 +1,4 @@ FROM registry.hf.space/ithuan-formosan-asr:latest -COPY app.py DEMO.md ./ - EXPOSE 7860 CMD ["python", "app.py"] diff --git a/asr/app.py b/asr/app.py deleted file mode 100644 index a9d38de..0000000 --- a/asr/app.py +++ /dev/null @@ -1,112 +0,0 @@ -import gradio as gr -import torch -from omegaconf import OmegaConf -from transformers import pipeline - -device = "cuda" if torch.cuda.is_available() else "cpu" -torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32 - - -def load_pipe(model_id: str): - return pipeline( - "automatic-speech-recognition", - model=model_id, - max_new_tokens=128, - chunk_length_s=30, - batch_size=8, - torch_dtype=torch_dtype, - device=device, - ) - - -OmegaConf.register_new_resolver("load_pipe", load_pipe) - -models_config = OmegaConf.to_object(OmegaConf.load("configs/models.yaml")) - - -def automatic_speech_recognition(model_id: str, dialect_id: str, audio_file: str): - model = models_config[model_id]["model"] - generate_kwargs = { - "task": "transcribe", - "language": "id", - "num_beams": 1, - "prompt_ids": torch.from_numpy(model.tokenizer.get_prompt_ids(dialect_id)).to( - device - ), - } - return model(audio_file, generate_kwargs=generate_kwargs)["text"].replace(f" {dialect_id}", "") - - -def when_model_selected(model_id: str): - model_config = models_config[model_id] - - dialect_drop_down_choices = [ - (k, v) for k, v in model_config["dialect_mapping"].items() - ] - - return gr.update( - choices=dialect_drop_down_choices, - value=dialect_drop_down_choices[0][1], - ) - - -demo = gr.Blocks( - title="臺灣南島語語音辨識系統", - css="@import url(https://tauhu.tw/tauhu-oo.css);", - theme=gr.themes.Default( - font=( - "tauhu-oo", - gr.themes.GoogleFont("Source Sans Pro"), - "ui-sans-serif", - "system-ui", - "sans-serif", - ) - ), -) - -with demo: - default_model_id = list(models_config.keys())[0] - model_drop_down = gr.Dropdown( - models_config.keys(), - value=default_model_id, - label="模型", - ) - - dialect_drop_down = gr.Radio( - choices=[ - (k, v) - for k, v in models_config[default_model_id]["dialect_mapping"].items() - ], - value=list(models_config[default_model_id]["dialect_mapping"].values())[0], - label="族別", - ) - - model_drop_down.input( - when_model_selected, - inputs=[model_drop_down], - outputs=[dialect_drop_down], - ) - - with open("DEMO.md") as tong: - gr.Markdown(tong.read()) - - gr.Interface( - automatic_speech_recognition, - inputs=[ - model_drop_down, - dialect_drop_down, - gr.Audio( - label="上傳或錄音", - type="filepath", - waveform_options=gr.WaveformOptions( - sample_rate=16000, - ), - ), - ], - outputs=[ - gr.Text(interactive=False, label="辨識結果"), - ], - allow_flagging="auto", - ) - -demo.launch() From 7575fc38e669119dd3a59f93d681591737d23ffd Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Thu, 21 Nov 2024 15:44:30 +0800 Subject: [PATCH 14/22] =?UTF-8?q?=E5=85=88=E5=8A=A0=E6=9C=AC=E5=BA=95model?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tts/Dockerfile | 2 ++ tts/models.yaml | 68 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 tts/models.yaml diff --git a/tts/Dockerfile b/tts/Dockerfile index 40981fc..6a549a9 100644 --- a/tts/Dockerfile +++ b/tts/Dockerfile @@ -2,5 +2,7 @@ FROM registry.hf.space/ithuan-formosan-tts:latest RUN pip install gradio==4.44.1 +COPY models.yaml configs/models.yaml + EXPOSE 7860 CMD ["python", "app.py"] diff --git a/tts/models.yaml b/tts/models.yaml new file mode 100644 index 0000000..6d15c95 --- /dev/null +++ b/tts/models.yaml @@ -0,0 +1,68 @@ +yourtts-three-denoised-gt3: + model: ${load_model:united-link/yourtts-formosan-three-denoised-gt3} + language_mapping: + 阿美: 阿美 + 賽德克: 賽德克 + 太魯閣: 太魯閣 + speaker_mapping: # display_name: id + 男/阿美/秀姑巒/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/005060_0.24-4.62.wav + 女/阿美/南勢/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/003879_0.0-5.01.wav + 男/賽德克/都達/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002414_3.1-8.38.wav + 男/賽德克/德固達雅/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/003047_13.95-17.19.wav + 女/賽德克/德鹿谷/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002443_0.0-3.66.wav + 男/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000899_19.44-23.49.wav + 女/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000771_3.3-8.22.wav + 女/阿美/秀姑巒/意傳: ithuan_ami + 女/太魯閣/意傳: ithuan_trv + +yourtts-three-denoised-finetune: + model: ${load_model:united-link/yourtts-formosan-three-denoised-finetune} + language_mapping: + 阿美: 阿美 + 賽德克: 賽德克 + 太魯閣: 太魯閣 + speaker_mapping: # display_name: id + 男/阿美/秀姑巒/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/005060_0.24-4.62.wav + 女/阿美/南勢/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/003879_0.0-5.01.wav + 男/賽德克/都達/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002414_3.1-8.38.wav + 男/賽德克/德固達雅/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/003047_13.95-17.19.wav + 女/賽德克/德鹿谷/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002443_0.0-3.66.wav + 男/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000899_19.44-23.49.wav + 女/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000771_3.3-8.22.wav + 女/阿美/秀姑巒/意傳: ithuan_ami + 女/太魯閣/意傳: ithuan_trv + +yourtts-three-denoised: + model: ${load_model:united-link/yourtts-formosan-three-denoised} + language_mapping: + 阿美: 阿美 + 賽德克: 賽德克 + 太魯閣: 太魯閣 + speaker_mapping: # display_name: id + 男/阿美/秀姑巒/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/005060_0.24-4.62.wav + 女/阿美/南勢/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/003879_0.0-5.01.wav + 男/賽德克/都達/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002414_3.1-8.38.wav + 男/賽德克/德固達雅/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/003047_13.95-17.19.wav + 女/賽德克/德鹿谷/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002443_0.0-3.66.wav + 男/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000899_19.44-23.49.wav + 女/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000771_3.3-8.22.wav + 女/阿美/秀姑巒/意傳: ithuan_ami + 女/太魯閣/意傳: ithuan_trv + +yourtts-three: + model: ${load_model:united-link/yourtts-formosan-three} + language_mapping: + 阿美: 阿美 + 賽德克: 賽德克 + 太魯閣: 太魯閣 + speaker_mapping: # display_name: id + 男: klokah_ami#wav/klokah_ami/000339_0.00-2.79.wav + 女: klokah_ami#wav/klokah_ami/000017_1.50-4.56.wav + +yourtts-ami: + model: ${load_model:united-link/yourtts-formosan-ami} + language_mapping: + 阿美: 阿美 + speaker_mapping: # display_name: id + 男: klokah_ami#wav/klokah_ami/000339_0.00-2.76.wav + 女: klokah_ami#wav/klokah_ami/000017_1.50-4.53.wav From c1a3b7b897e96d3209834c311ac73502c4e97489 Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Thu, 21 Nov 2024 15:46:29 +0800 Subject: [PATCH 15/22] =?UTF-8?q?=E7=94=A8=E4=B8=8A=E5=A5=BD=C3=AA=20finet?= =?UTF-8?q?une=E6=A8=A1=E5=9E=8B=E5=B0=B1=E5=A5=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tts/models.yaml | 52 ------------------------------------------------- 1 file changed, 52 deletions(-) diff --git a/tts/models.yaml b/tts/models.yaml index 6d15c95..e3ecd7a 100644 --- a/tts/models.yaml +++ b/tts/models.yaml @@ -1,20 +1,3 @@ -yourtts-three-denoised-gt3: - model: ${load_model:united-link/yourtts-formosan-three-denoised-gt3} - language_mapping: - 阿美: 阿美 - 賽德克: 賽德克 - 太魯閣: 太魯閣 - speaker_mapping: # display_name: id - 男/阿美/秀姑巒/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/005060_0.24-4.62.wav - 女/阿美/南勢/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/003879_0.0-5.01.wav - 男/賽德克/都達/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002414_3.1-8.38.wav - 男/賽德克/德固達雅/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/003047_13.95-17.19.wav - 女/賽德克/德鹿谷/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002443_0.0-3.66.wav - 男/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000899_19.44-23.49.wav - 女/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000771_3.3-8.22.wav - 女/阿美/秀姑巒/意傳: ithuan_ami - 女/太魯閣/意傳: ithuan_trv - yourtts-three-denoised-finetune: model: ${load_model:united-link/yourtts-formosan-three-denoised-finetune} language_mapping: @@ -31,38 +14,3 @@ yourtts-three-denoised-finetune: 女/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000771_3.3-8.22.wav 女/阿美/秀姑巒/意傳: ithuan_ami 女/太魯閣/意傳: ithuan_trv - -yourtts-three-denoised: - model: ${load_model:united-link/yourtts-formosan-three-denoised} - language_mapping: - 阿美: 阿美 - 賽德克: 賽德克 - 太魯閣: 太魯閣 - speaker_mapping: # display_name: id - 男/阿美/秀姑巒/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/005060_0.24-4.62.wav - 女/阿美/南勢/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/003879_0.0-5.01.wav - 男/賽德克/都達/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002414_3.1-8.38.wav - 男/賽德克/德固達雅/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/003047_13.95-17.19.wav - 女/賽德克/德鹿谷/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002443_0.0-3.66.wav - 男/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000899_19.44-23.49.wav - 女/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000771_3.3-8.22.wav - 女/阿美/秀姑巒/意傳: ithuan_ami - 女/太魯閣/意傳: ithuan_trv - -yourtts-three: - model: ${load_model:united-link/yourtts-formosan-three} - language_mapping: - 阿美: 阿美 - 賽德克: 賽德克 - 太魯閣: 太魯閣 - speaker_mapping: # display_name: id - 男: klokah_ami#wav/klokah_ami/000339_0.00-2.79.wav - 女: klokah_ami#wav/klokah_ami/000017_1.50-4.56.wav - -yourtts-ami: - model: ${load_model:united-link/yourtts-formosan-ami} - language_mapping: - 阿美: 阿美 - speaker_mapping: # display_name: id - 男: klokah_ami#wav/klokah_ami/000339_0.00-2.76.wav - 女: klokah_ami#wav/klokah_ami/000017_1.50-4.53.wav From 5c0722a2f743a7b679808c28fa00650620d3c81f Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Thu, 21 Nov 2024 15:54:23 +0800 Subject: [PATCH 16/22] =?UTF-8?q?=E4=BF=AEyaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tts/models.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tts/models.yaml b/tts/models.yaml index e3ecd7a..420a241 100644 --- a/tts/models.yaml +++ b/tts/models.yaml @@ -1,10 +1,11 @@ +--- yourtts-three-denoised-finetune: model: ${load_model:united-link/yourtts-formosan-three-denoised-finetune} language_mapping: 阿美: 阿美 賽德克: 賽德克 - 太魯閣: 太魯閣 - speaker_mapping: # display_name: id + 太魯閣: 太魯閣 + speaker_mapping: # display_name: id 男/阿美/秀姑巒/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/005060_0.24-4.62.wav 女/阿美/南勢/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/003879_0.0-5.01.wav 男/賽德克/都達/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002414_3.1-8.38.wav From c591e8544ac665636deccb2e9121d54cf21cbb4d Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Mon, 2 Dec 2024 10:29:42 +0800 Subject: [PATCH 17/22] =?UTF-8?q?=E5=8A=A0requirements.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tts/requirements.in | 1 + tts/requirements.txt | 1 + 2 files changed, 2 insertions(+) create mode 100644 tts/requirements.in create mode 100644 tts/requirements.txt diff --git a/tts/requirements.in b/tts/requirements.in new file mode 100644 index 0000000..25acedd --- /dev/null +++ b/tts/requirements.in @@ -0,0 +1 @@ +gradio diff --git a/tts/requirements.txt b/tts/requirements.txt new file mode 100644 index 0000000..9384683 --- /dev/null +++ b/tts/requirements.txt @@ -0,0 +1 @@ +gradio==4.44.1 From 26c163b4e2dec15b1ffba4ee4a253dba1caa1a12 Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Mon, 2 Dec 2024 10:30:35 +0800 Subject: [PATCH 18/22] =?UTF-8?q?=E6=94=B9requirements.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tts/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tts/Dockerfile b/tts/Dockerfile index 6a549a9..074954e 100644 --- a/tts/Dockerfile +++ b/tts/Dockerfile @@ -1,6 +1,7 @@ FROM registry.hf.space/ithuan-formosan-tts:latest -RUN pip install gradio==4.44.1 +COPY requirements.txt ./ +RUN pip install -r requirements.txt COPY models.yaml configs/models.yaml From 81984a7f5c93ee41213ff719a06626534c5850cb Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Mon, 2 Dec 2024 10:34:09 +0800 Subject: [PATCH 19/22] =?UTF-8?q?=E7=94=A8pip-compile=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E5=A5=97=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tts/requirements.txt | 170 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 170 insertions(+) diff --git a/tts/requirements.txt b/tts/requirements.txt index 9384683..ff101ab 100644 --- a/tts/requirements.txt +++ b/tts/requirements.txt @@ -1 +1,171 @@ +# +# This file is autogenerated by pip-compile with Python 3.10 +# by the following command: +# +# pip-compile +# +aiofiles==23.2.1 + # via gradio +annotated-types==0.7.0 + # via pydantic +anyio==4.6.2.post1 + # via + # gradio + # httpx + # starlette +certifi==2024.8.30 + # via + # httpcore + # httpx + # requests +charset-normalizer==3.4.0 + # via requests +click==8.1.7 + # via + # typer + # uvicorn +contourpy==1.3.1 + # via matplotlib +cycler==0.12.1 + # via matplotlib +exceptiongroup==1.2.2 + # via anyio +fastapi==0.115.5 + # via gradio +ffmpy==0.4.0 + # via gradio +filelock==3.16.1 + # via huggingface-hub +fonttools==4.55.0 + # via matplotlib +fsspec==2024.10.0 + # via + # gradio-client + # huggingface-hub gradio==4.44.1 + # via -r requirements.in +gradio-client==1.3.0 + # via gradio +h11==0.14.0 + # via + # httpcore + # uvicorn +httpcore==1.0.7 + # via httpx +httpx==0.28.0 + # via + # gradio + # gradio-client +huggingface-hub==0.26.3 + # via + # gradio + # gradio-client +idna==3.10 + # via + # anyio + # httpx + # requests +importlib-resources==6.4.5 + # via gradio +jinja2==3.1.4 + # via gradio +kiwisolver==1.4.7 + # via matplotlib +markdown-it-py==3.0.0 + # via rich +markupsafe==2.1.5 + # via + # gradio + # jinja2 +matplotlib==3.9.3 + # via gradio +mdurl==0.1.2 + # via markdown-it-py +numpy==2.1.3 + # via + # contourpy + # gradio + # matplotlib + # pandas +orjson==3.10.12 + # via gradio +packaging==24.2 + # via + # gradio + # gradio-client + # huggingface-hub + # matplotlib +pandas==2.2.3 + # via gradio +pillow==10.4.0 + # via + # gradio + # matplotlib +pydantic==2.10.2 + # via + # fastapi + # gradio +pydantic-core==2.27.1 + # via pydantic +pydub==0.25.1 + # via gradio +pygments==2.18.0 + # via rich +pyparsing==3.2.0 + # via matplotlib +python-dateutil==2.9.0.post0 + # via + # matplotlib + # pandas +python-multipart==0.0.19 + # via gradio +pytz==2024.2 + # via pandas +pyyaml==6.0.2 + # via + # gradio + # huggingface-hub +requests==2.32.3 + # via huggingface-hub +rich==13.9.4 + # via typer +ruff==0.8.1 + # via gradio +semantic-version==2.10.0 + # via gradio +shellingham==1.5.4 + # via typer +six==1.16.0 + # via python-dateutil +sniffio==1.3.1 + # via anyio +starlette==0.41.3 + # via fastapi +tomlkit==0.12.0 + # via gradio +tqdm==4.67.1 + # via huggingface-hub +typer==0.14.0 + # via gradio +typing-extensions==4.12.2 + # via + # anyio + # fastapi + # gradio + # gradio-client + # huggingface-hub + # pydantic + # pydantic-core + # rich + # typer + # uvicorn +tzdata==2024.2 + # via pandas +urllib3==2.2.3 + # via + # gradio + # requests +uvicorn==0.32.1 + # via gradio +websockets==12.0 + # via gradio-client From 5a8a5f464cf43c473553a5bdb302132724845a5b Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Mon, 2 Dec 2024 10:51:14 +0800 Subject: [PATCH 20/22] =?UTF-8?q?Revert=20"=E7=94=A8pip-compile=E5=9B=BA?= =?UTF-8?q?=E5=AE=9A=E5=85=B6=E4=BB=96=E5=A5=97=E4=BB=B6=E3=80=82"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 81984a7f5c93ee41213ff719a06626534c5850cb. --- tts/requirements.txt | 170 ------------------------------------------- 1 file changed, 170 deletions(-) diff --git a/tts/requirements.txt b/tts/requirements.txt index ff101ab..9384683 100644 --- a/tts/requirements.txt +++ b/tts/requirements.txt @@ -1,171 +1 @@ -# -# This file is autogenerated by pip-compile with Python 3.10 -# by the following command: -# -# pip-compile -# -aiofiles==23.2.1 - # via gradio -annotated-types==0.7.0 - # via pydantic -anyio==4.6.2.post1 - # via - # gradio - # httpx - # starlette -certifi==2024.8.30 - # via - # httpcore - # httpx - # requests -charset-normalizer==3.4.0 - # via requests -click==8.1.7 - # via - # typer - # uvicorn -contourpy==1.3.1 - # via matplotlib -cycler==0.12.1 - # via matplotlib -exceptiongroup==1.2.2 - # via anyio -fastapi==0.115.5 - # via gradio -ffmpy==0.4.0 - # via gradio -filelock==3.16.1 - # via huggingface-hub -fonttools==4.55.0 - # via matplotlib -fsspec==2024.10.0 - # via - # gradio-client - # huggingface-hub gradio==4.44.1 - # via -r requirements.in -gradio-client==1.3.0 - # via gradio -h11==0.14.0 - # via - # httpcore - # uvicorn -httpcore==1.0.7 - # via httpx -httpx==0.28.0 - # via - # gradio - # gradio-client -huggingface-hub==0.26.3 - # via - # gradio - # gradio-client -idna==3.10 - # via - # anyio - # httpx - # requests -importlib-resources==6.4.5 - # via gradio -jinja2==3.1.4 - # via gradio -kiwisolver==1.4.7 - # via matplotlib -markdown-it-py==3.0.0 - # via rich -markupsafe==2.1.5 - # via - # gradio - # jinja2 -matplotlib==3.9.3 - # via gradio -mdurl==0.1.2 - # via markdown-it-py -numpy==2.1.3 - # via - # contourpy - # gradio - # matplotlib - # pandas -orjson==3.10.12 - # via gradio -packaging==24.2 - # via - # gradio - # gradio-client - # huggingface-hub - # matplotlib -pandas==2.2.3 - # via gradio -pillow==10.4.0 - # via - # gradio - # matplotlib -pydantic==2.10.2 - # via - # fastapi - # gradio -pydantic-core==2.27.1 - # via pydantic -pydub==0.25.1 - # via gradio -pygments==2.18.0 - # via rich -pyparsing==3.2.0 - # via matplotlib -python-dateutil==2.9.0.post0 - # via - # matplotlib - # pandas -python-multipart==0.0.19 - # via gradio -pytz==2024.2 - # via pandas -pyyaml==6.0.2 - # via - # gradio - # huggingface-hub -requests==2.32.3 - # via huggingface-hub -rich==13.9.4 - # via typer -ruff==0.8.1 - # via gradio -semantic-version==2.10.0 - # via gradio -shellingham==1.5.4 - # via typer -six==1.16.0 - # via python-dateutil -sniffio==1.3.1 - # via anyio -starlette==0.41.3 - # via fastapi -tomlkit==0.12.0 - # via gradio -tqdm==4.67.1 - # via huggingface-hub -typer==0.14.0 - # via gradio -typing-extensions==4.12.2 - # via - # anyio - # fastapi - # gradio - # gradio-client - # huggingface-hub - # pydantic - # pydantic-core - # rich - # typer - # uvicorn -tzdata==2024.2 - # via pandas -urllib3==2.2.3 - # via - # gradio - # requests -uvicorn==0.32.1 - # via gradio -websockets==12.0 - # via gradio-client From d3f231001cee782f73b526cca0abc0888244d7d8 Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Mon, 2 Dec 2024 10:54:07 +0800 Subject: [PATCH 21/22] =?UTF-8?q?=E7=94=A8=E6=9C=AC=E5=BA=95=E7=B7=9A?= =?UTF-8?q?=E9=A0=82=C3=AA=E7=8B=80=E6=85=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tts/requirements.txt | 184 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 184 insertions(+) diff --git a/tts/requirements.txt b/tts/requirements.txt index 9384683..26baf7a 100644 --- a/tts/requirements.txt +++ b/tts/requirements.txt @@ -1 +1,185 @@ +absl-py==2.1.0 +aiofiles==23.2.1 +aiohappyeyeballs==2.4.3 +aiohttp==3.10.10 +aiosignal==1.3.1 +annotated-types==0.7.0 +antlr4-python3-runtime==4.9.3 +anyascii==0.3.2 +anyio==4.6.2.post1 +async-timeout==4.0.3 +attrs==24.2.0 +audioread==3.0.1 +Authlib==1.3.2 +babel==2.16.0 +bangla==0.0.2 +blinker==1.8.2 +blis==0.7.11 +bnnumerizer==0.0.2 +bnunicodenormalizer==0.1.7 +catalogue==2.0.10 +certifi==2024.8.30 +cffi==1.17.1 +charset-normalizer==3.4.0 +click==8.1.7 +cloudpathlib==0.20.0 +confection==0.1.5 +contourpy==1.2.1 +coqpit==0.0.17 +cryptography==43.0.3 +cycler==0.12.1 +cymem==2.0.8 +Cython==3.0.11 +datasets==3.1.0 +dateparser==1.1.8 +decorator==5.1.1 +dill==0.3.8 +docopt==0.6.2 +einops==0.8.0 +encodec==0.1.1 +exceptiongroup==1.2.2 +fastapi==0.115.5 +ffmpy==0.4.0 +filelock==3.16.1 +Flask==3.0.3 +fonttools==4.54.1 +frozenlist==1.4.1 +fsspec==2024.10.0 +g2pkk==0.1.2 gradio==4.44.1 +gradio_client==1.3.0 +grpcio==1.67.0 +gruut==2.2.3 +gruut-ipa==0.13.0 +gruut-lang-de==2.0.1 +gruut-lang-en==2.0.1 +gruut-lang-es==2.0.1 +gruut-lang-fr==2.0.2 +h11==0.14.0 +hangul-romanize==0.1.0 +hf_transfer==0.1.8 +httpcore==1.0.6 +httpx==0.27.2 +huggingface-hub==0.26.1 +idna==3.10 +importlib_resources==6.4.5 +inflect==7.4.0 +itsdangerous==2.2.0 +jamo==0.4.1 +jieba==0.42.1 +Jinja2==3.1.4 +joblib==1.4.2 +jsonlines==1.2.0 +kiwisolver==1.4.7 +langcodes==3.4.1 +language_data==1.2.0 +lazy_loader==0.4 +librosa==0.10.0 +llvmlite==0.43.0 +marisa-trie==1.2.1 +Markdown==3.7 +markdown-it-py==3.0.0 +MarkupSafe==2.1.5 +matplotlib==3.8.4 +mdurl==0.1.2 +more-itertools==10.5.0 +mpmath==1.3.0 +msgpack==1.1.0 +multidict==6.1.0 +multiprocess==0.70.16 +murmurhash==1.0.10 +networkx==2.8.8 +nltk==3.9.1 +num2words==0.5.13 +numba==0.60.0 +numpy==1.22.0 +nvidia-cublas-cu12==12.1.3.1 +nvidia-cuda-cupti-cu12==12.1.105 +nvidia-cuda-nvrtc-cu12==12.1.105 +nvidia-cuda-runtime-cu12==12.1.105 +nvidia-cudnn-cu12==9.1.0.70 +nvidia-cufft-cu12==11.0.2.54 +nvidia-curand-cu12==10.3.2.106 +nvidia-cusolver-cu12==11.4.5.107 +nvidia-cusparse-cu12==12.1.0.106 +nvidia-nccl-cu12==2.20.5 +nvidia-nvjitlink-cu12==12.6.77 +nvidia-nvtx-cu12==12.1.105 +omegaconf==2.3.0 +orjson==3.10.11 +packaging==24.1 +pandas==1.5.3 +pillow==10.4.0 +platformdirs==4.3.6 +pooch==1.8.2 +preshed==3.0.9 +propcache==0.2.0 +protobuf==5.28.2 +psutil==5.9.8 +pyarrow==18.0.0 +pycparser==2.22 +pydantic==2.9.2 +pydantic_core==2.23.4 +pydub==0.25.1 +Pygments==2.18.0 +pynndescent==0.5.13 +pyparsing==3.2.0 +pypinyin==0.53.0 +pysbd==0.3.4 +python-crfsuite==0.9.11 +python-dateutil==2.9.0.post0 +python-multipart==0.0.17 +pytz==2024.2 +PyYAML==6.0.2 +regex==2024.9.11 +requests==2.32.3 +rich==13.9.3 +ruff==0.7.3 +safetensors==0.4.5 +scikit-learn==1.5.2 +scipy==1.11.4 +semantic-version==2.10.0 +shellingham==1.5.4 +six==1.16.0 +smart-open==7.0.5 +sniffio==1.3.1 +soundfile==0.12.1 +soxr==0.5.0.post1 +spaces==0.30.4 +spacy==3.7.5 +spacy-legacy==3.0.12 +spacy-loggers==1.0.5 +srsly==2.4.8 +starlette==0.41.2 +SudachiDict-core==20240716 +SudachiPy==0.6.8 +sympy==1.13.3 +tensorboard==2.18.0 +tensorboard-data-server==0.7.2 +thinc==8.2.5 +threadpoolctl==3.5.0 +tokenizers==0.20.1 +tomlkit==0.12.0 +torch==2.4.0 +torchaudio==2.4.0 +tqdm==4.66.5 +trainer==0.0.36 +transformers==4.45.2 +triton==3.0.0 +TTS==0.22.0 +typeguard==4.3.0 +typer==0.12.5 +typing_extensions==4.12.2 +tzdata==2024.2 +tzlocal==5.2 +umap-learn==0.5.6 +Unidecode==1.3.8 +urllib3==2.2.3 +uvicorn==0.32.0 +wasabi==1.1.3 +weasel==0.4.1 +websockets==12.0 +Werkzeug==3.0.4 +wrapt==1.16.0 +xxhash==3.5.0 +yarl==1.16.0 From f6ea93f5e750d0dd0622900a64700ad9b2f86060 Mon Sep 17 00:00:00 2001 From: Tia i X570-ACE Date: Mon, 2 Dec 2024 10:55:03 +0800 Subject: [PATCH 22/22] =?UTF-8?q?=E7=94=A8pip-compile=E7=95=99=E7=9B=B8?= =?UTF-8?q?=E9=97=9C=E5=A5=97=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tts/requirements.txt | 258 ++++++++++++++++++++----------------------- 1 file changed, 122 insertions(+), 136 deletions(-) diff --git a/tts/requirements.txt b/tts/requirements.txt index 26baf7a..159167e 100644 --- a/tts/requirements.txt +++ b/tts/requirements.txt @@ -1,185 +1,171 @@ -absl-py==2.1.0 +# +# This file is autogenerated by pip-compile with Python 3.10 +# by the following command: +# +# pip-compile +# aiofiles==23.2.1 -aiohappyeyeballs==2.4.3 -aiohttp==3.10.10 -aiosignal==1.3.1 + # via gradio annotated-types==0.7.0 -antlr4-python3-runtime==4.9.3 -anyascii==0.3.2 + # via pydantic anyio==4.6.2.post1 -async-timeout==4.0.3 -attrs==24.2.0 -audioread==3.0.1 -Authlib==1.3.2 -babel==2.16.0 -bangla==0.0.2 -blinker==1.8.2 -blis==0.7.11 -bnnumerizer==0.0.2 -bnunicodenormalizer==0.1.7 -catalogue==2.0.10 + # via + # gradio + # httpx + # starlette certifi==2024.8.30 -cffi==1.17.1 + # via + # httpcore + # httpx + # requests charset-normalizer==3.4.0 + # via requests click==8.1.7 -cloudpathlib==0.20.0 -confection==0.1.5 + # via + # typer + # uvicorn contourpy==1.2.1 -coqpit==0.0.17 -cryptography==43.0.3 + # via matplotlib cycler==0.12.1 -cymem==2.0.8 -Cython==3.0.11 -datasets==3.1.0 -dateparser==1.1.8 -decorator==5.1.1 -dill==0.3.8 -docopt==0.6.2 -einops==0.8.0 -encodec==0.1.1 + # via matplotlib exceptiongroup==1.2.2 + # via anyio fastapi==0.115.5 + # via gradio ffmpy==0.4.0 + # via gradio filelock==3.16.1 -Flask==3.0.3 + # via huggingface-hub fonttools==4.54.1 -frozenlist==1.4.1 + # via matplotlib fsspec==2024.10.0 -g2pkk==0.1.2 + # via + # gradio-client + # huggingface-hub gradio==4.44.1 -gradio_client==1.3.0 -grpcio==1.67.0 -gruut==2.2.3 -gruut-ipa==0.13.0 -gruut-lang-de==2.0.1 -gruut-lang-en==2.0.1 -gruut-lang-es==2.0.1 -gruut-lang-fr==2.0.2 + # via -r requirements.in +gradio-client==1.3.0 + # via gradio h11==0.14.0 -hangul-romanize==0.1.0 -hf_transfer==0.1.8 + # via + # httpcore + # uvicorn httpcore==1.0.6 + # via httpx httpx==0.27.2 + # via + # gradio + # gradio-client huggingface-hub==0.26.1 + # via + # gradio + # gradio-client idna==3.10 -importlib_resources==6.4.5 -inflect==7.4.0 -itsdangerous==2.2.0 -jamo==0.4.1 -jieba==0.42.1 -Jinja2==3.1.4 -joblib==1.4.2 -jsonlines==1.2.0 + # via + # anyio + # httpx + # requests +importlib-resources==6.4.5 + # via gradio +jinja2==3.1.4 + # via gradio kiwisolver==1.4.7 -langcodes==3.4.1 -language_data==1.2.0 -lazy_loader==0.4 -librosa==0.10.0 -llvmlite==0.43.0 -marisa-trie==1.2.1 -Markdown==3.7 + # via matplotlib markdown-it-py==3.0.0 -MarkupSafe==2.1.5 + # via rich +markupsafe==2.1.5 + # via + # gradio + # jinja2 matplotlib==3.8.4 + # via gradio mdurl==0.1.2 -more-itertools==10.5.0 -mpmath==1.3.0 -msgpack==1.1.0 -multidict==6.1.0 -multiprocess==0.70.16 -murmurhash==1.0.10 -networkx==2.8.8 -nltk==3.9.1 -num2words==0.5.13 -numba==0.60.0 + # via markdown-it-py numpy==1.22.0 -nvidia-cublas-cu12==12.1.3.1 -nvidia-cuda-cupti-cu12==12.1.105 -nvidia-cuda-nvrtc-cu12==12.1.105 -nvidia-cuda-runtime-cu12==12.1.105 -nvidia-cudnn-cu12==9.1.0.70 -nvidia-cufft-cu12==11.0.2.54 -nvidia-curand-cu12==10.3.2.106 -nvidia-cusolver-cu12==11.4.5.107 -nvidia-cusparse-cu12==12.1.0.106 -nvidia-nccl-cu12==2.20.5 -nvidia-nvjitlink-cu12==12.6.77 -nvidia-nvtx-cu12==12.1.105 -omegaconf==2.3.0 + # via + # contourpy + # gradio + # matplotlib + # pandas orjson==3.10.11 + # via gradio packaging==24.1 + # via + # gradio + # gradio-client + # huggingface-hub + # matplotlib pandas==1.5.3 + # via gradio pillow==10.4.0 -platformdirs==4.3.6 -pooch==1.8.2 -preshed==3.0.9 -propcache==0.2.0 -protobuf==5.28.2 -psutil==5.9.8 -pyarrow==18.0.0 -pycparser==2.22 + # via + # gradio + # matplotlib pydantic==2.9.2 -pydantic_core==2.23.4 + # via + # fastapi + # gradio +pydantic-core==2.23.4 + # via pydantic pydub==0.25.1 -Pygments==2.18.0 -pynndescent==0.5.13 + # via gradio +pygments==2.18.0 + # via rich pyparsing==3.2.0 -pypinyin==0.53.0 -pysbd==0.3.4 -python-crfsuite==0.9.11 + # via matplotlib python-dateutil==2.9.0.post0 + # via + # matplotlib + # pandas python-multipart==0.0.17 + # via gradio pytz==2024.2 -PyYAML==6.0.2 -regex==2024.9.11 + # via pandas +pyyaml==6.0.2 + # via + # gradio + # huggingface-hub requests==2.32.3 + # via huggingface-hub rich==13.9.3 + # via typer ruff==0.7.3 -safetensors==0.4.5 -scikit-learn==1.5.2 -scipy==1.11.4 + # via gradio semantic-version==2.10.0 + # via gradio shellingham==1.5.4 + # via typer six==1.16.0 -smart-open==7.0.5 + # via python-dateutil sniffio==1.3.1 -soundfile==0.12.1 -soxr==0.5.0.post1 -spaces==0.30.4 -spacy==3.7.5 -spacy-legacy==3.0.12 -spacy-loggers==1.0.5 -srsly==2.4.8 + # via + # anyio + # httpx starlette==0.41.2 -SudachiDict-core==20240716 -SudachiPy==0.6.8 -sympy==1.13.3 -tensorboard==2.18.0 -tensorboard-data-server==0.7.2 -thinc==8.2.5 -threadpoolctl==3.5.0 -tokenizers==0.20.1 + # via fastapi tomlkit==0.12.0 -torch==2.4.0 -torchaudio==2.4.0 + # via gradio tqdm==4.66.5 -trainer==0.0.36 -transformers==4.45.2 -triton==3.0.0 -TTS==0.22.0 -typeguard==4.3.0 + # via huggingface-hub typer==0.12.5 -typing_extensions==4.12.2 -tzdata==2024.2 -tzlocal==5.2 -umap-learn==0.5.6 -Unidecode==1.3.8 + # via gradio +typing-extensions==4.12.2 + # via + # anyio + # fastapi + # gradio + # gradio-client + # huggingface-hub + # pydantic + # pydantic-core + # rich + # typer + # uvicorn urllib3==2.2.3 + # via + # gradio + # requests uvicorn==0.32.0 -wasabi==1.1.3 -weasel==0.4.1 + # via gradio websockets==12.0 -Werkzeug==3.0.4 -wrapt==1.16.0 -xxhash==3.5.0 -yarl==1.16.0 + # via gradio-client