Files
assassin-bug/framework/tts/index.js
2022-11-26 02:22:02 +01:00

13 lines
265 B
JavaScript

import { createOutput } from './output-factory';
export class TTS {
constructor(output = createOutput()) {
this.output = output;
}
speak(text) {
this.output.speak(text);
}
stop() {
this.output.stop();
}
}