Python client; sample output
parent
aef8ead880
commit
abc97ecb01
24
README.md
24
README.md
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue