Skip to content

Commit 9c313da

Browse files
Merge pull request #51 from vinay235/python-rec-local
Python local recorder app and docs cleanup
2 parents 9f8c6f8 + 8767399 commit 9c313da

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

docs/guides/use_python_recorder.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ parent: How to Guides
1717
---
1818
Sometimes, when working on the frontend / backend of Adeus, you want an easier and faster feedback loop, one that does not require the use of the physical device. This is exactly what this guide is about.
1919

20-
#### Setup:
20+
#### **Setup**:
2121

2222
first, let's go to the script's folder:
2323

@@ -28,6 +28,13 @@ cd scripts/python_recorder_client
2828
And now let's install it's requirements.
2929
The script requires PyAudio to capture audio from your microphone, which has different setup to each OS:
3030

31+
Optional : Create a venv and activate before installing pip packages.
32+
33+
```bash
34+
python -m venv venv
35+
source venv/bin/activate
36+
```
37+
3138
**Windows**
3239

3340
```bash
@@ -52,7 +59,7 @@ Now, we can install the rest of the requirements:
5259
pip install -r requirements.txt
5360
```
5461

55-
#### Run the script
62+
#### **Run the script**
5663

5764
To run the script, you need to provide the --base-url (-u) and --token (-t) parameters, these are your Supabase (if you don't have these parameters, please go to the [setup tutorial](./index)).
5865

@@ -76,12 +83,12 @@ python main.py --help
7683
Run:
7784

7885
```bash
79-
python3 -u <SUPABASE_URL> -t <SUPABASE_TOKEN>
86+
python main.py -u <SUPABASE_URL> -t <SUPABASE_TOKEN>
8087
```
8188

8289
And that is it, you should now be able to record things locally, and test the frontend / backend without a physical device!
8390

84-
#### Important Notes
91+
#### **Important Notes**
8592

8693
- Ensure your base_url and token are correct to successfully send recordings.
8794
- Adjust the sensitivity to your microphone setup to avoid missing recordings or record silance.

scripts/python_recorder_client/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
parser = argparse.ArgumentParser(
1414
description='Record audio and send it to a server.',
15-
epilog='python recorder.py -s 60 -m 50.0 -u "https://{YOUR_ID}.supabase.co" -t "API_TOKEN" -r -v'
15+
epilog='python main.py -s 60 -m 50.0 -u "https://{YOUR_ID}.supabase.co" -t "API_TOKEN" -r -v'
1616
)
1717

1818
parser.add_argument('-u', '--base-url', type=str, required=True,

0 commit comments

Comments
 (0)