voice stuff

This commit is contained in:
Amish Shah
2016-08-25 14:24:06 +01:00
parent 253789f398
commit d6f5df39fc
10 changed files with 48 additions and 30 deletions

View File

@@ -4,6 +4,7 @@ const fs = require('fs-extra');
class DefaultPlayer extends BasePlayer {
playFile(file) {
this._shutdown();
const fileStream = fs.createReadStream(file).on('error', console.log);
const pcmStream = this.convertStream(fileStream).on('error', console.log);
const dispatcher = this.playPCMStream(pcmStream);