UNPKG

langcode

Version:

A Plugin-Based Framework for Managing and Using LangChain

15 lines (14 loc) 612 B
import { Plugin } from "../../types"; import { PluginType, SpeechToTextInitConfig, SpeechToTextRunArgs, SpeechToTextExpose } from "../../types"; export default class SpeechToTextPlugin implements Plugin<SpeechToTextInitConfig, SpeechToTextRunArgs, SpeechToTextExpose, any> { name: string; description: string; type: PluginType; RunConfigExample: SpeechToTextRunArgs; InitConfigExample: SpeechToTextInitConfig; private apiKey; private model; expose(): SpeechToTextExpose; init(config: SpeechToTextInitConfig): Promise<void>; run(args: SpeechToTextRunArgs): Promise<any>; }