yangdongchao / UniAudio

The Open Source Code of UniAudio
http://dongchaoyang.top/UniAudio_demo/
522 stars 32 forks source link

several bugs #15

Open Jackiexiao opened 1 year ago

Jackiexiao commented 1 year ago

running TTS egs

  1. text_tokenizer.py

https://github.com/yangdongchao/UniAudio/blob/b4da009653486828b4d71a6efe1772b1403ce324/UniAudio/tools/tokenizer/phone/text_tokenizer.py#L12

no TextTokenizer

class Text2PhoneTokenizer(AbsTokenizer):
    def __init__(self, langdir='UniAudio/checkpoints/lang_nosp'):
        super(TextTokenizer, self).__init__()
  1. offline_tokenization.py
  5 Traceback (most recent call last):
  6   File "data_scripts/offline_tokenization.py", line 161, in <module>
  7     main(sys.argv[1:])
  8   File "data_scripts/offline_tokenization.py", line 70, in main
  9     tokenizer = PhoneTokenizer(duplicate=True)
 10 TypeError: __init__() got an unexpected keyword argument 'duplicate'
Cris140 commented 1 year ago

I'm having the same problem, were you able to make it work?

Jackiexiao commented 1 year ago

I'm having the same problem, were you able to make it work?

  1. easy to fix
  2. just remove duplicate=True (I guess)
Cris140 commented 1 year ago

Yes, that worked, but now it's asking for a config.yaml, how can I generate or get one?