Skip to content
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 support/example for microphone or stream input for Realtime STT in python-sdk/websocket #95

Open
Baavro opened this issue Apr 13, 2024 · 2 comments
Labels
request Feature request

Comments

@Baavro
Copy link

Baavro commented Apr 13, 2024

There is no support/documentation provided for Microphone or Data Stream right now for input when using Transcribe in Real-Time

Implement an example websockets in any language with mic or stream support

@Baavro Baavro added the request Feature request label Apr 13, 2024
@HennerM
Copy link
Collaborator

HennerM commented Apr 13, 2024

Hi @Baavro. I added a Python example recently here: https://github.com/speechmatics/speechmatics-python/blob/master/examples/transcribe_from_microphone.py. This shows how to transcribe live from your local microphone in real-time.

You need to pip install sounddevice (https://pypi.org/project/sounddevice/) and select the device_id you want to use by running

python3 -m sounddevice

this can then be passed to python3 examples/transcribe_from_microphone.py -d $DEVICE -a $SPEECHMATICS_AUTH_TOKEN -l en.

Is this helpful?

@M-C-Dev
Copy link

M-C-Dev commented Aug 4, 2024

how can be grabbed the text chunks and final sentence from this code sir?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Feature request
Development

No branches or pull requests

3 participants