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.post0.tar.gz (7.3 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.post0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.1.2.post0.tar.gz
Algorithm Hash digest
SHA256 68c8151c1c883b3d41ca0eaeea64b97714aa04a67da359f7565849b2c5849fef
MD5 eb87aa894af61a3afc2ee7974137f3c0
BLAKE2b-256 08e97bba700fd4259c0fbafb241790d979fb878c0eda71fbd2182ecd59906757

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.1.2.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 8cd9decd6891621fbb5f122ce70134939d1c185989d1119d2be07cbc6bd2bb75
MD5 37d2db2a0e2f5b03cd4d11142ce4e99c
BLAKE2b-256 19acda48a1f3aa4ddbd6c1288915d678bb10fef67907fe7f09267d9ec33616a0

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