Skip to content

Text to speech for Obsidian. Hear your notes.

License

Notifications You must be signed in to change notification settings

sxndmxn/mxn-obsidian-tts

 
 

Repository files navigation

🗣️Text to Speech

Plugin for Obsidian

Maintenance GitHub manifest.json dynamic (path) libera manifesto

Features:

  • Start playback for note from statusbar and ribbon
  • Only speaking selected text in edit mode: Selection Demo
  • usable with other plugins (currently RSS Reader)

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.

Adding languages

This plugin uses the native API of your Operating System, to add a new language reference the documentation accordingly:

Installing the plugin

  • Settings > Third-party plugins > Community Plugins > Browse and search for Text to Speech
  • Using the Beta Reviewers Auto-update Tester plugin with the repo path: joethei/obsidian-tts
  • Copy over main.js, styles.css, manifest.json from the releases to your vault VaultFolder/.obsidian/plugins/obsidian-tts/.

API

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();

About

Text to speech for Obsidian. Hear your notes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.8%
  • JavaScript 4.2%