index.d.ts 468 B

12345678910111213141516
  1. declare module 'say' {
  2. const say: SayJS.Say;
  3. namespace SayJS {
  4. type errorCallback = (err: string) => void;
  5. class Say {
  6. public export(text: string, voice?: string, speed?: number, filePath?: string, callback?: errorCallback): void;
  7. public speak(text: string, voice?: string, speed?: number, callback?: errorCallback): void;
  8. public stop(): void;
  9. public getInstalledVoices(callback: errorCallback): void;
  10. }
  11. }
  12. export = say;
  13. }