Plugin for Obsidian
Features:
You can create language specific voices,
the plugin will try to identify the language used.
If it is not identified correctly you can overwrite this behaviour
by having
lang: {languageCode}
in the Frontmatter. The language code can be seen in the
settings and is a two letter ISO 639-1 code.
This plugin will NOT work on android due to this bug in the Webview.
This plugin uses the native API of your Operating System, to add a new language reference the documentation accordingly:
Settings > Community plugins > Community Plugins > Browse
and search for Text to Speech
You can use this plugins API to add Text to Speech capabilities to your plugin.
This uses the @vanakat/plugin-api package.
You can find the API documentation here: API Documentation
const tts = pluginApi('tts');
await tts.say(title, text, language);//language is optional, use a ISO 639-1 code
tts.pause();
tts.resume();
tts.stop();
tts.isSpeaking();
tts.isPaused();