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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.2.6.tar.gz
Algorithm Hash digest
SHA256 b7118c309e9f38c5e188b1578d358d351f2e21150740913ec1fa3dba0c9eba21
MD5 06fa5febe51a03ef9e91e39be2bd4e20
BLAKE2b-256 f620d4d61524092c46eed9a42c7dd6e38eff587c260614d1348be15403474188

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3c5906deecbe08e997a62dfb13c8492e51bab06e998dd5164f25fa84e4f5e4d9
MD5 d7f4851c52418fddb6ed912c006aaa0c
BLAKE2b-256 31b2a6fe460de3f8a0e14df4093c7dbcf610e50ea20e32199454cf11eabb0018

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