Skip to content

AttributeError: 'TTS' object has no attribute 'speakers' #1

@suoko

Description

@suoko

Any idea about this error?

 python lingonaut.py
 > tts_models/multilingual/multi-dataset/xtts_v2 is already downloaded.
 > Using model: xtts
                                                                                                                                                      
...
Welcome to LingoNaut! How can I assist you in your learning journey today?
Traceback (most recent call last):
  File "/home/g/dev/lingonaut-python/lingonaut.py", line 294, in <module>
    main()
  File "/home/g/dev/lingonaut-python/lingonaut.py", line 255, in main
    play_audio(dump_to_audio(welcome_string, input_path))
  File "/home/g/dev/lingonaut-python/lingonaut.py", line 170, in dump_to_audio
    speaker=tts.speakers[10],
  File "/home/g/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1695, in __getattr__
    raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'TTS' object has no attribute 'speakers'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions