-
Notifications
You must be signed in to change notification settings - Fork 278
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
Mac client example #123
base: main
Are you sure you want to change the base?
Mac client example #123
Conversation
Tested it on my MacBook M1 Pro laptop. I actually recorded the demo with it: https://youtu.be/kP4v07AlTow On that demo - I speak Russian language and have it all translated to English. |
README.md
Outdated
|
||
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 |
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.
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.
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.
Hi there! hey @Gldkslfmsd I have suggested more details here and @SlavikCA nicely accepted them:
https://github.com/ufal/whisper_streaming/pull/123/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R217-R227
what do you think?
README.md
Outdated
@@ -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: |
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
Thanks! It's very nice! |
Co-authored-by: jonigl <[email protected]>
Co-authored-by: jonigl <[email protected]>
Co-authored-by: jonigl <[email protected]>
No description provided.