import { SherpaSileroVadSession } from "./silero-vad-session.js";
export class SherpaSileroTurnDetectionProvider {
    constructor(config, logger) {
        this.id = "local";
        this.config = config;
        this.logger = logger.child({
            module: "speech",
            provider: "local",
            component: "silero-vad",
        });
    }
    createSession(params) {
        this.logger.debug({ sampleRate: this.config.sampleRate, modelPath: this.config.modelPath }, "Creating Silero VAD turn-detection session");
        return new SherpaSileroVadSession({
            logger: params.logger.child({
                provider: "local",
                component: "silero-vad-session",
            }),
            config: this.config,
        });
    }
}
//# sourceMappingURL=silero-vad-provider.js.map