Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livekit_plugins_tencent-1.1.0.post1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livekit_plugins_tencent-1.1.0.post1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_tencent-1.1.0.post1.tar.gz.

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 c6954711df40c68f19f2dec142ab091ad71858da446017b9aeb7ee8774f34867
MD5 52e5e0b262e6d4d4136563d6b368f81b
BLAKE2b-256 936c4ba018a13e214825d118d195965f80a2db2f3f612cd731102b398d569074

See more details on using hashes here.

File details

Details for the file livekit_plugins_tencent-1.1.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 3fc1f6655383eeea6b265df080e2ac2ca5955b421e87b8d0fc3386711c709921
MD5 cd5324e80931152a96043325535f94ed
BLAKE2b-256 a5bc9d5486255db00e1b68ed3dce10641171f4285a7abbe5b17de501d77ceb1e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page