Skip to main content

automatic English-to-Cyrillic text transcriber

Project description

English-to-Russian Phonetic Transcriber 🔤

Читать на русском языке

A Python library for automatic English-to-Cyrillic text transcription using a hybrid engine: dictionary lookup and neural G2P (gruut) for unknown words.

💡 Features

  • Full text transcription — handles any English text.
  • Custom vocabulary — augment the built-in dictionary with your own overrides.
  • Dynamic vocabulary management — add/remove custom words at runtime.

⚡ Key Highlights

  • Two-tier lookup — IPA via local 120k+ dict + neural G2P backup.
  • Graphemic adaptation — Cyrillic matches Russian orthography.
  • Declarative rules — update transliteration logic on the fly.

🚀 Installation

pip install eng-to-ru-transcriber

💻 Usage

Basic Example

from eng_to_ru_transcriber import Transcriber
t = Transcriber()
print(t.transcribe("Hello world")) # → Хэлоу уорлд

Custom Vocabulary

from eng_to_ru_transcriber import Transcriber
custom_vocabulary = {"python": "ˈpaɪθɑn"}
t = Transcriber(custom_vocabulary=custom_vocabulary)

Dynamic/Temporary Vocabulary

t.add_custom_word("word", "phonetic")
# Or temporarily:
t.transcribe("Text", custom_vocabulary={"Text": "..."})

🧪 Testing

pip install pytest
pytest

📊 Data Sources

Based on curated IPA data from OpenWiktionary.

📜 License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eng_to_ru_transcriber-0.1.1.tar.gz (889.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eng_to_ru_transcriber-0.1.1-py3-none-any.whl (887.6 kB view details)

Uploaded Python 3

File details

Details for the file eng_to_ru_transcriber-0.1.1.tar.gz.

File metadata

  • Download URL: eng_to_ru_transcriber-0.1.1.tar.gz
  • Upload date:
  • Size: 889.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for eng_to_ru_transcriber-0.1.1.tar.gz
Algorithm Hash digest
SHA256 91dc7ea09a1204b61da914c35913f7ce205cb77e14d973b93e91a042756947fd
MD5 c42915ac5146ccfd0dea2de14f6ff1e1
BLAKE2b-256 f39d0bdd4484ef13c905fff1eb8259cf31e3a31eabf1cea32e1ad564096fec9a

See more details on using hashes here.

File details

Details for the file eng_to_ru_transcriber-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for eng_to_ru_transcriber-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 131dd9c9e4eddacefbe60e44d2a7f2f97255ab9e5240ad5876239bdf06dea09d
MD5 a208960c8bef0f6942bbc896c9077313
BLAKE2b-256 f3509bf5265b8f6af1ec05fec5210963ff672e850e3310a2ffbb9460b2496e64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page