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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.2.3.tar.gz
Algorithm Hash digest
SHA256 abb9e0271da31363931c748b55b86c3ee5adaaf5651c0dd4a09f9e243ec04b48
MD5 c9311cab33f54b6a1d7533ce5a07c342
BLAKE2b-256 7d4c2526f5e9fd7d05ec94a7c3e6c35c1c69779cb70701b5487907811ab429f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_tencent-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a348bb30d5dd220a0c9a7fce1f128a29aa0d01c24fa51bb97bd8aac4a1a30b6c
MD5 a1a42d9a7fa277fecbcf8fc4893f4ab1
BLAKE2b-256 761a8c2e127d2390deef8122eb34d9fa8f522de1571b5e63cd80dba88779b7b6

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