Skip to content

Commit

Permalink
Finally fix plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
aitronz committed Jul 7, 2024
1 parent 8f35164 commit 90ceb1f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Binary file modified Elevenlabs-TTS/Elevenlabs-TTS.zip
Binary file not shown.
17 changes: 9 additions & 8 deletions Elevenlabs-TTS/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
sys.path.append(now_dir)

from rvc.infer.infer import VoiceConverter
voice_converter = VoiceConverter()

model_root = os.path.join(now_dir, "logs")
model_root_relative = os.path.relpath(model_root, now_dir)
Expand Down Expand Up @@ -163,7 +164,7 @@ def run_tts_script(

print(f"TTS with {tts_voice} completed. Output TTS file: '{output_tts_path}'")

VoiceConverter.infer_pipeline(
voice_converter.infer_pipeline(
pitch,
filter_radius,
index_rate,
Expand Down Expand Up @@ -319,7 +320,7 @@ def applio_plugin():
interactive=True,
)
clean_strength = gr.Slider(
minimumum=0,
minimum=0,
maximum=1,
label=i18n("Clean Strength"),
info=i18n(
Expand All @@ -339,7 +340,7 @@ def applio_plugin():
interactive=True,
)
pitch = gr.Slider(
minimumum=-24,
minimum=-24,
maximum=24,
step=1,
label=i18n("Pitch"),
Expand All @@ -350,7 +351,7 @@ def applio_plugin():
interactive=True,
)
filter_radius = gr.Slider(
minimumum=0,
minimum=0,
maximum=7,
label=i18n("Filter Radius"),
info=i18n(
Expand All @@ -361,7 +362,7 @@ def applio_plugin():
interactive=True,
)
index_rate = gr.Slider(
minimumum=0,
minimum=0,
maximum=1,
label=i18n("Search Feature Ratio"),
info=i18n(
Expand All @@ -371,7 +372,7 @@ def applio_plugin():
interactive=True,
)
rms_mix_rate = gr.Slider(
minimumum=0,
minimum=0,
maximum=1,
label=i18n("Volume Envelope"),
info=i18n(
Expand All @@ -381,7 +382,7 @@ def applio_plugin():
interactive=True,
)
protect = gr.Slider(
minimumum=0,
minimum=0,
maximum=0.5,
label=i18n("Protect Voiceless Consonants"),
info=i18n(
Expand All @@ -391,7 +392,7 @@ def applio_plugin():
interactive=True,
)
hop_length = gr.Slider(
minimumum=1,
minimum=1,
maximum=512,
step=1,
label=i18n("Hop Length"),
Expand Down

0 comments on commit 90ceb1f

Please sign in to comment.