epub2tts icon indicating copy to clipboard operation
epub2tts copied to clipboard

--language [option] not working

Open rafferty90 opened this issue 6 months ago • 1 comments

Using epub2tts with --engine edge has some awesome multilingual neural AI voices which I want to use to read out Norwegian aloud. But occasionally it will try to read a Norwegian word/sentence as if it is English. How can I work around this? Is there I can force tts to read Norwegian? I tried setting the [option] to --language nb but to no success.

rafferty90 avatar Jun 22 '25 05:06 rafferty90

I think with edge, it's just about the voice when it comes to languages. If you run edge-tts --list-voices you'll get a list of all available voices. Assuming the abbreviation of NO is for Norwegian, you could try these two voices:

nb-NO-FinnNeural                   Male      General                Friendly, Positive
nb-NO-PernilleNeural               Female    General                Friendly, Positive

I think that is all you'll have to do, and you can ignore the --language option.

By the way, if you're only using edge, check out https://github.com/aedocw/epub2tts-edge which has a much lighter install footprint and mostly works the same.

Let me know if/how that works!

aedocw avatar Jun 22 '25 21:06 aedocw