|
2 | 2 |
|
3 | 3 | > Train your listening skills by transcribing real speech from YouTube videos. |
4 | 4 |
|
5 | | -LinguaLoop is a single-page web application designed to improve language |
| 5 | +`lingua-loop` is a single-page web application designed to improve language |
6 | 6 | listening skills through active transcription. It is based on a |
7 | 7 | transcription-first learning approach where users repeatedly listen to short |
8 | 8 | audio segments and attempt to write down what they've heard. |
9 | 9 |
|
10 | | -To run the web application on your computer, you need Python version 3.12 |
11 | | -or higher installed. Then you can do the following (in a virtual environment |
12 | | -if you want) in a terminal: |
| 10 | +## Installation |
| 11 | + |
| 12 | +To run the web application on your computer, you need Python version 3.12 or |
| 13 | +higher installed. It is recommended to create a dedicated virtual environment |
| 14 | +first before installing `lingua-loop`. |
| 15 | + |
| 16 | +Using conda: |
| 17 | + |
| 18 | +``` |
| 19 | +conda create --name lingua-loop python=3.12 |
| 20 | +conda activate lingua-loop |
| 21 | +``` |
| 22 | + |
| 23 | +Using venv on Windows, if you know your python version is 3.12 or higher, |
| 24 | +open `Command Prompt`: |
| 25 | + |
| 26 | +``` |
| 27 | +python -m venv .venv_lingua_loop |
| 28 | +.\.venv_lingua_loop\Scripts\activate |
| 29 | +``` |
| 30 | + |
| 31 | +Using venv on Linux/macOS, if you know your python version is 3.12 or higher, |
| 32 | +open a terminal: |
| 33 | + |
| 34 | +``` |
| 35 | +python -m venv .venv_lingua_loop |
| 36 | +. .venv_lingua_loop/bin/activate |
| 37 | +``` |
| 38 | + |
| 39 | +Then you can install the package: |
13 | 40 |
|
14 | 41 | ``` |
15 | 42 | pip install git+https://github.com/jfdev001/lingua-loop.git |
16 | 43 | ``` |
17 | 44 |
|
18 | | -You can launch the app, which will automatically open a web browser, by doing |
19 | | -the following in a terminal: |
| 45 | +For a faster install for users more familiar with Python packages and virtual |
| 46 | +environments, you can use the [uv](https://github.com/astral-sh/uv) package |
| 47 | +manager, go to section [Installation with uv](#installation-with-uv) for details. |
| 48 | + |
| 49 | + |
| 50 | +## Usage |
| 51 | + |
| 52 | +You can launch the app, which will automatically open a web browser, with the |
| 53 | +following command in a terminal: |
20 | 54 |
|
21 | 55 | ``` |
22 | 56 | lingua-loop |
@@ -59,10 +93,9 @@ bug fixes. Please open a GitHub issue if you encounter problems! |
59 | 93 |
|
60 | 94 | # Future Work |
61 | 95 |
|
62 | | - |
63 | 96 | Some possible extension ideas: |
64 | 97 |
|
65 | | -1. Significantly improve the styling. |
| 98 | +1. Significantly improve the styling/UX. |
66 | 99 | 2. Integrate Anki-style flash cards for selected words. A word should be added |
67 | 100 | to a flash card deck in addition to the context in which it occurred (e.g., |
68 | 101 | sentence or phrase). The user *should* write additional context to keep them |
@@ -178,6 +211,38 @@ the frontend dependencies with: |
178 | 211 | npm install |
179 | 212 | ``` |
180 | 213 |
|
| 214 | +# Extras |
| 215 | + |
| 216 | +## Installation with uv |
| 217 | + |
| 218 | +If you do not already have the `uv` package manager installed, you can go to |
| 219 | +Astral's official documentation and follow the [installation |
| 220 | +instructions](https://docs.astral.sh/uv/getting-started/installation/). |
| 221 | + |
| 222 | +If you already have a conda base environment and are okay installing |
| 223 | +`lingua-loop` there with `uv`, do the following: |
| 224 | + |
| 225 | +``` |
| 226 | +uv pip install git+https://github.com/jfdev001/lingua-loop.git --system |
| 227 | +``` |
| 228 | + |
| 229 | +Otherwise, you can follow whichever `uv` workflow you're comfortable with, but |
| 230 | +for those familiar with `pip`, the following is the easiest (on Linux/macOS): |
| 231 | + |
| 232 | +``` |
| 233 | +python -m venv .venv_lingua_loop |
| 234 | +. .venv_lingua_loop/bin/activate |
| 235 | +uv pip install git+https://github.com/jfdev001/lingua-loop.git |
| 236 | +``` |
| 237 | + |
| 238 | +For Windows users, you could execute the above commands using `Command Prompt`: |
| 239 | + |
| 240 | +``` |
| 241 | +python -m venv .venv_lingua_loop |
| 242 | +.\.venv_lingua_loop\Scripts\activate |
| 243 | +uv pip install git+https://github.com/jfdev001/lingua-loop.git |
| 244 | +``` |
| 245 | + |
181 | 246 | # References |
182 | 247 |
|
183 | 248 | Below are a series of references, in no particular order, that I used to gain |
|
0 commit comments