assassin-bug/framework/tts/index.js

13 lines
265 B
JavaScript
Raw Normal View History

2022-11-26 01:22:02 +00:00
import { createOutput } from './output-factory';
export class TTS {
constructor(output = createOutput()) {
this.output = output;
}
speak(text) {
this.output.speak(text);
}
stop() {
this.output.stop();
}
}