mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
use mode 17 in example
This commit is contained in:
parent
a5ec161773
commit
a3e02dd523
2 changed files with 3 additions and 3 deletions
2
Makefile
vendored
2
Makefile
vendored
|
|
@ -14,7 +14,7 @@ CXX = clang++ -stdlib=libc++ -march=native
|
|||
all: encode decode
|
||||
|
||||
test: encode decode
|
||||
$(QEMU) ./encode audio.wav 8000 8 1 1500 5 /dev/urandom
|
||||
$(QEMU) ./encode audio.wav 8000 8 1 1500 17 /dev/urandom
|
||||
$(QEMU) ./decode audio.wav /dev/null
|
||||
|
||||
encode: encode.cc common.hh
|
||||
|
|
|
|||
4
README.md
vendored
4
README.md
vendored
|
|
@ -12,7 +12,7 @@ dd if=/dev/urandom of=uncoded.dat bs=1 count=256
|
|||
Encode file ```uncoded.dat``` to ```encoded.wav``` [WAV](https://en.wikipedia.org/wiki/WAV) audio file with 8000 Hz sample rate, 16 bits and only 1 (real) channel:
|
||||
|
||||
```
|
||||
./encode encoded.wav 8000 16 1 1500 5 uncoded.dat
|
||||
./encode encoded.wav 8000 16 1 1500 17 uncoded.dat
|
||||
```
|
||||
|
||||
Start recording to ```recorded.wav``` audio file and stop after 5 seconds:
|
||||
|
|
@ -82,7 +82,7 @@ Prerequisite: [disorders](https://github.com/aicodix/disorders)
|
|||
Encode ```uncoded.dat``` to [analytic](https://en.wikipedia.org/wiki/Analytic_signal) audio signal, add [multipath](https://en.wikipedia.org/wiki/Multipath_propagation), [CFO, SFO](https://en.wikipedia.org/wiki/Carrier_frequency_offset), [AWGN](https://en.wikipedia.org/wiki/Additive_white_Gaussian_noise), decode and compare:
|
||||
|
||||
```
|
||||
./encode - 8000 16 2 1500 5 uncoded.dat | ../disorders/multipath - - ../disorders/multipath.txt 10 | ../disorders/cfo - - 234.567 | ../disorders/sfo - - 147 | ../disorders/awgn - - -30 | ./decode - - | diff -q -s uncoded.dat -
|
||||
./encode - 8000 16 2 1500 17 uncoded.dat | ../disorders/multipath - - ../disorders/multipath.txt 10 | ../disorders/cfo - - 234.567 | ../disorders/sfo - - 147 | ../disorders/awgn - - -20 | ./decode - - | diff -q -s uncoded.dat -
|
||||
```
|
||||
|
||||
### Reading
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue