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(
        # you can find model and voice id at https://platform.minimaxi.com/document/T2A%20V2?key=66719005a427f0c8a5701643
        stt=minimax.STT(model="xxx", voice_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_minimax-1.1.0.tar.gz (6.5 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.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.1.0.tar.gz
Algorithm Hash digest
SHA256 5f854ca378e0892289f1129b89738d8b6756d508f26b4d770ea7c98a09f805ba
MD5 835afab59f78b4379461c62c56cfaa0e
BLAKE2b-256 ab1eb8ca97ad6f3129f0f0f55654a155f37acd669c2c84fe230a7d0407484bbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 017d6737331539ede6ce04745d32fa7f00cf4050d059e9a885d428c636f324c4
MD5 41f66b2a7fdd2ae8e839f832dad8d328
BLAKE2b-256 ad80e9465a18fc917897270740ac225483137cd6ca164ae1e74cf4893caba105

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