An open API service indexing awesome lists of open source software.

https://github.com/gervaiscodes/obsidian-polyglot

Obsidian Polyglot is a plugin that enables translation and text-to-speech conversion within Obsidian
https://github.com/gervaiscodes/obsidian-polyglot

Last synced: 11 months ago
JSON representation

Obsidian Polyglot is a plugin that enables translation and text-to-speech conversion within Obsidian

Awesome Lists containing this project

README

          

# Obsidian Polyglot

**Obsidian Polyglot** is a plugin that enables translation and text-to-speech conversion within Obsidian.

- 🌍 **Instant Translation**: Translate selected text in one click using **AWS Translate**
- πŸ”Š **Text-to-Speech Conversion**: Convert selected text into a local audio file using **AWS Polly**

## πŸš€ Installation

1. **Clone the repository** into your Obsidian plugins folder: `.obsidian/plugins`
2. **Build the plugin**: `npm run build`
3. **Enable the plugin** in Obsidian settings.

Once activated, two icons will be added to the ribbon sidebar:

![Ribbon](./images/ribbon.png)

Additionally, two new commands will be available:

![Commands](./images/commands.png)

## βš™οΈ Configuration

Before using the plugin, configure your **AWS credentials** and **preferred languages** in the settings panel:

![Settings](./images/settings.png)

## 🌐 Translate Text

1. **Select the text** you want to translate.
2. Click the **"Polyglot Translate"** icon in the ribbon.
3. The translated text will appear directly after your selection.

You can customize the translation output (e.g., append/prepend text) in the settings.

## πŸ”Š Convert Text to Speech

1. **Select the text** you want to convert to speech.
2. Click the **"Polyglot Speech"** icon in the ribbon.
3. The generated audio file will be added right after your selected text.

πŸ“Œ **Offline Support**: The audio file is stored locally, meaning no internet connection is required to play it.

## πŸ“Œ Example Usage

Here’s an example of the Polish word **"czeΕ›Δ‡"** translated to **"salut"** in French:

![Example editor](./images/example-editor.png)

![Example view](./images/example-view.png)