Skip to content

Commit

Permalink
feat(test): use manual_seed param
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 3, 2024
1 parent c140a0b commit 47b476e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions tests/#655.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from tools.logger import get_logger
from tools.normalizer import normalizer_en_nemo_text
from tools.seeder import TorchSeedContext

logger = get_logger("Test", lv=logging.WARN)

Expand All @@ -32,14 +31,14 @@

fail = False

with TorchSeedContext(12345):
refined_text = chat.infer(
text,
refine_text_only=True,
params_refine_text=ChatTTS.Chat.RefineTextParams(
prompt="[oral_2][laugh_0][break_6]",
),
)
refined_text = chat.infer(
text,
refine_text_only=True,
params_refine_text=ChatTTS.Chat.RefineTextParams(
prompt="[oral_2][laugh_0][break_6]",
manual_seed=12345,
),
)
if (
refined_text[0]
!= "what is [uv_break] your favorite [uv_break] english food [laugh] like [laugh]"
Expand Down

0 comments on commit 47b476e

Please sign in to comment.