From 944fdc03b231492959d633088b8ca0b7ac6b3200 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 6 Mar 2023 19:38:36 -0300 Subject: [PATCH] Rename the folder --- .gitignore | 2 +- extensions/elevenlabs/requirements.txt | 6 ------ .../outputs/outputs-will-be-saved-here.txt | 0 extensions/elevenlabs_tts/requirements.txt | 3 +++ extensions/{elevenlabs => elevenlabs_tts}/script.py | 10 ++++------ 5 files changed, 8 insertions(+), 13 deletions(-) delete mode 100644 extensions/elevenlabs/requirements.txt rename extensions/{elevenlabs => elevenlabs_tts}/outputs/outputs-will-be-saved-here.txt (100%) create mode 100644 extensions/elevenlabs_tts/requirements.txt rename extensions/{elevenlabs => elevenlabs_tts}/script.py (99%) diff --git a/.gitignore b/.gitignore index b37a760..1b7f0fb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ cache/* characters/* extensions/silero_tts/outputs/* -extensions/elevenlabs/outputs/* +extensions/elevenlabs_tts/outputs/* logs/* models/* softprompts/* diff --git a/extensions/elevenlabs/requirements.txt b/extensions/elevenlabs/requirements.txt deleted file mode 100644 index f2f0bff..0000000 --- a/extensions/elevenlabs/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -ipython -omegaconf -pydub -PyYAML -torch -torchaudio diff --git a/extensions/elevenlabs/outputs/outputs-will-be-saved-here.txt b/extensions/elevenlabs_tts/outputs/outputs-will-be-saved-here.txt similarity index 100% rename from extensions/elevenlabs/outputs/outputs-will-be-saved-here.txt rename to extensions/elevenlabs_tts/outputs/outputs-will-be-saved-here.txt diff --git a/extensions/elevenlabs_tts/requirements.txt b/extensions/elevenlabs_tts/requirements.txt new file mode 100644 index 0000000..8ec07a8 --- /dev/null +++ b/extensions/elevenlabs_tts/requirements.txt @@ -0,0 +1,3 @@ +elevenlabslib +soundfile +sounddevice diff --git a/extensions/elevenlabs/script.py b/extensions/elevenlabs_tts/script.py similarity index 99% rename from extensions/elevenlabs/script.py rename to extensions/elevenlabs_tts/script.py index e088ec8..ae4fe01 100644 --- a/extensions/elevenlabs/script.py +++ b/extensions/elevenlabs_tts/script.py @@ -1,16 +1,14 @@ import asyncio -from pathlib import Path - -import gradio as gr -import torch import io import json import os +from pathlib import Path +import gradio as gr import requests - -from elevenlabslib.helpers import * +import torch from elevenlabslib import * +from elevenlabslib.helpers import * params = { 'activate': True,