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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.1.0.post4.tar.gz
Algorithm Hash digest
SHA256 4c6f2fe925e7b0d0a5e1d53eb84fef0ad7833a364ec74f4ab7d97738fcd65d7e
MD5 4df193359dc47641eb2ee6b7c5bd17c0
BLAKE2b-256 8826686e0ce8cb1e3d0f7beddbea7b4cf2f1f3b0f0fb0c0dd4c5f43ffab52cd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.1.0.post4-py3-none-any.whl
Algorithm Hash digest
SHA256 03d11853d8f548990223a9c20fd24821e904e2e621a2e32902beee333b3542d1
MD5 e589ae2f997437b51c19381d9d52c3e6
BLAKE2b-256 63e485a2e04dd4af261a216b48338bf807f116d15405f605cb9e95114737747f

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