diff --git a/api.py b/api.py index fd710df4..438cd069 100644 --- a/api.py +++ b/api.py @@ -915,9 +915,9 @@ def version_4_cli( volume_scale=1.0, strain_effect=0.0, shouting_type="normal", # normal, loud, soft, whisper - intesity = 0, + intensity = 0, ): - print(f"version 4 cli func: the intestiy is {intesity}") + print(f"version 4 cli func: the intestiy is {intensity}") # Create a temporary buffer to store the audio audio_buffer = io.BytesIO() @@ -979,7 +979,7 @@ def version_4_cli( energy_scale=energy_scale, volume_scale=volume_scale, strain_effect=strain_effect, - intensity=intesity + intensity=intensity ) # Get the last audio data and sample rate from synthesis result @@ -1018,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: str = "0.0", + intensity: str = "0.0", ): if character == "kurari" or character == "Kurari": prompt_text = "おはよう〜。今日はどんな1日過ごすー?くらりはね〜いつでもあなたの味方だよ" @@ -1063,8 +1063,9 @@ async def tts_endpoint( energy_scale = float(energy_scale) volume_scale = float(volume_scale) strain_effect = float(strain_effect) + intensity = float(intensity) - print(f"Tts endpoint func: the intesty is {intesity}") + print(f"Tts endpoint func: the intesty is {intensity}") audio_buffer, sample_rate = version_4_cli( character_name=character, @@ -1080,7 +1081,7 @@ async def tts_endpoint( volume_scale=volume_scale, strain_effect=strain_effect, shouting_type= shouting_type, - intesity=intesity + intensity=intensity ) if audio_buffer: