@elevenlabs/client 1.3.0 → 1.4.0

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/lib.iife.js CHANGED
@@ -424,7 +424,7 @@ var ElevenLabsClient = (function(exports) {
424
424
  //#region src/sourceInfo.ts
425
425
  let sourceInfo = Object.freeze({
426
426
  name: "js_sdk",
427
- version: "1.3.0"
427
+ version: "1.4.0"
428
428
  });
429
429
  //#endregion
430
430
  //#region src/utils/events.ts
@@ -22684,7 +22684,13 @@ registerProcessor("audioConcatProcessor", AudioConcatProcessor);
22684
22684
  this.gain.gain.value = volume;
22685
22685
  }
22686
22686
  playAudio(chunk) {
22687
- if (this.interrupted) return;
22687
+ this.gain.gain.cancelScheduledValues(this.context.currentTime);
22688
+ this.gain.gain.value = this.volume;
22689
+ if (this.interruptTimeout) {
22690
+ clearTimeout(this.interruptTimeout);
22691
+ this.interruptTimeout = null;
22692
+ }
22693
+ this.worklet.port.postMessage({ type: "clearInterrupted" });
22688
22694
  this.worklet.port.postMessage({
22689
22695
  type: "buffer",
22690
22696
  buffer: chunk
@@ -23607,6 +23613,8 @@ registerProcessor("scribeAudioProcessor", ScribeAudioProcessor);
23607
23613
  }
23608
23614
  if (options.languageCode !== void 0) params.append("language_code", options.languageCode);
23609
23615
  if (options.includeTimestamps !== void 0) params.append("include_timestamps", options.includeTimestamps ? "true" : "false");
23616
+ if (options.keyterms !== void 0) for (const term of options.keyterms) params.append("keyterms", term);
23617
+ if (options.noVerbatim !== void 0) params.append("no_verbatim", options.noVerbatim ? "true" : "false");
23610
23618
  const queryString = params.toString();
23611
23619
  return queryString ? `${baseUri}?${queryString}` : baseUri;
23612
23620
  }