@volley/recognition-client-sdk 0.1.621 → 0.1.622

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.
@@ -3826,6 +3826,7 @@ var TranscriptionResultSchemaV1 = z.object({
3826
3826
  voiceStart: z.number().optional(),
3827
3827
  voiceDuration: z.number().optional(),
3828
3828
  voiceEnd: z.number().optional(),
3829
+ lastNonSilence: z.number().optional(),
3829
3830
  startTimestamp: z.number().optional(),
3830
3831
  endTimestamp: z.number().optional(),
3831
3832
  receivedAtMs: z.number().optional(),
@@ -5435,7 +5436,7 @@ var RealTimeTwoWayWebSocketRecognitionClient = class _RealTimeTwoWayWebSocketRec
5435
5436
  const timeout = setTimeout(() => {
5436
5437
  if (settled) return;
5437
5438
  settled = true;
5438
- this.log("warn", "Connection timeout", { timeout: connectionTimeout, attempt });
5439
+ this.log("warn", `Connection timeout url=${this.config.url}`, { timeout: connectionTimeout, attempt });
5439
5440
  this.state = "failed" /* FAILED */;
5440
5441
  reject(new Error(`Connection timeout after ${connectionTimeout}ms`));
5441
5442
  }, connectionTimeout);
@@ -5457,7 +5458,7 @@ var RealTimeTwoWayWebSocketRecognitionClient = class _RealTimeTwoWayWebSocketRec
5457
5458
  if (settled) return;
5458
5459
  settled = true;
5459
5460
  clearTimeout(timeout);
5460
- this.log("warn", "Connection error", { error, attempt });
5461
+ this.log("warn", `Connection error url=${this.config.url}`, { error, attempt });
5461
5462
  this.state = "failed" /* FAILED */;
5462
5463
  reject(error);
5463
5464
  };
@@ -5472,14 +5473,14 @@ var RealTimeTwoWayWebSocketRecognitionClient = class _RealTimeTwoWayWebSocketRec
5472
5473
  lastError = error;
5473
5474
  if (attempt < maxAttempts) {
5474
5475
  const logLevel = attempt < 3 ? "info" : "warn";
5475
- this.log(logLevel, `Connection attempt ${attempt} failed, retrying after ${delayMs}ms`, {
5476
+ this.log(logLevel, `Connection attempt ${attempt} failed, retrying after ${delayMs}ms url=${this.config.url}`, {
5476
5477
  error: lastError.message,
5477
5478
  nextAttempt: attempt + 1
5478
5479
  });
5479
5480
  this.state = "initial" /* INITIAL */;
5480
5481
  await new Promise((resolve) => setTimeout(resolve, delayMs));
5481
5482
  } else {
5482
- this.log("warn", `All ${maxAttempts} connection attempts failed`, {
5483
+ this.log("warn", `All ${maxAttempts} connection attempts failed url=${this.config.url}`, {
5483
5484
  error: lastError.message
5484
5485
  });
5485
5486
  }