Skip to main content

LiveKit Agent Plugins for Minimax(海螺AI)

Project description

LiveKit Plugins Minimax

Agent Framework plugin for services from minimax(海螺AI). currently supports: TTS.

Installation

pip install livekit-plugins-minimax

Pre-requisites

  • Minimax environment variable: MINIMAX_API_KEY, MINIMAX_GROUP_ID you can find here

Usage

This example shows how to use the minimax TTS plugin.

from livekit.agents import Agent, AgentSession, JobContext, cli, WorkerOptions
from livekit.plugins import minimax
from dotenv import load_dotenv


async def entry_point(ctx: JobContext):
    
    await ctx.connect()
    
    agent = Agent(instructions="You are a helpful assistant.")

    session = AgentSession(
        stt=minimax.STT(),
    )
    
    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_minimax-1.0.17.tar.gz (7.1 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_minimax-1.0.17-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_minimax-1.0.17.tar.gz.

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.0.17.tar.gz
Algorithm Hash digest
SHA256 839efa380a55577667bcc2f7afb3216dc4b1a2e10c910170670bbe040910781a
MD5 6dfbff3b39298ff1f79cba25b325785d
BLAKE2b-256 56975bb41f654f7d3e25a60ab73cc720170f5edc0e654350bf08d5ca2c5361af

See more details on using hashes here.

File details

Details for the file livekit_plugins_minimax-1.0.17-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 8f60f83814ccd6f161c40856eb8995f6893b5c2a65c0307613bb1f139e1fc9f0
MD5 4477a5bd63a821d5ded45bceb05b50e6
BLAKE2b-256 161cdf0cda4342565f682d6e37c4316a87ce1282a89262e90f5d68b3836888dc

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