{"size": 397, "ext": "js", "max_stars_repo_path": "response/Directive.js", "max_stars_repo_name": "song940/xiaoai", "max_stars_repo_stars_event_min_datetime": "2018-12-12T05:44:14.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-22T18:06:20.000Z", "max_issues_repo_path": "response/Directive.js", "max_issues_repo_name": "song940/xiaoai", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "response/Directive.js", "max_forks_repo_name": "song940/xiaoai", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.85, "max_line_length": 44, "alphanum_fraction": 0.644836272}
const TTSItem = require('./TTSItem');
const AudioItem = require('./AudioItem');

class Directive {
  constructor(options){
    Object.assign(this, options);
  }
  text(tts){
    if(!(tts instanceof TTSItem))
      tts = new TTSItem(tts);
    this.tts_item = tts;
    return this;
  }
  audio(stream){
    this.audio_item = new AudioItem(stream);
    return this;
  }
}

module.exports = Directive;