Skip to content

Future Support for Multiple Languages

Latest
Compare
Choose a tag to compare
@patrickenfuego patrickenfuego released this 09 Mar 02:13
· 11 commits to main since this release

What's New

I recently realized that the project supports downloading multiple language models, but the actual programming logic was written for English. I fixed that in this release by making excluded phrases and chapter markers dynamic based on the language specified (either via CLI or in defaults.toml).

For example: if German is specified as the language, the script will search for and import German-specific excluded phrases and chapter markers if they exist. If they don't exist (meaning nothing has been contributed), an error is thrown.

Adding More Language Support

I speak a little German, so I added some German chapter markers and a few excluded phrases (although I'm far from fluent). However, I'd love to see contributions from the community so non-English speakers can use this for their audiobooks. If you speak one of the vosk supported languages, please consider contributing excluded phrases (i.e., phrases that falsely trigger a chapter break like "this chapter" or "chapter and verse") and chapter markers ("prologue", "chapter", "epilogue", etc.) to this project! If you aren't a programmer, send them to me in a GitHub issue (here) and I'll add them for you.