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