echogarden
Version:
An easy-to-use speech toolset. Includes tools for synthesis, recognition, alignment, speech translation, language detection, source separation and more.
30 lines (29 loc) • 956 B
TypeScript
import { SynthesisVoice } from '../api/API.js';
import { Timeline } from '../utilities/Timeline.js';
export declare function synthesize(text: string, voiceId: string, language: string, options: ElevenLabsTTSOptions): Promise<{
rawAudio: {
audioChannels: Float32Array<ArrayBufferLike>[];
sampleRate: number;
};
timeline: Timeline | undefined;
}>;
export declare function getVoiceList(apiKey: string): Promise<SynthesisVoice[]>;
export interface ElevenLabsTTSOptions {
apiKey?: string;
modelId?: string;
stability?: number;
similarityBoost?: number;
style?: number;
useSpeakerBoost?: boolean;
seed?: number;
}
export declare const defaultElevenLabsTTSOptions: {
apiKey: undefined;
modelId: string;
stability: number;
similarityBoost: number;
style: number;
useSpeakerBoost: boolean;
seed: undefined;
};
export declare const supportedLanguagesInMultilingualModels: string[];