import { createRequire } from "node:module";
import { log } from "../log.js";
const cjsRequire = createRequire(import.meta.url);
let nativeMod;
let triedLoad = false;
function getNative() {
  if (triedLoad) return nativeMod;
  triedLoad = true;
  try {
    nativeMod = cjsRequire("@livekit/local-inference");
    return nativeMod;
  } catch (err) {
    log().warn(
      { err: err instanceof Error ? err.message : String(err) },
      "@livekit/local-inference native binding not loadable; local VAD/EOT paths disabled"
    );
    return void 0;
  }
}
function _getLocalInferenceModule() {
  return getNative();
}
export {
  _getLocalInferenceModule
};
//# sourceMappingURL=_warmup.js.map