mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-07 15:33:29 +08:00
correct spelling error
This commit is contained in:
parent
a4c84fe892
commit
972c98bce5
13
api.py
13
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user