import { resolvePreferredOnnxModel } from "../onnx-cli.js";
export function resolveTranscriberPreference(env) {
    const raw = env.SUMMARIZE_TRANSCRIBER?.trim().toLowerCase();
    if (raw === "auto" || raw === "whisper" || raw === "parakeet" || raw === "canary")
        return raw;
    return "auto";
}
export function resolveOnnxModelPreference(env) {
    const preference = resolveTranscriberPreference(env);
    if (preference === "parakeet" || preference === "canary")
        return preference;
    if (preference === "auto")
        return resolvePreferredOnnxModel(env);
    return null;
}
//# sourceMappingURL=preferences.js.map