UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

28 lines (27 loc) • 905 B
/** * Fish Audio TTS Handler * * Implementation of TTS using Fish Audio API. Lower-cost alternative to * ElevenLabs with strong multilingual support and 15s voice cloning. * * @module voice/providers/FishAudioTTS * @see https://docs.fish.audio/text-to-speech/text-to-speech */ import type { TTSHandler, TTSOptions, TTSResult } from "../../types/index.js"; /** * Fish Audio Text-to-Speech Handler. * * Auth: `Authorization: Bearer ${FISH_AUDIO_API_KEY}`. * Models: speech-1.5 (standard), speech-1.6, s1 (default; latest). */ export declare class FishAudioTTS implements TTSHandler { readonly maxTextLength = 5000; private readonly apiKey; private readonly baseUrl; constructor(apiKey?: string); isConfigured(): boolean; synthesize(text: string, options?: TTSOptions): Promise<TTSResult>; private mapFormat; private effectiveFormat; private getSampleRate; }