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

Uploaded Python 3

File details

Details for the file livekit_plugins_tencent-1.1.2.post6.tar.gz.

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.1.2.post6.tar.gz
Algorithm Hash digest
SHA256 4e1dc75425ba2b7428cb4399e98c0ff4418a8e5a246c6fa5c8ff1a84a3e12164
MD5 289af08a80807e5b35c4af4c60720cc9
BLAKE2b-256 d701d90545db9e01972b04d3f72424e78c73cb2b198349261eb44a4f3bbd1909

See more details on using hashes here.

File details

Details for the file livekit_plugins_tencent-1.1.2.post6-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.1.2.post6-py3-none-any.whl
Algorithm Hash digest
SHA256 97c6d2884bc6ddeb95bb28b027c2159414981b400c7b59ebee68a07acb28633f
MD5 bf2112e5ce182fb0585ed04ab8871b69
BLAKE2b-256 9781cced93ea2c3f989841602aeb85e8b572157c603a96bd518e190d8aa4191c

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