{"id":35045840,"url":"https://github.com/blmage/glossika-tts-replacer","last_synced_at":"2026-05-23T07:04:16.314Z","repository":{"id":276593128,"uuid":"929320158","full_name":"blmage/glossika-tts-replacer","owner":"blmage","description":"A userscript to replace Glossika original TTS with high-quality TTS generated via ElevenLabs API.","archived":false,"fork":false,"pushed_at":"2025-02-09T08:43:02.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T09:27:24.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blmage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-08T09:14:01.000Z","updated_at":"2025-02-09T08:43:06.000Z","dependencies_parsed_at":"2025-02-09T09:37:27.546Z","dependency_job_id":null,"html_url":"https://github.com/blmage/glossika-tts-replacer","commit_stats":null,"previous_names":["blmage/glossika-tts-replacer"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/blmage/glossika-tts-replacer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blmage%2Fglossika-tts-replacer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blmage%2Fglossika-tts-replacer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blmage%2Fglossika-tts-replacer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blmage%2Fglossika-tts-replacer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blmage","download_url":"https://codeload.github.com/blmage/glossika-tts-replacer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blmage%2Fglossika-tts-replacer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33386079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-27T08:53:49.995Z","updated_at":"2026-05-23T07:04:16.306Z","avatar_url":"https://github.com/blmage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Glossika TTS Replacer\n\nA userscript that replaces [Glossika](https://ai.glossika.com/)'s built-in text-to-speech (TTS) with high-quality voices from the [ElevenLabs](https://elevenlabs.io/) API.\n\n## Requirements\n\nBefore installing, ensure you have:\n\n- An [ElevenLabs](https://elevenlabs.io/) account (the free plan should be sufficient).\n- [Node.js](https://nodejs.org/) and either [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/) installed.\n- A [userscript manager](https://en.wikipedia.org/wiki/Userscript_manager), such as:\n    - [Greasemonkey](https://www.greasespot.net/)\n    - [Tampermonkey](https://www.tampermonkey.net/)\n    - [Violentmonkey](https://violentmonkey.github.io/)\n\n---\n\n## Installation\n\n### 1. Get the repository\n\n#### Option A: Clone via Git\n\n```sh\ngit clone https://github.com/blmage/glossika-tts-replacer.git\ncd glossika-tts-replacer\n```\n\n#### Option B: Download manually\n\nDownload the repository as a ZIP archive and extract it to a local directory.\n\n---\n\n### 2. Install Dependencies\n\nRun:\n\n```sh\nnpm install\n# or\nyarn install\n```\n\n---\n\n### 3. Configure the script\n\nCreate a `settings.json` file in the root directory, using [`settings.json.sample`](settings.json.sample) as a template. Adjust the settings to match your preferences.\n\n#### `settings.json` Configuration\n\nRefer to the [ElevenLabs API documentation](https://elevenlabs.io/docs/api-reference/text-to-speech/convert#request) for details on available options.\n\n- **`api_key`**: Your ElevenLabs API key (required).\n- **`languages`**: A mapping of language keys to TTS configurations.\n    - **Language key (e.g., `fra-sd`)**: Defines settings for a specific language. See the [list of languages](#list-of-languages) below.\n    - **`modelId`**: The TTS model to use (e.g., `eleven_flash_v2_5`).\n    - **`voice`**: The voice ID (check your [ElevenLabs account](https://elevenlabs.io/app/voice-lab) for available voices).\n    - **`languageCode`** (for **Turbo v2.5** and **Flash v2.5** models only): Specifies the enforced language.\n    - **`voiceSettings`**: Fine-tuning parameters:\n        - **`stability`**: Controls speech consistency (`0.0` to `1.0`).\n        - **`similarityBoost`**: Adjusts speech resemblance to the reference voice.\n        - **`style`**: Affects expressiveness.\n        - **`useSpeakerBoost`**: Enhances clarity and presence.\n\n---\n\n### 4. Build the Userscript\n\nRun:\n\n```sh\nnpm run build\n# or\nyarn build\n```\n\nThe compiled userscript will be generated in the `dist/` directory.\n\n---\n\n### 5. Install the Userscript\n\n1. Locate `dist/gtr.user.js`.\n2. Open your userscript manager and manually add the script.\n\n⚠️ **Security Warning:**  \nYour ElevenLabs API key is stored in plain text within the userscript. **Do not share your script with others unless you have removed or obfuscated the key.**\n\n---\n\n## List of Languages\n\nThe list is out of date? Please open an [issue](https://github.com/blmage/glossika-tts-replacer/issues/new?template=Blank+issue) to let me know!\n\n| Language | Key (Glossika) | Code (ElevenLabs) |\n| --- |----------------|------------------ |\n| Arabic (Egyptian) | `arz-sd` | Not Supported |\n| Arabic (Standard) | `arb-sd` | Not Supported |\n| Armenian (Eastern) | `hye-sd` | Not Supported |\n| Azerbaijani | `azj-sd` | Not Supported |\n| Belarusian | `bel-sd` | Not Supported |\n| Bengali (India) | `ben-in` | Not Supported |\n| Bulgarian | `bul-sd` | `bul` |\n| Cantonese (HK) | `yue-hk` | Not Supported |\n| Catalan | `cat-sd` | Not Supported |\n| Chinese (Beijing) | `cmn-cn` | `zh` |\n| Chinese (Taiwan) | `cmn-tw` | `zh` |\n| Croatian | `hrv-sd` | `hr` |\n| Czech | `ces-sd` | `cs` |\n| Danish | `dan-sd` | `da` |\n| Dutch | `nld-sd` | `nl` |\n| English (UK) | `eng-gb` | `en-gb` |\n| English (US) | `eng-us` | `en-us` |\n| Estonian | `ekk-sd` | Not Supported |\n| Finnish (SW dialect) | `fin-sout2677` | `fi` |\n| French | `fra-sd` | `fr` |\n| Gaelic | `gla-sd` | Not Supported |\n| Georgian | `kat-sd` | Not Supported |\n| German | `deu-sd` | `de` |\n| Greek (Modern) | `ell-sd` | `el` |\n| Hakka (Hailu) | `hak-hl` | Not Supported |\n| Hakka (Sixian) | `hak-sx` | Not Supported |\n| Hebrew | `heb-sd` | Not Supported |\n| Hindi | `hin-sd` | `hi` |\n| Hungarian | `hun-sd` | `hu` |\n| Icelandic | `isl-sd` | Not Supported |\n| Indonesian | `ind-sd` | `id` |\n| Irish | `gle-co` | Not Supported |\n| Italian | `ita-sd` | `it` |\n| Japanese | `jpn-sd` | `ja` |\n| Kazakh | `kaz-sd` | Not Supported |\n| Korean | `kor-sd` | `ko` |\n| Kurdish (Sorani) | `ckb-sd` | Not Supported |\n| Latvian | `lav-sd` | Not Supported |\n| Lithuanian | `lit-sd` | Not Supported |\n| Manx | `glv-sd` | Not Supported |\n| Mongolian | `khk-sd` | Not Supported |\n| Moroccan Arabic | `ary-sd` | Not Supported |\n| Norwegian (Nynorsk) | `nno-sd` | `no` |\n| Persian | `pes-sd` | Not Supported |\n| Polish | `pol-sd` | `pl` |\n| Portuguese (Brazil) | `por-br` | `pt-br` |\n| Portuguese (European) | `por-pt` | `pt` |\n| Russian | `rus-sd` | `ru` |\n| Serbian (Ekavian) | `srp-ek` | Not Supported |\n| Slovak | `slk-sd` | `sk` |\n| Slovene | `slv-sd` | Not Supported |\n| Spanish (Mexico) | `spa-mx` | `es-mx` |\n| Spanish (Spain) | `spa-es` | `es` |\n| Swahili | `swa-sd` | Not Supported |\n| Swedish | `swe-sd` | `sv` |\n| Tagalog | `tgl-sd` | `fil` |\n| Taiwanese Hokkien | `nan-tw` | Not Supported |\n| Thai | `tha-sd` | `th` |\n| Turkish | `tur-sd` | `tr` |\n| Ukrainian | `ukr-sd` | `uk` |\n| Uzbek | `uzn-sd` | Not Supported |\n| Vietnamese (Northern) | `vie-hn` | `vi` |\n| Vietnamese (Southern) | `vie-sg` | `vi` |\n| Welsh | `cym-sd` | Not Supported |\n| Wenzhounese (Wu) | `wuu-wz` | Not Supported |\n\n---\n\n## Usage\n\nOnce installed, the script automatically replaces Glossika’s TTS with custom voices from ElevenLabs.\n\nTo change voices or adjust settings, modify `settings.json` and rebuild the script.\n\n---\n\n## Contributing\n\nContributions are welcome!\n\n- Open an [issue](https://github.com/blmage/glossika-tts-replacer/issues/new?template=Blank+issue) for bug reports or suggestions.\n- Submit a [pull request](https://github.com/blmage/glossika-tts-replacer/compare) for code contributions.\n\n---\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n**Glossika is a registered trademark of Glossika Pte. Ltd. This extension is not affiliated with Glossika in any way.**  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblmage%2Fglossika-tts-replacer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblmage%2Fglossika-tts-replacer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblmage%2Fglossika-tts-replacer/lists"}