Python client; sample output

main
Jeff Moe 2023-09-21 16:22:47 -06:00
parent aef8ead880
commit abc97ecb01
1 changed files with 17 additions and 7 deletions

View File

@ -208,18 +208,21 @@ return_predicted_species_list
## Client
Is such:
Requires mono wav file.
To convert stereo to mono with sox:
```
sox -c 2 stereo.wav -c 1 mono.wav
```
Run client to submit file to server thusly:
```
./sndid-client
```
Client sends file and has no output.
Just test bash script.
Below is for the Python version that doesn't work yet.
Help:
```
$ ./sndid-client.py -h
@ -234,6 +237,13 @@ options:
-f FILE, --file FILE Input filename to process (default samples/mono.wav)
```
Sample output:
```
$ ./sndid-client
Sending samples/mono.wav to 127.0.0.1:9988
```
# Development
To "develop", install the requirements: