Skip to content

Commit 751bdbd

Browse files
authored
Jfrazier/ more cleanup (#43)
Doesn't make sense at the moment to include GIF of app usage. * chore: improve installation instr, shortcut description, default transcription time to 10 sec * fix: better venv name * fix go to section * grammar * add windows user instructions for uv section
1 parent d342a50 commit 751bdbd

2 files changed

Lines changed: 76 additions & 11 deletions

File tree

README.md

Lines changed: 73 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,55 @@
22

33
> Train your listening skills by transcribing real speech from YouTube videos.
44
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
66
listening skills through active transcription. It is based on a
77
transcription-first learning approach where users repeatedly listen to short
88
audio segments and attempt to write down what they've heard.
99

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:
1340

1441
```
1542
pip install git+https://github.com/jfdev001/lingua-loop.git
1643
```
1744

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:
2054

2155
```
2256
lingua-loop
@@ -59,10 +93,9 @@ bug fixes. Please open a GitHub issue if you encounter problems!
5993

6094
# Future Work
6195

62-
6396
Some possible extension ideas:
6497

65-
1. Significantly improve the styling.
98+
1. Significantly improve the styling/UX.
6699
2. Integrate Anki-style flash cards for selected words. A word should be added
67100
to a flash card deck in addition to the context in which it occurred (e.g.,
68101
sentence or phrase). The user *should* write additional context to keep them
@@ -178,6 +211,38 @@ the frontend dependencies with:
178211
npm install
179212
```
180213

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+
181246
# References
182247

183248
Below are a series of references, in no particular order, that I used to gain

src/lingua_loop/templates/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ <h1>LinguaLoop</h1>
9494
<label for="numSecondsOfVideoToTranscribe">From the current time in the video, how many seconds of content
9595
do you want to transcribe?</label><br><br>
9696

97-
<input type="number" id="numSecondsOfVideoToTranscribe" min="5" value="5"
97+
<input type="number" id="numSecondsOfVideoToTranscribe" min="5" value="10"
9898
style="width: 80px; padding: 6px;" />
9999
</div>
100100

@@ -118,8 +118,8 @@ <h1>LinguaLoop</h1>
118118
<textarea id="userTextArea" placeholder="Type what you hear..." rows="5" cols="60"></textarea>
119119
<button id="scoreBtn">Score</button>
120120
<div id="hintBox" style="margin-top: 8px; color: #666; font-size: 0.8em;">
121-
Press <strong>Ctrl + Shift + L</strong> to automatically snap to restart video<br>at the beginning of
122-
the segment
121+
Press <strong>Ctrl + Shift + L</strong> to automatically snap <br>to the beginning of the transcription
122+
segment
123123
</div>
124124
</div>
125125

0 commit comments

Comments
 (0)