# LiveKit Plugins Baidu
Agent Framework plugin for services from Baidu. currently supports: [STT](https://cloud.baidu.com/doc/SPEECH/s/jlbxejt2i).
## Installation
```python
pip install livekit-plugins-baidu
```
## Pre-requisites
- Volcengine STT environment variable: `BAIDU_API_KEY`
## Usage
This example shows how to use the Baidu STT plugin.
```python
from livekit.agents import Agent, AgentSession, JobContext, cli, WorkerOptions
from livekit.plugins import baidu
from dotenv import load_dotenv
async def entry_point(ctx: JobContext):
await ctx.connect()
agent = Agent(instructions="You are a helpful assistant.")
session = AgentSession(
# app_id can be found in the baidu cloud console. https://console.bce.baidu.com/ai-engine/old/#/ai/speech/app/detail~appId=6752989
stt=volcengine.STT(app_id=1000000),
)
await session.start(agent=agent, room=ctx.room)
if __name__ == "__main__":
load_dotenv()
cli.run_app(WorkerOptions(entrypoint_fnc=entry_point))
```
Raw data
{
"_id": null,
"home_page": null,
"name": "livekit-plugins-baidu",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "audio, livekit, realtime, video, webrtc",
"author": null,
"author_email": "wangmengdi <790990241@qq.com>",
"download_url": "https://files.pythonhosted.org/packages/21/bb/0513facfd75dd4b2c1954a188be0b37f415a0781c0f583590e94ae15b9f7/livekit_plugins_baidu-1.2.8.tar.gz",
"platform": null,
"description": "# LiveKit Plugins Baidu\n\nAgent Framework plugin for services from Baidu. currently supports: [STT](https://cloud.baidu.com/doc/SPEECH/s/jlbxejt2i).\n\n## Installation\n```python\npip install livekit-plugins-baidu\n```\n\n## Pre-requisites\n\n- Volcengine STT environment variable: `BAIDU_API_KEY`\n\n## Usage\n\n\nThis example shows how to use the Baidu STT plugin.\n\n```python\nfrom livekit.agents import Agent, AgentSession, JobContext, cli, WorkerOptions\nfrom livekit.plugins import baidu\nfrom dotenv import load_dotenv\n\n\nasync def entry_point(ctx: JobContext):\n \n await ctx.connect()\n \n agent = Agent(instructions=\"You are a helpful assistant.\")\n\n session = AgentSession(\n # app_id can be found in the baidu cloud console. https://console.bce.baidu.com/ai-engine/old/#/ai/speech/app/detail~appId=6752989\n stt=volcengine.STT(app_id=1000000),\n )\n \n await session.start(agent=agent, room=ctx.room)\n\n\nif __name__ == \"__main__\":\n load_dotenv()\n cli.run_app(WorkerOptions(entrypoint_fnc=entry_point))\n```\n\n",
"bugtrack_url": null,
"license": null,
"summary": "LiveKit Agent Plugins for Xunfei",
"version": "1.2.8",
"project_urls": null,
"split_keywords": [
"audio",
" livekit",
" realtime",
" video",
" webrtc"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "9b472d85310359aa1e8b0b3432fe8f07653f02db2db73d7a62f3466f7c325b7a",
"md5": "99c05c440be2d20737079d023ab03176",
"sha256": "397eedb0dadf8f40f278c39eae0bbff92e8263a6c0c5fdf1b0dd324db75ab4da"
},
"downloads": -1,
"filename": "livekit_plugins_baidu-1.2.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "99c05c440be2d20737079d023ab03176",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 6683,
"upload_time": "2025-09-04T07:48:23",
"upload_time_iso_8601": "2025-09-04T07:48:23.136995Z",
"url": "https://files.pythonhosted.org/packages/9b/47/2d85310359aa1e8b0b3432fe8f07653f02db2db73d7a62f3466f7c325b7a/livekit_plugins_baidu-1.2.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "21bb0513facfd75dd4b2c1954a188be0b37f415a0781c0f583590e94ae15b9f7",
"md5": "057265fd8b13bc34c7027c3f3326a116",
"sha256": "e7ab46e9013410e99a948605025421ca9145c826fde026e34e7f3a283dd72b95"
},
"downloads": -1,
"filename": "livekit_plugins_baidu-1.2.8.tar.gz",
"has_sig": false,
"md5_digest": "057265fd8b13bc34c7027c3f3326a116",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 6913,
"upload_time": "2025-09-04T07:48:24",
"upload_time_iso_8601": "2025-09-04T07:48:24.428834Z",
"url": "https://files.pythonhosted.org/packages/21/bb/0513facfd75dd4b2c1954a188be0b37f415a0781c0f583590e94ae15b9f7/livekit_plugins_baidu-1.2.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-04 07:48:24",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "livekit-plugins-baidu"
}