joethei / obsidian-tts

Text to speech for Obsidian. Hear your notes.
GNU General Public License v3.0
71 stars 10 forks source link

FR - Auto-pick correct language #11

Closed Jopp-gh closed 2 years ago

Jopp-gh commented 2 years ago

Instead to use a rigid code like this: lang: {languageCode} Use word frequently https://lexiteria.com/word_frequency_list.html

... to identify the right target language. Asian languages are even easier to detect, in my experience. 😄

joethei commented 2 years ago

This has been implemented in 0.5.0.

As automatic detection is never perfect you might still need to use the frontmatter method sometimes.

Jopp-gh commented 2 years ago

As automatic detection is never perfect you might still need to use the frontmatter method sometimes.

Indeed, i myself cut comparisons down to only 30 words per language, better you choose more sample words but i let this detail up to you. Results aren't perfect, but results are nice 🙂

Glad, you did implement this feature