mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 22:35:41 +00:00
added CRC check of payload
This commit is contained in:
parent
361779211c
commit
cc3e9cc10f
3 changed files with 36 additions and 16 deletions
|
|
@ -3,7 +3,13 @@
|
|||
|
||||
Quick start:
|
||||
|
||||
Encode file ```uncoded.dat``` with ```64800``` bits to ```encoded.wav``` [WAV](https://en.wikipedia.org/wiki/WAV) audio file with 8000 Hz sample rate, 16 bits and only 1 (real) channel:
|
||||
Create file ```uncoded.dat``` with ```64768``` bits of random data:
|
||||
|
||||
```
|
||||
dd if=/dev/urandom of=uncoded.dat bs=1 count=8096
|
||||
```
|
||||
|
||||
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 uncoded.dat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue