{"id":22391,"library":"speechmatics-rt","title":"Speechmatics Real-Time API Client","description":"Official Python client for Speechmatics real-time speech-to-text API. Version 1.0.0, supports Python >=3.9. Actively maintained.","status":"active","version":"1.0.0","language":"python","source_language":"en","source_url":"https://github.com/speechmatics/speechmatics-rt-sdk-python","tags":["speech-to-text","real-time","speechmatics","api-client"],"install":[{"cmd":"pip install speechmatics-rt","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from speechmatics_rt import WebsocketsClient","symbol":"WebsocketsClient","correct":"from speechmatics import WebsocketsClient"}],"quickstart":{"code":"from speechmatics_rt import WebsocketsClient\nimport os\n\n# Obtain an API key from Speechmatics\napi_key = os.environ.get('SM_API_KEY', '')\n\nclient = WebsocketsClient(api_key)\n\n# Define transcription configuration\nconf = {\n    \"type\": \"transcription\",\n    \"transcription_config\": {\n        \"language\": \"en\",\n        \"operating_point\": \"enhanced\"\n    }\n}\n\n# Open a connection and send audio file\ndef on_transcription(message):\n    print(message)\n\nclient.add_listener('transcription', on_transcription)\n\nwith open('audio.wav', 'rb') as audio:\n    client.run(audiostream, conf)","lang":"python","description":"Example of connecting and transcribing a local audio file."},"warnings":[{"fix":"Use `from speechmatics_rt import WebsocketsClient`.","message":"The library uses underscore in its Python module name: `speechmatics_rt`, not `speechmatics-rt`.","severity":"gotcha","affected_versions":"all"},{"fix":"Call `client.run_async(audiostream, conf)` instead of `client.run(audiostream, conf)` for async operation.","message":"The `run` method is blocking; for non-blocking use `run_async`.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to Python 3.9 or later.","message":"Version 1.0.0 removed support for Python <3.9.","severity":"breaking","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.0.0':21 '3.9':24 'activ':25 'api':5,19,36 'api-cli':35 'client':6,9,37 'maintain':26 'offici':7 'python':8,23 'real':3,13,32 'real-tim':2,12,31 'speech':16,28 'speech-to-text':15,27 'speechmat':1,11,34 'support':22 'text':18,30 'time':4,14,33 'version':20","created_at":"2026-04-27T17:04:56.169925+00:00","updated_at":"2026-04-27T17:04:56.169925+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'WebsocketsClient' from 'speechmatics' (/tmp/tmpa45l5t29/venv/lib/python3.12/site-packages/speechmatics/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.1.0","cli_name":"","cli_version":null,"type":"library","homepage":"https://www.speechmatics.com","github":"https://github.com/speechmatics/speechmatics-python-sdk","docs":"https://docs.speechmatics.com/","changelog":null,"pypi":"https://pypi.org/project/speechmatics-rt/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml","http-networking","communication"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}