An open API service indexing awesome lists of open source software.

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

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.