From 6c462f23ba7f914e98ce2d2a89a82cc9f34cdf7d Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 19 Apr 2021 14:42:09 +0300 Subject: [PATCH] Update README.md --- examples/r2t2/README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/r2t2/README.md b/examples/r2t2/README.md index d0e0c7a..4f9e577 100644 --- a/examples/r2t2/README.md +++ b/examples/r2t2/README.md @@ -9,13 +9,18 @@ Transmit data with the PC speaker This is a command-line program that encodes short messages/data into audio and plays it via the motherboard's PC speaker. To use this tool, you need to attach a [piezo speaker/buzzer](https://en.wikipedia.org/wiki/Piezoelectric_speaker) to your motherboard. Some computers have such speaker already attached. -You can then run the following command: +You can then run the following commands: ```bash +# transmit the message "test" with default protocol "[R2T2] Normal" echo test | sudo r2t2 -``` -This will transmit the message `test` via sound through the buzzer. +# transmit the message "hello" with protocol "[R2T2] Fast" +echo hello | sudo r2t2 -t10 + +# transmit the message "foo bar" with protocol "[R2T2] Fastest" +echo "foo bar"| sudo r2t2 -t11 +``` To receive the transmitted message, open the following page on your phone and place it near the speaker: