From a4c84fe8927e5c6562831068c08f0b09b417eed8 Mon Sep 17 00:00:00 2001 From: samiabat Date: Wed, 23 Jul 2025 23:30:30 +0300 Subject: [PATCH] add logs --- GPT_SoVITS/inference_cli.py | 2 ++ api.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/GPT_SoVITS/inference_cli.py b/GPT_SoVITS/inference_cli.py index 79feb248..30997bd1 100644 --- a/GPT_SoVITS/inference_cli.py +++ b/GPT_SoVITS/inference_cli.py @@ -18,6 +18,8 @@ def synthesize(GPT_model_path, SoVITS_model_path, ref_audio_path, ref_text, ref_ print("Model weights changed successfully.") + print(f"cli file inside synthesize func: the intestity is {intensity}") + # Synthesize audio synthesis_result = get_tts_wav(ref_wav_path=ref_audio_path, prompt_text=ref_text, diff --git a/api.py b/api.py index 899687f1..fd710df4 100644 --- a/api.py +++ b/api.py @@ -917,6 +917,7 @@ def version_4_cli( shouting_type="normal", # normal, loud, soft, whisper intesity = 0, ): + print(f"version 4 cli func: the intestiy is {intesity}") # Create a temporary buffer to store the audio audio_buffer = io.BytesIO() @@ -1017,7 +1018,7 @@ async def tts_endpoint( volume_scale: str = "1.0", # Accept as string from URL, convert to float strain_effect: str = "0.0", # Accept as string from URL, convert to float shouting_type: str = "normal", # Accept as string from URL, convert to appropriate type - intesity: int = 0, + intesity: str = "0.0", ): if character == "kurari" or character == "Kurari": prompt_text = "おはよう〜。今日はどんな1日過ごすー?くらりはね〜いつでもあなたの味方だよ" @@ -1063,6 +1064,8 @@ async def tts_endpoint( volume_scale = float(volume_scale) strain_effect = float(strain_effect) + print(f"Tts endpoint func: the intesty is {intesity}") + audio_buffer, sample_rate = version_4_cli( character_name=character, ref_text=prompt_text,