Correction of synthesize.py

In synthesize.py there is

if not C.use_external_speaker_embedding_file:
    if args.speaker_fileid.isdigit():
        args.speaker_fileid = int(args.speaker_fileid)
    else:
        args.speaker_fileid = None
else:
    args.speaker_fileid = None

You need to change it to

if not C.use_external_speaker_embedding_file:
    if args.speaker_fileid is not None:
        if args.speaker_fileid.isdigit():
            args.speaker_fileid = int(args.speaker_fileid)
        else:
            args.speaker_fileid = None
else:
    args.speaker_fileid = None

Would be nice to file this as an issue or even better, a PR over on github.

I don’t know how that whole github-thing works. Feel free to “steal” this solution and contribute it.

Regardless of Github it is is always a good idea to explain what your proposed code does: e.g. it fixes an error, it introduces a new functionality, it improves something existing in one or another way…
Here is a example how NOT to do it :wink: : https://github.com/mozilla/TTS/pull/639

I do this in my free time. If you want me to follow guidelines that you made up on how to contribute, you need to compensate me and we need to have a business relationship.

Then you should start compensating the people who are helping you here in their free time.

4 Likes

Your argument is flawed. The point is that I don’t give you orders how to reply to me for free.
On top of that does your post not move anything forward, it is just a childish ad hominem.
If that is the only kind of “help” you can give, then yes, I don’t want your help.
I helped the community with my hint.
Take it and be grateful.