@absolutejs/voice 0.0.22-beta.601 → 0.0.22-beta.603

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
@@ -3943,6 +3943,7 @@ var createVoiceSession = (options) => {
3943
3943
  let speculativeReply = null;
3944
3944
  let speculativeTimer = null;
3945
3945
  let speculationAttempted = false;
3946
+ console.info(`[voice][p3dbg] session ${options.id} route.speculate wired=${Boolean(options.route.speculate)}`);
3946
3947
  const sttFallback = options.sttFallback ? {
3947
3948
  adapter: options.sttFallback.adapter,
3948
3949
  completionTimeoutMs: options.sttFallback.completionTimeoutMs ?? DEFAULT_FALLBACK_COMPLETION_TIMEOUT_MS,
@@ -4520,6 +4521,7 @@ var createVoiceSession = (options) => {
4520
4521
  scheduleTurnCommit(delayMs, "silence", reset);
4521
4522
  if (options.route.speculate && reset && !speculationAttempted) {
4522
4523
  speculationAttempted = true;
4524
+ console.info(`[voice][p3dbg] armed speculation delay=${SPECULATIVE_DELAY_MS} reason=silence session=${options.id}`);
4523
4525
  speculativeTimer = setTimeout(() => {
4524
4526
  speculativeTimer = null;
4525
4527
  runSpeculation();
@@ -39536,6 +39538,7 @@ var voice = (config) => {
39536
39538
  onSession: config.onSession,
39537
39539
  onTransfer: config.onTransfer,
39538
39540
  onTurn,
39541
+ speculate: config.speculate,
39539
39542
  onVoicemail: config.onVoicemail,
39540
39543
  onCallEnd: async (input) => {
39541
39544
  let hookError;
@@ -6170,6 +6170,7 @@ var createVoiceSession = (options) => {
6170
6170
  let speculativeReply = null;
6171
6171
  let speculativeTimer = null;
6172
6172
  let speculationAttempted = false;
6173
+ console.info(`[voice][p3dbg] session ${options.id} route.speculate wired=${Boolean(options.route.speculate)}`);
6173
6174
  const sttFallback = options.sttFallback ? {
6174
6175
  adapter: options.sttFallback.adapter,
6175
6176
  completionTimeoutMs: options.sttFallback.completionTimeoutMs ?? DEFAULT_FALLBACK_COMPLETION_TIMEOUT_MS,
@@ -6747,6 +6748,7 @@ var createVoiceSession = (options) => {
6747
6748
  scheduleTurnCommit(delayMs, "silence", reset);
6748
6749
  if (options.route.speculate && reset && !speculationAttempted) {
6749
6750
  speculationAttempted = true;
6751
+ console.info(`[voice][p3dbg] armed speculation delay=${SPECULATIVE_DELAY_MS} reason=silence session=${options.id}`);
6750
6752
  speculativeTimer = setTimeout(() => {
6751
6753
  speculativeTimer = null;
6752
6754
  runSpeculation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.601",
3
+ "version": "0.0.22-beta.603",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",