Refactor translator.py into the lingo_overlay package

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

@dmunasingha is already working on this.

Since Nov 26, 2026.

  • #22 by @dmunasingha — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Read docs/ARCHITECTURE.md at the planned Phase 1 code layout, then inspect translator.py and the run.bat entry point. Identify how the current translator handles backend selection, configuration, and benchmarking before assessing the refactor. Done means the package follows the documented layout, both entry points still work, and benchmark results match; pull request #22 is already open for this issue.

Written by the indexing model from the issue text.

Description

infra

Split translator.py into the layout in docs/ARCHITECTURE.md#planned-code-layout-phase-1-refactor.

  • Common ASRBackend interface (detect_language(audio), translate(audio, lang)) so faster-whisper and whisper.cpp are interchangeable.
  • Typed config with validation and clear errors.
  • Keep run.bat and python translator.py working as entry points.
  • No behaviour change; benchmark numbers must match before and after.
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dmunasingha/lingo-overlay

All issues in dmunasingha/lingo-overlay

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.