UNPKG

langcode

Version:

A Plugin-Based Framework for Managing and Using LangChain

15 lines (14 loc) 621 B
import { Plugin } from "../../types"; import { PluginType, TextToSpeechInitConfig, TextToSpeechRunArgs, TextToSpeechExpose } from "../../types"; export default class TextToSpeechPlugin implements Plugin<TextToSpeechInitConfig, TextToSpeechRunArgs, TextToSpeechExpose, any> { name: string; description: string; type: PluginType; RunConfigExample: TextToSpeechRunArgs; InitConfigExample: TextToSpeechInitConfig; private apiKey; private defaultVoiceId; expose(): TextToSpeechExpose; init(config: TextToSpeechInitConfig): Promise<void>; run(args: TextToSpeechRunArgs): Promise<any>; }