https://github.com/vi/audiorepeat
ALSA-based program to record from mic and immediately play it back
https://github.com/vi/audiorepeat
Last synced: about 1 year ago
JSON representation
ALSA-based program to record from mic and immediately play it back
- Host: GitHub
- URL: https://github.com/vi/audiorepeat
- Owner: vi
- License: mit
- Created: 2020-04-30T18:31:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-30T18:38:55.000Z (about 6 years ago)
- Last Synced: 2025-02-28T06:04:32.844Z (over 1 year ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# audiorepeat
Record audio snippet from microphone (based on loundness) and immediately play it back when it sound stops.
```
$ audiorepeat
ON <-- you speak here
OFF <-- it hears you stopping speaking and starts playing the recording back
ON
OFF
^C
```
```
$ audiorepeat --help
Usage: audiorepeat [-R ] [-P ] [-r ] [-t ] [-l ] [-h ]
Record sound fragments from ALSA and play them back when silence is detected
Options:
-R, --record-device
ALSA device to record from
-P, --playback-device
ALSA device to play into
-r, --sample-rate sample rate for recording and playing back. Format is always
1 channel, s16. Default 48000.
-t, --threshold threshold of maximum i16 sample value, default 250. Audio
louder than that triggers ON mode
-l, --block-size number of samples per block
-h, --hysteresis number of silent blocks to wait before considering it "OFF".
--help display usage information
```
A pre-built Linux x86_64 executable is uploaded to Github Releases, but it may fail to work for you.