-
Notifications
You must be signed in to change notification settings - Fork 411
Mac client example #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Mac client example #123
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
|
@@ -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: | ||
| ``` | ||
| 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 | ||
|
||
| ``` | ||
|
|
||
| ## Background | ||
|
|
||
|
|
||
There was a problem hiding this comment.
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