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 {
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]);
this.logger.debug(`Say:exec completed play file ${filepath[segment]}`);
}
@@ -265,6 +267,7 @@ class TaskSay extends Task {
this.notifyStatus({event: 'kill-playback'});
this.ep.api('uuid_break', this.ep.uuid);
}
this.ep.removeEventListeners('playback-start');
}
}
}