update to fsmrf with fix

This commit is contained in:
Dave Horton
2024-01-18 14:31:51 -05:00
parent 1a80910f91
commit 1dc664e155
3 changed files with 11 additions and 8 deletions

View File

@@ -244,6 +244,8 @@ class TaskSay extends Task {
} }
else { else {
this.logger.debug(`Say:exec sending command to play file ${filepath[segment]}`); this.logger.debug(`Say:exec sending command to play file ${filepath[segment]}`);
const {span} = this.startChildSpan('start-audio');
this.ep.once('playback-start', ({file}) => span?.end());
await ep.play(filepath[segment]); await ep.play(filepath[segment]);
this.logger.debug(`Say:exec completed play file ${filepath[segment]}`); this.logger.debug(`Say:exec completed play file ${filepath[segment]}`);
} }
@@ -265,6 +267,7 @@ class TaskSay extends Task {
this.notifyStatus({event: 'kill-playback'}); this.notifyStatus({event: 'kill-playback'});
this.ep.api('uuid_break', this.ep.uuid); this.ep.api('uuid_break', this.ep.uuid);
} }
this.ep.removeEventListeners('playback-start');
} }
} }
} }

14
package-lock.json generated
View File

@@ -31,7 +31,7 @@
"bent": "^7.3.12", "bent": "^7.3.12",
"debug": "^4.3.4", "debug": "^4.3.4",
"deepcopy": "^2.1.0", "deepcopy": "^2.1.0",
"drachtio-fsmrf": "^3.0.33", "drachtio-fsmrf": "^3.0.34",
"drachtio-srf": "^4.5.31", "drachtio-srf": "^4.5.31",
"express": "^4.18.2", "express": "^4.18.2",
"express-validator": "^7.0.1", "express-validator": "^7.0.1",
@@ -6607,9 +6607,9 @@
} }
}, },
"node_modules/drachtio-fsmrf": { "node_modules/drachtio-fsmrf": {
"version": "3.0.33", "version": "3.0.35",
"resolved": "https://registry.npmjs.org/drachtio-fsmrf/-/drachtio-fsmrf-3.0.33.tgz", "resolved": "https://registry.npmjs.org/drachtio-fsmrf/-/drachtio-fsmrf-3.0.35.tgz",
"integrity": "sha512-DE+gZwzLQMZWMBxWPlN5iHQgKLzh4o3FBAH8PYXHtCg878EG4KiOsVGjEfO2W1IFA7rFiGh98PlDThx9QJ6nDg==", "integrity": "sha512-hb8eOuv4K2mHRMjymu+t4Ut1WReVWu/QcaiBjPxmBS53y6PbCe63Na5Y/WUXUxFTmCOofu57LquwrEkbKhdYDw==",
"dependencies": { "dependencies": {
"camel-case": "^4.1.2", "camel-case": "^4.1.2",
"debug": "^2.6.9", "debug": "^2.6.9",
@@ -17304,9 +17304,9 @@
} }
}, },
"drachtio-fsmrf": { "drachtio-fsmrf": {
"version": "3.0.33", "version": "3.0.35",
"resolved": "https://registry.npmjs.org/drachtio-fsmrf/-/drachtio-fsmrf-3.0.33.tgz", "resolved": "https://registry.npmjs.org/drachtio-fsmrf/-/drachtio-fsmrf-3.0.35.tgz",
"integrity": "sha512-DE+gZwzLQMZWMBxWPlN5iHQgKLzh4o3FBAH8PYXHtCg878EG4KiOsVGjEfO2W1IFA7rFiGh98PlDThx9QJ6nDg==", "integrity": "sha512-hb8eOuv4K2mHRMjymu+t4Ut1WReVWu/QcaiBjPxmBS53y6PbCe63Na5Y/WUXUxFTmCOofu57LquwrEkbKhdYDw==",
"requires": { "requires": {
"camel-case": "^4.1.2", "camel-case": "^4.1.2",
"debug": "^2.6.9", "debug": "^2.6.9",

View File

@@ -47,7 +47,7 @@
"bent": "^7.3.12", "bent": "^7.3.12",
"debug": "^4.3.4", "debug": "^4.3.4",
"deepcopy": "^2.1.0", "deepcopy": "^2.1.0",
"drachtio-fsmrf": "^3.0.33", "drachtio-fsmrf": "^3.0.34",
"drachtio-srf": "^4.5.31", "drachtio-srf": "^4.5.31",
"express": "^4.18.2", "express": "^4.18.2",
"express-validator": "^7.0.1", "express-validator": "^7.0.1",