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.5.post0.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.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.1.5.post0.tar.gz
Algorithm Hash digest
SHA256 fef9a1913164f07f418ddd8408836f6e7458f04b6f714e22ce81771fa305e08d
MD5 89b5ed098bf20325fb068516e36f899c
BLAKE2b-256 ffa3e355e107e7582c6fa57a9828f2a4bc06611ccba8e858141ec027719b669d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.1.5.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 c855628682491d26afbe57867e5c52a6814cbce21d24a009e580176aa8bd6203
MD5 ba78b0e6e10ea40d912dbf354b616009
BLAKE2b-256 61b50827cfc9650aa7b51befe9f4a2dd535ea8bb64b62eaf6cbe6b55238facf7

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