mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
you can also stream out
This commit is contained in:
parent
92a3ef6c31
commit
3d6227a5b7
1 changed files with 10 additions and 2 deletions
12
README.md
vendored
12
README.md
vendored
|
|
@ -41,12 +41,20 @@ diff -s uncoded.dat decoded.dat
|
|||
|
||||
### Stream Audio
|
||||
|
||||
This currently works on macOS and Linux only: Stream live audio into the decoder:
|
||||
This currently works on macOS and Linux only.
|
||||
|
||||
Stream live audio into the decoder:
|
||||
|
||||
```
|
||||
sox -q -d -c 1 -e float -t wav - | ./decode - decoded.dat
|
||||
```
|
||||
|
||||
Stream audio out of the encoder:
|
||||
|
||||
```
|
||||
./encode - 48000 32 1 1500 ANONYMOUS QAM16 1/2 short uncoded.dat | play -q -
|
||||
```
|
||||
|
||||
### Supported Modes
|
||||
|
||||
All modes need a bandwidth of 2400 Hz and there are two frame sizes.
|
||||
|
|
@ -180,7 +188,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 - 48000 16 2 1500 ANONYMOUS QAM16 1/2 short uncoded.dat | ../disorders/multipath - - ../disorders/multipath.txt 10 | ../disorders/cfo - - 234.567 | ../disorders/sfo - - 147 | ../disorders/awgn - - -20 | ./decode - - | diff -q -s uncoded.dat -
|
||||
./encode - 48000 32 2 1500 ANONYMOUS QAM16 1/2 short 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