assassin-bug/framework/tts/index.js

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();
}
}