@soniox/node 1.1.0 → 1.1.2

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.cjs CHANGED
@@ -448,6 +448,7 @@ function buildConfigMessage(config, apiKey) {
448
448
  enable_language_identification: config.enable_language_identification,
449
449
  enable_endpoint_detection: config.enable_endpoint_detection,
450
450
  client_reference_id: config.client_reference_id,
451
+ max_endpoint_delay_ms: config.max_endpoint_delay_ms,
451
452
  context: config.context,
452
453
  translation: config.translation
453
454
  };
@@ -608,6 +609,7 @@ var RealtimeSttSession = class {
608
609
  pause() {
609
610
  if (this._paused) return;
610
611
  this._paused = true;
612
+ this.finalize();
611
613
  if (!this._pauseWarned && typeof process !== "undefined" && process.env?.NODE_ENV !== "production") {
612
614
  this._pauseWarned = true;
613
615
  console.warn("[Soniox] You are billed for the full stream duration even when session is paused.");