adjust readme
This commit is contained in:
@@ -1,19 +1,19 @@
|
|||||||
# transmit data over sound
|
# transmit data over sound
|
||||||
|
|
||||||
## setup
|
## setup
|
||||||
after cloning this repository, is recommended to create a virtual environment to install the needed packages:
|
after cloning this repository, is recommended to create a virtual environment to install the needed packages:
|
||||||
`python3 -m venv venv`
|
`python3 -m venv venv`
|
||||||
on mac/linux:
|
on mac/linux:
|
||||||
`source venv/bin/activate`
|
`source venv/bin/activate`
|
||||||
on windows:
|
on windows:
|
||||||
`venv\Scripts\activate`
|
`venv\Scripts\activate`
|
||||||
now you can install the requirements:
|
now you can install the requirements:
|
||||||
`python3 -m pip install -r requirements.txt`
|
`python3 -m pip install -r requirements.txt`
|
||||||
|
|
||||||
## transmit data
|
## transmit data
|
||||||
edit the line 9 of transmissor.py file, replacing the string that you want to transmit:
|
edit the line 9 of transmissor.py file, replacing the string that you want to transmit:
|
||||||
`payload = b"Hello World!"`
|
`payload = b"Hello World!"`
|
||||||
and run transmissor.py, it will generate the noise of data, you can record it externally
|
and run transmissor.py, it will generate the noise of data, you can record it externally
|
||||||
|
|
||||||
## decode data
|
## decode data
|
||||||
run receptor.py, it will stay hearing the built in microphone and decode all heared data
|
run receptor.py, it will stay hearing the built in microphone and decode all heared data
|
||||||
Reference in New Issue
Block a user