rhasspy / piper

A fast, local neural text to speech system
https://rhasspy.github.io/piper-samples/
MIT License
4.57k stars 315 forks source link

error when preparing files for training #409

Open Ukias opened 3 months ago

Ukias commented 3 months ago

I encounter a problem when trying to generate the config.json and the dataset.jsonl. Stacktrace:

Traceback (most recent call last):
  File "/home/stefan/anaconda3/envs/tortoise/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/stefan/anaconda3/envs/tortoise/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/stefan/Documents/spracherzeugung_aus_pdf/piper/src/python/piper_train/preprocess.py", line 502, in <module>
    main()
  File "/home/stefan/Documents/spracherzeugung_aus_pdf/piper/src/python/piper_train/preprocess.py", line 225, in main
    for utt_batch in batched(
  File "/home/stefan/Documents/spracherzeugung_aus_pdf/piper/src/python/piper_train/preprocess.py", line 491, in batched
    raise ValueError("n must be at least one")
ValueError: n must be at least one

Can you help me out to find the error?

Dabsterr commented 3 weeks ago

same issue. others noted that combined training data needs to be >5 mins. but mine is around 20+ with the same issue.