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.2.post3.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.2.post3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_minimax-1.1.2.post3.tar.gz.

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.1.2.post3.tar.gz
Algorithm Hash digest
SHA256 b0a62bafaf80e9a303cfcfb3b0f3af89ef89e4eefa71cb39bd72d674aa5ddfd6
MD5 19a828f03a5202a715e41e509b5dfec8
BLAKE2b-256 e1f3fb7d540ca14321630f97c5d49d757d584ad433ad3f5f271a9abdf5a9025d

See more details on using hashes here.

File details

Details for the file livekit_plugins_minimax-1.1.2.post3-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.1.2.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f5dce5d25243cba87c5c15954b2033a7776988c017e7bed0ff4c309b70d4aca
MD5 6721bffdb59076c4385f032a06f90eaa
BLAKE2b-256 050d79f8f7f2915ea917d9d931ebef1fedc7eed158cc99ad518d4b13fd2f65d9

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