▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Multi-LangTTS-MC
Multi-LangTTS-MC

Multi-LangTTS-MC

Adds real-time multilingual Text-to-Speech (TTS) to Minecraft chat using Google Translate and ElevenLabs, with async processing and zero performance impact.

Оцените первым
95
1

Multi LangTTS MC

Multi-language Text-to-Speech Mod for Minecraft


📋 Overview

Multi LangTTS MC is a client-side modification that delivers real-time, multi-language Text-to-Speech (TTS) synthesis for in-game chat. Designed for accessibility, immersion, and multilingual server environments, the mod intercepts chat messages, processes them asynchronously, and converts them into high-quality speech using configurable external providers—all without impacting game performance.


✨ Core Features

🔊 Text-to-Speech Engine

  • Dual Provider Support:
    • Google Translate TTS (Free, 100+ languages)
    • ElevenLabs API (Premium, expressive voices, 29+ languages)
  • Non-Blocking Architecture: All synthesis, network requests, and audio decoding run on dedicated background threads.
  • Audio Caching: Reduces redundant API calls and latency for repeated phrases.
  • MP3 Validation: Strict byte-signature detection filters malformed or error responses.
  • Rate Limiting: Configurable minimum interval between synthesis requests prevents queue saturation.

💬 Chat Processing

  • Real-Time Synthesis: Automatically converts player messages, server broadcasts, and system notifications into spoken audio.
  • Smart Spam Filtering: Configurable cooldown thresholds prevent repetitive messages from triggering excessive playback.
  • Text Sanitization: Strips Minecraft formatting codes (§, &), handles bidirectional markers, and applies RTL formatting for Arabic scripts.
  • Player Name Handling: Optional speaker labels with language-aware formatting (e.g., "يقول" for Arabic, "says" for English).

🗂️ Chat Logging System

  • Daily Rotated Logs: Plaintext logs stored in logs/multilangtts-mc/chat-YYYY-MM-DD.txt.
  • In-Game Viewer: Scrollable interface with per-message replay via TTS.
  • Export Functionality: Export session logs to custom file paths.
  • Async I/O: Non-blocking file writes prevent gameplay stutter.

⚙️ Configuration & UI

  • ModMenu Integration: Full settings interface accessible via ModMenu or keybind.
  • Cloth Config Backend: Live configuration reloading without restarting the game.
  • Provider-Specific Settings:
    • Google: Language code selection
    • ElevenLabs: API key, Voice ID, Model ID, Stability, Similarity Boost, Style Exaggeration, Speed
  • Test Suite: Custom phrase input with one-click playback verification.

⌨️ Keybindings

ActionDefault KeyCategory
Toggle TTSBMulti LangTTS MC
Open Chat Log ViewerVMulti LangTTS MC

Fully customizable via Minecraft Controls menu


Supported Locales (Markdown Table)

Locale CodeLanguageRegion
af_zaAfrikaansSouth Africa
ar_saArabicSaudi Arabia
bg_bgBulgarianBulgaria
cs_czCzechCzech Republic
cy_gbWelshUnited Kingdom
da_dkDanishDenmark
de_deGermanGermany
de_atGermanAustria
de_chGermanSwitzerland
el_grGreekGreece
en_usEnglishUnited States
en_gbEnglishUnited Kingdom
es_esSpanishSpain
es_mxSpanishMexico
es_arSpanishArgentina
es_clSpanishChile
es_ecSpanishEcuador
es_uySpanishUruguay
es_veSpanishVenezuela
et_eeEstonianEstonia
eu_esBasqueSpain
fa_irPersianIran
fi_fiFinnishFinland
fil_phFilipinoPhilippines
fr_frFrenchFrance
fr_caFrenchCanada
ga_ieIrishIreland
gl_esGalicianSpain
hi_inHindiIndia
hr_hrCroatianCroatia
hu_huHungarianHungary
id_idIndonesianIndonesia
is_isIcelandicIceland
it_itItalianItaly
ja_jpJapaneseJapan
ko_krKoreanSouth Korea
lb_luLuxembourgishLuxembourg
lt_ltLithuanianLithuania
lv_lvLatvianLatvia
mk_mkMacedonianNorth Macedonia
mt_mtMalteseMalta
nl_nlDutchNetherlands
nl_beDutchBelgium
no_noNorwegianNorway
pl_plPolishPoland
pt_ptPortuguesePortugal
pt_brPortugueseBrazil
ro_roRomanianRomania
ru_ruRussianRussia
sk_skSlovakSlovakia
sl_siSlovenianSlovenia
sv_seSwedishSweden
sw_keSwahiliKenya
th_thThaiThailand
tr_trTurkishTurkey
uk_uaUkrainian
vi_vnVietnameseVietnam
zh_cnChinese (Simplified)China
zh_twChinese (Traditional)Taiwan

TTS Language Coverage

ProviderLanguagesNotes
Google Translate TTS100+Configurable via language code; default: ar
ElevenLabs29+Via eleven_multilingual_v2 model; requires API key


👥 Contributors

ContributorRole
mgvLead Development, Architecture, Core Systems
DFD3Co-Development, Testing, Integration


⚠️ Important Notes

  • ElevenLabs API Key: Required for premium voice synthesis. Obtain it from https://elevenlabs.io The API key is stored locally in the Minecraft config files on the user’s device It is only used to access Text-to-Speech (TTS) services and is not shared externally by the mod Recommended setup: https://elevenlabs.io/app/developers/api-keys > Create Key > set Access to Text to Speech Avoid using full-access API keys for better security
  • Google TTS Rate Limits: Public endpoint usage is subject to undocumented throttling.
  • Arabic Text Handling: Automatic RTL embedding via Unicode bidi markers; stripped in logs for readability.
  • Audio Playback: Blocking on worker thread only—never impacts main game loop.

  • 🌐 Repository: https://github.com/mgv-hub/Multi-LangTTS-MC
  • 🐛 Issues: https://github.com/mgv-hub/Multi-LangTTS-MC/issues
  • 📦 Releases: https://github.com/mgv-hub/Multi-LangTTS-MC/releases

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Клиент

Зависимости

Ссылки

Создатели

Детали

Лицензия:
Опубликован:2 месяца назад
Обновлён:2 месяца назад
Главная