Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ online.init() # refresh if you're going to re-use the object for the next audio

`whisper_online_server.py` has the same model options as `whisper_online.py`, plus `--host` and `--port` of the TCP connection and the `--warmup-file`. See the help message (`-h` option).

Client example:
#### Client example on the Linux system:

```
arecord -f S16_LE -c1 -r 16000 -t raw -D default | nc localhost 43001
Expand All @@ -208,6 +208,17 @@ arecord -f S16_LE -c1 -r 16000 -t raw -D default | nc localhost 43001

- nc is netcat with server's host and port

#### Client example on the Mac system:

List microphones:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> List of sounddevices

not only microphones are there

```
ffmpeg -hide_banner -f avfoundation -list_devices true -i ""
```

Live stream raw audio:
```
ffmpeg -hide_banner -f avfoundation -i ":0" -ac 1 -ar 48000 -acodec pcm_s16le -ar 16000 -f s16le -loglevel error - | nc localhost 50000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

-ar 48000 seems to be redundant, because there is -ar 16000.

And -acodec pcm_s16le and -f s16le seem to be duplicated.

Can you check if these options could be simpler?

Also, can you expand what to do with list of microphones? You probably need to pass the :0 from the list to the other command, right? Make it explicit.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```

## Background

Expand Down