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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.1.2.tar.gz
Algorithm Hash digest
SHA256 62484f6bdfd753b9b091f3a2e3169f84cce9c06cf7e0aa689aae0c82665d136a
MD5 20c9b53b87933e7e5d9a5fb3bd317f02
BLAKE2b-256 0f67f4a15f707270fc28903e2b5576715a69ec2be9aad2ec3f24ed77fb00e719

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c1c5cb197dd5168bc5b92f1fcc70ccd0d2356098ba28c71d3d3c8297162aa9b8
MD5 e90eedb7ec0b5b923104d26f647d5cd7
BLAKE2b-256 b12be360829c8461ffe787a1fe5f382b5130f37da52f4bc4827b0cd0115e7d39

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