LiveKit Agent Plugins for Tencent
Project description
LiveKit Plugins Tencent
Agent Framework plugin for services from Tencent. currently supports: STT.
Installation
pip install livekit-plugins-tencent
Pre-requisites
- tencent STT environment variable:
TENCENT_STT_APP_ID,TENCENT_STT_SECRET_KEY,TENCENT_STT_ID
Usage
This example shows how to use the Tencent STT plugin.
from livekit.agents import Agent, AgentSession, JobContext, cli, WorkerOptions
from livekit.plugins import tencent
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 tencent cloud console. https://console.cloud.tencent.com/
stt=tencent.STT(app_id=xxx, secret_key=xxx, secret_id=xxx),
)
await session.start(agent=agent, room=ctx.room)
if __name__ == "__main__":
load_dotenv()
cli.run_app(WorkerOptions(entrypoint_fnc=entry_point))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file livekit_plugins_tencent-1.1.2.post5.tar.gz.
File metadata
- Download URL: livekit_plugins_tencent-1.1.2.post5.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ab80c43029a0eb7647529fec4127bc9b13ee137a24d103ab6335ae2c11a1bc1
|
|
| MD5 |
551aa4685bddc2aa958a9b8314c560b7
|
|
| BLAKE2b-256 |
032906cbf8207a996e33238bb452f758ce9c9c9e521eb60b78a626891266adf4
|
File details
Details for the file livekit_plugins_tencent-1.1.2.post5-py3-none-any.whl.
File metadata
- Download URL: livekit_plugins_tencent-1.1.2.post5-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c70f927fa9730a36422bc774c24430fc4457f90fd6673d2e98390980b115df6
|
|
| MD5 |
b4855169ee6b8dd8a76b69953fb9edab
|
|
| BLAKE2b-256 |
6cf7abe7312679083a6684ab8188f3a0b8b47fb46415bff00dff5d9454c45753
|