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.2.2.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.2.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_tencent-1.2.2.tar.gz.

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.2.2.tar.gz
Algorithm Hash digest
SHA256 fed446a743d652d83e0db91d94df34e1aaa9428b784f1419ec7c385bdc8a4998
MD5 5533725ca50155efb077051e039f667b
BLAKE2b-256 3b076b9a7df9e2c2bd8ade68c59b6f314a2431849989e74e53ecb0822f96cd44

See more details on using hashes here.

File details

Details for the file livekit_plugins_tencent-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b756502863eea0d3936f435574c70b08ca8d89213e279c203df3cea0d6c87e67
MD5 667d3e91aa83a4f78e57aa435109c3ef
BLAKE2b-256 0e44d898f29e134faa35cde907080f73a0b6e1d9f51edc6ccefe898dc390e31d

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