index.d.ts 404 B

123456789101112131415
  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. }
  10. }
  11. export = say;
  12. }