mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-19 08:19:47 +08:00
better version num2str
This commit is contained in:
parent
715e60a114
commit
0b39eecfd6
@ -326,7 +326,11 @@ def num2str(value_string: str) -> str:
|
|||||||
|
|
||||||
result = verbalize_cardinal(integer)
|
result = verbalize_cardinal(integer)
|
||||||
|
|
||||||
|
if decimal.endswith("0"):
|
||||||
|
decimal = decimal.rstrip("0") + "0"
|
||||||
|
else:
|
||||||
decimal = decimal.rstrip("0")
|
decimal = decimal.rstrip("0")
|
||||||
|
|
||||||
if decimal:
|
if decimal:
|
||||||
# '.22' is verbalized as '零点二二'
|
# '.22' is verbalized as '零点二二'
|
||||||
# '3.20' is verbalized as '三点二
|
# '3.20' is verbalized as '三点二
|
||||||
|
Loading…
x
Reference in New Issue
Block a user