ALSA client doc

main
Jeff Moe 2023-09-21 16:59:54 -06:00
parent 6da5965076
commit aa10b60f17
1 changed files with 35 additions and 0 deletions

View File

@ -244,6 +244,41 @@ $ ./sndid-client
Sending samples/mono.wav to 127.0.0.1:9988
```
## ALSA Client
Use this script to stream from the microphone to the server,
using ALSA.
```
./sndid-alsa
```
Help:
```
$ ./sndid-alsa -h
usage: sndid-alsa [-h] [-i IP] [-p PORT] [-r RATE] [-t TIME]
Run sndid-alsa
options:
-h, --help show this help message and exit
-i IP, --ip IP Server IP address (default 127.0.0.1)
-p PORT, --port PORT Server network port (default 9988)
-r RATE, --rate RATE Rate in Hertz (default 48000)
-t TIME, --time TIME Length of segments in seconds (default 10)
```
Sample output:
```
$ ./sndid-alsa
Streaming ALSA in to 127.0.0.1:9988
Recording WAVE 'stdin' : Float 32 bit Little Endian, Rate 48000 Hz, Mono
```
Exit with `CTRL-C`.
# Development
To "develop", install the requirements: