Spaces:
Sleeping
Sleeping
zhzluke96
commited on
Commit
•
29536f1
1
Parent(s):
49bce5c
update
Browse files
modules/generate_audio.py
CHANGED
@@ -69,14 +69,14 @@ def generate_audio_batch(
|
|
69 |
if isinstance(spk, int):
|
70 |
with SeedContext(spk):
|
71 |
params_infer_code["spk_emb"] = chat_tts.sample_random_speaker()
|
72 |
-
logger.
|
73 |
elif isinstance(spk, Speaker):
|
74 |
params_infer_code["spk_emb"] = spk.emb
|
75 |
-
logger.
|
76 |
else:
|
77 |
raise ValueError("spk must be int or Speaker")
|
78 |
|
79 |
-
logger.
|
80 |
{
|
81 |
"text": texts,
|
82 |
"infer_seed": infer_seed,
|
|
|
69 |
if isinstance(spk, int):
|
70 |
with SeedContext(spk):
|
71 |
params_infer_code["spk_emb"] = chat_tts.sample_random_speaker()
|
72 |
+
logger.info(("spk", spk))
|
73 |
elif isinstance(spk, Speaker):
|
74 |
params_infer_code["spk_emb"] = spk.emb
|
75 |
+
logger.info(("spk", spk.name))
|
76 |
else:
|
77 |
raise ValueError("spk must be int or Speaker")
|
78 |
|
79 |
+
logger.info(
|
80 |
{
|
81 |
"text": texts,
|
82 |
"infer_seed": infer_seed,
|