Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] --list_speaker_idxs flag return 'NoneType' object has no attribute 'speaker_ids' #1495

Closed
Wonder1905 opened this issue Apr 13, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Wonder1905
Copy link

🐛 Description

I'm using this repo just for inference, hence this entire repo is only about inference.
I'm running the following command:
tts --model_name tts_models/en/ljspeech/glow-tts --vocoder_name vocoder_models/en/ek1/wavegrad --list_speaker_idxs
In order to see the least of speakers available, just as in the documentation, but I'm getting:

Available speaker ids: (Set --speaker_idx flag to one of these values to use the multi-speaker model.
Traceback (most recent call last):
File "/opt/conda/bin/tts", line 8, in
sys.exit(main())
File "/opt/conda/lib/python3.8/site-packages/TTS/bin/synthesize.py", line 264, in main
print(synthesizer.tts_model.speaker_manager.speaker_ids)
AttributeError: 'NoneType' object has no attribute 'speaker_ids'

** Non related question: can I output a wav file with 16000Hz and not 22050Hz?? using the command line.

Environment

The script's output.
{
"CUDA": {
"GPU": [
"NVIDIA GeForce GTX 1080 Ti",
"NVIDIA GeForce GTX 1080 Ti",
"NVIDIA GeForce GTX 1080 Ti",
"NVIDIA GeForce GTX 1080 Ti"
],
"available": true,
"version": "11.1"
},
"Packages": {
"PyTorch_debug": false,
"PyTorch_version": "1.8.1+cu111",
"TTS": "0.6.1",
"numpy": "1.19.5"
},
"System": {
"OS": "Linux",
"architecture": [
"64bit",
"ELF"
],
"processor": "x86_64",
"python": "3.8.5",
"version": "#1 SMP Tue Nov 30 15:51:32 UTC 2021"
}
}

Thanks a lot !!!

@Wonder1905 Wonder1905 added the bug Something isn't working label Apr 13, 2022
@p0p4k
Copy link
Contributor

p0p4k commented Apr 14, 2022

Is ljspeech multi-speaker dataset?

@erogol
Copy link
Member

erogol commented Apr 15, 2022

It's a single-speaker model.

@erogol erogol closed this as completed Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants