Skip to content

Add support/example for microphone or stream input for Realtime STT in python-sdk/websocket #95

Open

Description

@Baavro

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

Activity

  1. HennerM commented on Apr 13, 2024

    @HennerM
    Contributor

    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?

  2. M-C-Dev commented on Aug 4, 2024

    @M-C-Dev

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    requestFeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions