You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

livekit-plugins-minimax

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

livekit-plugins-minimax

LiveKit Agent Plugins for Minimax(海螺AI)

1.2.0
pipPyPI
Maintainers
1

LiveKit Plugins Minimax

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

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"),
        llm=minimax.LLM(model="MiniMax-Text-01")
    )
    
    await session.start(agent=agent, room=ctx.room)


if __name__ == "__main__":
    load_dotenv()
    cli.run_app(WorkerOptions(entrypoint_fnc=entry_point))

Keywords

audio

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts