@omote/core 0.5.4 → 0.5.5

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.mjs CHANGED
@@ -510,6 +510,7 @@ var A2EProcessor = class {
510
510
  this.backend = config.backend;
511
511
  this.sampleRate = config.sampleRate ?? 16e3;
512
512
  this.chunkSize = config.chunkSize ?? config.backend.chunkSize ?? 16e3;
513
+ this.identityIndex = config.identityIndex ?? 0;
513
514
  this.onFrame = config.onFrame;
514
515
  this.onError = config.onError;
515
516
  this.bufferCapacity = this.chunkSize * 2;
@@ -717,7 +718,7 @@ var A2EProcessor = class {
717
718
  const { chunk, timestamp } = this.pendingChunks.shift();
718
719
  try {
719
720
  const t0 = performance.now();
720
- const result = await this.backend.infer(chunk);
721
+ const result = await this.backend.infer(chunk, this.identityIndex);
721
722
  const inferMs = Math.round(performance.now() - t0);
722
723
  const actualDuration = chunk.length / this.sampleRate;
723
724
  const actualFrameCount = Math.ceil(actualDuration * FRAME_RATE);
@@ -2841,6 +2842,7 @@ var FullFacePipeline = class extends EventEmitter {
2841
2842
  backend: options.lam,
2842
2843
  sampleRate,
2843
2844
  chunkSize,
2845
+ identityIndex: options.identityIndex,
2844
2846
  onError: (error) => {
2845
2847
  logger4.error("A2E inference error", { message: error.message, stack: error.stack });
2846
2848
  this.emit("error", error);