{"library":"speechmatics-voice","title":"Speechmatics Voice Agent Python Client","type":"library","description":"Official Python client for Speechmatics Real-Time API for voice agents. Supports WebSocket-based streaming for real-time transcription and agent interaction. Current version: 0.2.8, release cadence: irregular.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install speechmatics-voice"],"cli":null},"imports":["from speechmatics.voice import VoiceAgentClient"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://speechmatics.com","github":"https://github.com/speechmatics/speechmatics-python-sdk","docs":"https://docs.speechmatics.com/","changelog":null,"pypi":"https://pypi.org/project/speechmatics-voice/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import asyncio\nfrom speechmatics.voice import VoiceAgentClient\n\nasync def main():\n    client = VoiceAgentClient(\n        url='wss://realtime.voice.speechmatics.com/v1',\n        auth_token=os.environ.get('SPEECHMATICS_AUTH_TOKEN', ''),\n    )\n    await client.start()\n    # Send audio data\n    await client.send_audio(b'\\x00' * 16000)\n    # Receive messages\n    async for msg in client:\n        print(msg)\n        if msg.get('type') == 'utterance_end':\n            break\n    await client.stop()\n\nasyncio.run(main())","lang":"python","description":"Connect to Speechmatics Voice Agent, send audio, and receive real-time transcriptions.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}