koishi-plugin-gpt-sovits-v2-api
Version:
Adapter for GPT-SoVITS v2
34 lines (33 loc) • 826 B
TypeScript
export interface VITSOptions {
text: string;
id?: number;
format?: string;
lang?: string;
length?: number;
noise?: number;
noisew?: number;
segment_size?: number;
streaming?: boolean;
}
export interface GPTSOVITSOptions extends VITSOptions {
reference_audio?: any;
text_prompt?: string;
prompt_text?: string;
prompt_lang?: string;
}
export type Lang = 'zh' | 'en' | 'fr' | 'ja' | 'ru' | 'de' | 'sh';
export type Speaker = {
id: number;
lang: Lang[];
name: string;
};
export type VitsEngine = "GPT-SOVITS";
export type SpeakerList = {
[key in VitsEngine]: Speaker[];
};
export type T4wefanText = {
help: string;
waiting: string;
'too-long': string;
};
export type AudioMime = 'audio/mpeg' | 'audio/wav' | 'audio/ogg' | 'audio/aac' | 'audio/flac';