Skip to content

Clone your own voice on your own computer: speak any text in 60+ languages and dub videos into another language in your voice. Fully local. Early version.

666 B
Raw Blame
fn main() {
    println!("cargo:rerun-if-changed=build.rs");
    println!("cargo:rerun-if-changed=../../tools/release/icons/server.ico");
    #[cfg(windows)]
    if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
        let mut res = winresource::WindowsResource::new();
        res.set_icon("../../tools/release/icons/server.ico");
        res.set("ProductName", "Mimvox");
        res.set("FileDescription", "Mimvox API server");
        res.set("CompanyName", "tarpetos");
        if let Err(e) = res.compile() {
            panic!("embedding the Windows icon failed (needs rc.exe from the Windows SDK / Build Tools): {e}");
        }
    }
}