diff --git a/README.md b/README.md index 46054c2..84baddd 100644 --- a/README.md +++ b/README.md @@ -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