Skip to content

Commit

Permalink
chore(format): run black on main
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 3, 2024
1 parent 5e56074 commit b8bc11c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
# Get TTS Voices -> https://speech.platform.bing.com/consumer/speech/synthesize/readaloud/voices/list?trustedclienttoken=6A5AA1D4EAFF4E9FB37E23D68491D6F4
@lru_cache(maxsize=1) # Cache only one result since the file is static
def load_voices_data():
with open(os.path.join("rvc", "lib", "tools", "tts_voices.json"), "r", encoding="utf-8") as file:
with open(
os.path.join("rvc", "lib", "tools", "tts_voices.json"), "r", encoding="utf-8"
) as file:
return json.load(file)


Expand Down
1 change: 1 addition & 0 deletions rvc/infer/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def convert_audio(

if upscale_audio == True:
from audio_upscaler import upscale

upscale(audio_input_path, audio_input_path)
audio = load_audio_infer(
audio_input_path,
Expand Down
4 changes: 3 additions & 1 deletion tabs/tts/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

default_weight = random.choice(names) if names else ""

with open(os.path.join("rvc", "lib", "tools", "tts_voices.json"), "r", encoding="utf-8") as file:
with open(
os.path.join("rvc", "lib", "tools", "tts_voices.json"), "r", encoding="utf-8"
) as file:
tts_voices_data = json.load(file)

short_names = [voice.get("ShortName", "") for voice in tts_voices_data]
Expand Down

0 comments on commit b8bc11c

Please sign in to comment.