mirror of
https://github.com/rhasspy/piper-sample-generator.git
synced 2026-08-27 18:15:58 -04:00
Check if file
This commit is contained in:
parent
66ec23fa49
commit
ded9350eaf
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ def generate_samples(
|
|||
|
||||
speakers_iter = it.cycle(it.product(range(num_speakers), range(num_speakers)))
|
||||
speakers_batch = list(it.islice(speakers_iter, 0, batch_size))
|
||||
if isinstance(text, str) and os.path.exists(text):
|
||||
if isinstance(text, str) and os.path.isfile(text):
|
||||
texts = it.cycle(
|
||||
[
|
||||
i.strip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue