@absolutejs/voice 0.0.22-beta.593 → 0.0.22-beta.594

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4639,6 +4639,13 @@ var createVoiceSession = (options) => {
4639
4639
  if (!didComplete) {
4640
4640
  return;
4641
4641
  }
4642
+ if (shouldInvokeOnComplete) {
4643
+ await options.route.onComplete({
4644
+ api,
4645
+ context: options.context,
4646
+ session
4647
+ });
4648
+ }
4642
4649
  if (disposition === "completed") {
4643
4650
  await drainAssistantSpeech(lastTtsSendAt);
4644
4651
  await assistantAudioQueue;
@@ -4701,13 +4708,6 @@ var createVoiceSession = (options) => {
4701
4708
  session
4702
4709
  });
4703
4710
  }
4704
- if (shouldInvokeOnComplete) {
4705
- await options.route.onComplete({
4706
- api,
4707
- context: options.context,
4708
- session
4709
- });
4710
- }
4711
4711
  await options.route.onCallEnd?.({
4712
4712
  api,
4713
4713
  context: options.context,
@@ -6866,6 +6866,13 @@ var createVoiceSession = (options) => {
6866
6866
  if (!didComplete) {
6867
6867
  return;
6868
6868
  }
6869
+ if (shouldInvokeOnComplete) {
6870
+ await options.route.onComplete({
6871
+ api,
6872
+ context: options.context,
6873
+ session
6874
+ });
6875
+ }
6869
6876
  if (disposition === "completed") {
6870
6877
  await drainAssistantSpeech(lastTtsSendAt);
6871
6878
  await assistantAudioQueue;
@@ -6928,13 +6935,6 @@ var createVoiceSession = (options) => {
6928
6935
  session
6929
6936
  });
6930
6937
  }
6931
- if (shouldInvokeOnComplete) {
6932
- await options.route.onComplete({
6933
- api,
6934
- context: options.context,
6935
- session
6936
- });
6937
- }
6938
6938
  await options.route.onCallEnd?.({
6939
6939
  api,
6940
6940
  context: options.context,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.593",
3
+ "version": "0.0.22-beta.594",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",