Fish Audio TTS client for LiveKit Agents, supporting streaming and various audio formats.
# Source: https://github.com/livekit/agents | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
from __future__ import annotations
import asyncio
import os
import weakref
from dataclasses import dataclass, replace
from typing import Any
import aiohttp
import msgpack
from livekit.agents import (
APIConnectionError,
APIConnectOptions,
APIStatusError,
APITimeoutError,
tokenize,
tts,
utils,
)
from livekit.agents.types import DEFAULT_API_CONNECT_OPTIONS, NOT_GIVEN, NotGivenOr
from livekit.agents.utils import is_given
from .log import logger
from .models import LatencyMode, MP3Bitrate, OpusBitrate, OutputFormat, TTSModels
from .version import __version__
DEFA
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key