Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 144 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,17 @@ notify = "6"
# Single instance check
pidlock = "0.1"

# System tray (StatusNotifierItem via DBus)
ksni = { version = "0.2", optional = true }

# Meeting mode (Pro feature)
uuid = { version = "1", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
rusqlite = { version = "0.32", features = ["bundled"] }

[features]
default = []
tray = ["dep:ksni"]
gpu-vulkan = ["whisper-rs/vulkan"]
gpu-cuda = ["whisper-rs/cuda"]
gpu-metal = ["whisper-rs/metal"]
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.avx512
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN apt-get update && apt-get install -y \
cmake \
pkg-config \
libasound2-dev \
libdbus-1-dev \
git \
binutils \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -35,7 +36,7 @@ COPY . .
# Build with native optimizations (will use AVX-512 if available on host)
ENV RUSTFLAGS="-C target-cpu=native"

RUN cargo build --release \
RUN cargo build --release --features tray \
&& cp target/release/voxtype /tmp/voxtype-avx512

# Verify AVX-512 instructions ARE present
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RUN apt-get update && apt-get install -y \
cmake \
pkg-config \
libasound2-dev \
libdbus-1-dev \
git \
binutils \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -54,7 +55,7 @@ ENV CMAKE_C_FLAGS="-mno-avx512f -mno-avx512vl -mno-avx512bw -mno-avx512dq -mno-a
ENV CMAKE_CXX_FLAGS="-mno-avx512f -mno-avx512vl -mno-avx512bw -mno-avx512dq -mno-avx512cd -mno-gfni -mno-avxvnni"

# Build AVX2 binary
RUN cargo build --release \
RUN cargo build --release --features tray \
&& cp target/release/voxtype /tmp/voxtype-avx2

# Verify no AVX-512 or GFNI instructions
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.onnx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RUN apt-get update && apt-get install -y \
cmake \
pkg-config \
libasound2-dev \
libdbus-1-dev \
libssl-dev \
protobuf-compiler \
libprotobuf-dev \
Expand Down Expand Up @@ -62,7 +63,7 @@ ENV ORT_STRATEGY=download

# Disable LTO for faster builds (can hang on TrueNAS)
# Build with all ONNX engines
RUN cargo build --release --features parakeet,moonshine,sensevoice,paraformer,dolphin,omnilingual \
RUN cargo build --release --features parakeet,moonshine,sensevoice,paraformer,dolphin,omnilingual,tray \
--config 'profile.release.lto=false' \
--config 'profile.release.codegen-units=8' \
&& cp target/release/voxtype /tmp/voxtype-onnx-avx2
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.onnx-avx512
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RUN apt-get update && apt-get install -y \
cmake \
pkg-config \
libasound2-dev \
libdbus-1-dev \
libssl-dev \
protobuf-compiler \
libprotobuf-dev \
Expand All @@ -48,7 +49,7 @@ ENV ORT_STRATEGY=download

# Disable LTO for faster builds
# Build with all ONNX engines
RUN cargo build --release --features parakeet,moonshine,sensevoice,paraformer,dolphin,omnilingual \
RUN cargo build --release --features parakeet,moonshine,sensevoice,paraformer,dolphin,omnilingual,tray \
--config 'profile.release.lto=false' \
--config 'profile.release.codegen-units=8' \
&& cp target/release/voxtype /tmp/voxtype-onnx-avx512
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.onnx-cuda
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ RUN apt-get update && apt-get install -y \
cmake \
pkg-config \
libasound2-dev \
libdbus-1-dev \
libssl-dev \
protobuf-compiler \
libprotobuf-dev \
Expand All @@ -49,7 +50,7 @@ ENV ORT_STRATEGY=download

# Disable LTO for faster builds
# Build with all ONNX engines + CUDA support for NVIDIA GPUs
RUN cargo build --release --features parakeet-cuda,moonshine-cuda,sensevoice-cuda,paraformer-cuda,dolphin-cuda,omnilingual-cuda \
RUN cargo build --release --features parakeet-cuda,moonshine-cuda,sensevoice-cuda,paraformer-cuda,dolphin-cuda,omnilingual-cuda,tray \
--config 'profile.release.lto=false' \
--config 'profile.release.codegen-units=8' \
&& cp target/release/voxtype /tmp/voxtype-onnx-cuda
Expand Down
Loading