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.0.23.tar.gz (7.2 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.23-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.0.23.tar.gz
Algorithm Hash digest
SHA256 c24194b099473b9aa2aaabb28c9f844fe5b0a5d2f9e755b225d72f1f6a2b0c05
MD5 cfab8ffa1b586c3e10b332dce862cc00
BLAKE2b-256 0c5967618cc393b20c19c74d833b96615f3aeff140bb2fbe50c39651e79ab027

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 88ed437db5abce30e7d37f562ca4ad451596ad4d8d55075464ba72d1f0fde0d0
MD5 94c8487c751ba11bd5eebab5dd24f793
BLAKE2b-256 8840b85627b96ce92090ad4e019a093d8e2608351b3d333b17b4fae4620a3988

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