assassin-bug/framework/tts/output-factory.js

18 lines
497 B
JavaScript
Raw Normal View History

2022-11-26 01:22:02 +00:00
import { BaseOutput } from './outputs/base-output';
import { AriaOutput } from './outputs/aria';
import { WebTTSOutput } from './outputs/webtts';
export function createOutput(key = 'aria') {
switch (key) {
case 'aria':
return AriaOutput;
break;
case 'webtts':
return WebTTSOutput;
break;
default:
return AriaOutput;
break;
}
}
export { WebTTSOutput, AriaOutput, BaseOutput };