MiniMaxTTSSettings (minimax/tts.py)

pipecat · src/pipecat/services/minimax/tts.py · python · BSD-2-Clause
voice

MiniMax TTS service for streaming text-to-speech synthesis in AI apps

# Source: https://github.com/pipecat-ai/pipecat | License: BSD-2-Clause | Copyright 2024–2026, Daily
# Provided via justclaw.it.com; keep this notice with the code.
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#

"""MiniMax text-to-speech service implementation.

This module provides integration with MiniMax's T2A (Text-to-Audio) API
for streaming text-to-speech synthesis.
"""

import json
from collections.abc import AsyncGenerator, Mapping
from dataclasses import dataclass, field
from typing import Any, Self

import aiohttp
from loguru import logger
from pydantic import BaseModel

from pipecat.adapters.tts.base_expression_adapter import BaseExpressionAdapter
from pipecat.adapters.tts.services.minimax_adapter import MiniMaxExpressionAdapter
from pipe

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key