-
Notifications
You must be signed in to change notification settings - Fork 277
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
add sounddevice multiplatform client #111
base: main
Are you sure you want to change the base?
Conversation
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!
The unused variable needs a change.
And I need to think whether to accept it or suggest moving this script elsewhere... I'm leaving it to other day.
I fixed the unused variable. |
parser = ArgumentParser(__doc__) | ||
parser.add_argument('--host', type=str, default='localhost', help='Host name') | ||
parser.add_argument('--port', type=int, default=43007, help='Port number') | ||
parser.add_argument('--chunk', type=int, default=1000, help='Chunk size in ms') |
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.
just a hint: there is also another variable called chunk with another meaning. maybe we can rename this one to a more speaking one which indicates its about MS?
# Audio configuration needed for whisper_online_server.py | ||
SAMPLE_RATE = 16000 | ||
CHANNELS = 1 | ||
CHUNK = 1024 |
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.
maybe rename it to
CHUNK = 1024 | |
BLOCKSIZE = 1024 |
since its only used for this regards? =)
arecord -f S16_LE -c1 -r 16000 -t raw -D default | nc localhost 43001 | ||
|
||
which streams audio data from the microphone to the server. | ||
Tested on Mac Os. |
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.
just tested it :)
Tested on Mac Os. | |
Tested on Mac Os and Linux. |
No description provided.