Skip to content

Commit f5c5a15

Browse files
merge: upstream main through release-0.4 (Higgs Audio v3 TTS 4B)
2 parents 8347148 + e800d43 commit f5c5a15

447 files changed

Lines changed: 42546 additions & 6414 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.devops/cpu.Dockerfile‎

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ ARG GCC_VERSION=14
1313
FROM docker.io/ubuntu:$UBUNTU_VERSION AS build
1414

1515
ARG GCC_VERSION=14
16-
ARG ENGINE_ENABLE_NATIVE_CPU=ON
1716

1817
# Install build toolchain
1918
RUN apt-get update && \
@@ -27,13 +26,22 @@ ENV CC=gcc-${GCC_VERSION} CXX=g++-${GCC_VERSION}
2726
WORKDIR /app
2827
COPY . .
2928

29+
# Validate architecture (CPU backend is only supported on amd64 and arm64)
30+
ARG TARGETARCH
31+
RUN if [ "$TARGETARCH" = "amd64" ] || [ "$TARGETARCH" = "arm64" ]; then \
32+
echo "Building for $TARGETARCH"; \
33+
else \
34+
echo "Unsupported architecture: $TARGETARCH"; \
35+
exit 1; \
36+
fi
37+
3038
# Configure and build
3139
RUN cmake -S . -B build \
3240
-DCMAKE_BUILD_TYPE=Release \
41+
-DENGINE_ENABLE_CPU_ALL_VARIANTS=ON \
3342
-DENGINE_ENABLE_CUDA=OFF \
3443
-DENGINE_ENABLE_VULKAN=OFF \
3544
-DENGINE_ENABLE_OPENMP=ON \
36-
-DENGINE_ENABLE_NATIVE_CPU=$ENGINE_ENABLE_NATIVE_CPU \
3745
-DENGINE_BUILD_EXAMPLES=OFF \
3846
-DENGINE_BUILD_TESTS=OFF \
3947
-DENGINE_BUILD_WARMBENCH=OFF && \
@@ -43,7 +51,11 @@ RUN cmake -S . -B build \
4351
--target model_perf \
4452
--target miocodec_wavlm_parity
4553

46-
# Collect all binaries + multiplexer into /app/full
54+
# Collect shared libraries
55+
RUN mkdir -p /app/lib && \
56+
find build -name "*.so*" -exec cp -P {} /app/lib \;
57+
58+
# Collect binaries + multiplexer into /app/full
4759
RUN mkdir -p /app/full && \
4860
cp build/bin/audiocpp_cli build/bin/audiocpp_server \
4961
build/bin/model_perf build/bin/miocodec_wavlm_parity /app/full/ && \
@@ -77,6 +89,8 @@ RUN apt-get update && \
7789
find /var/cache/apt/archives /var/lib/apt/lists -not -name lock -type f -delete && \
7890
find /var/cache -type f -delete
7991

92+
COPY --from=build /app/lib/ /app
93+
8094
WORKDIR /app
8195

8296
# ── FULL: All binaries + entrypoint.sh multiplexer ────────────────────────────

‎.devops/cuda.Dockerfile‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ ARG BASE_CUDA_RUN_CONTAINER=docker.io/nvidia/cuda:${CUDA_VERSION}-runtime-ubuntu
1717
FROM ${BASE_CUDA_DEV_CONTAINER} AS build
1818

1919
ARG GCC_VERSION=14
20-
ARG ENGINE_ENABLE_NATIVE_CPU=ON
2120

2221
# Install build toolchain
2322
RUN apt-get update && \
@@ -34,21 +33,26 @@ COPY . .
3433
# Configure and build
3534
RUN cmake -S . -B build \
3635
-DCMAKE_BUILD_TYPE=Release \
36+
-DENGINE_ENABLE_CPU_ALL_VARIANTS=ON \
3737
-DENGINE_ENABLE_CUDA=ON \
3838
-DENGINE_ENABLE_CUDA_GRAPHS=ON \
3939
-DENGINE_ENABLE_VULKAN=OFF \
4040
-DENGINE_ENABLE_OPENMP=ON \
41-
-DENGINE_ENABLE_NATIVE_CPU=$ENGINE_ENABLE_NATIVE_CPU \
4241
-DENGINE_BUILD_EXAMPLES=OFF \
4342
-DENGINE_BUILD_TESTS=OFF \
44-
-DENGINE_BUILD_WARMBENCH=OFF && \
43+
-DENGINE_BUILD_WARMBENCH=OFF \
44+
-DCMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined && \
4545
cmake --build build --parallel $(nproc) \
4646
--target audiocpp_cli \
4747
--target audiocpp_server \
4848
--target model_perf \
4949
--target miocodec_wavlm_parity
5050

51-
# Collect all binaries + multiplexer into /app/full
51+
# Collect shared libraries
52+
RUN mkdir -p /app/lib && \
53+
find build -name "*.so*" -exec cp -P {} /app/lib \;
54+
55+
# Collect binaries + multiplexer into /app/full
5256
RUN mkdir -p /app/full && \
5357
cp build/bin/audiocpp_cli build/bin/audiocpp_server \
5458
build/bin/model_perf build/bin/miocodec_wavlm_parity /app/full/ && \
@@ -82,6 +86,8 @@ RUN apt-get update && \
8286
find /var/cache/apt/archives /var/lib/apt/lists -not -name lock -type f -delete && \
8387
find /var/cache -type f -delete
8488

89+
COPY --from=build /app/lib/ /app
90+
8591
WORKDIR /app
8692

8793
# ── FULL: All binaries + entrypoint.sh multiplexer ────────────────────────────

‎.github/workflows/docker.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ jobs:
181181
APP_REVISION=${{ github.sha }}
182182
IMAGE_URL=${{ github.server_url }}/${{ github.repository }}
183183
IMAGE_SOURCE=${{ github.server_url }}/${{ github.repository }}
184-
ENGINE_ENABLE_NATIVE_CPU=OFF
185184
${{ matrix.cuda_version && format('CUDA_VERSION={0}', matrix.cuda_version) || '' }}
186185
cache-from: type=registry,ref=ghcr.io/${{ needs.metadata.outputs.image_repo }}:cache-${{ matrix.arch }}-${{ matrix.tag }}
187186
cache-to: type=registry,ref=ghcr.io/${{ needs.metadata.outputs.image_repo }}:cache-${{ matrix.arch }}-${{ matrix.tag }},mode=max

‎.gitignore‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,18 @@ __pycache__/
2828
/*.wav
2929
/flutter/
3030
/.cache/
31+
32+
# --- portable bundle: distributed manually, never committed ---
33+
/audiocpp-portable/
34+
35+
# --- WebUI runtime artifacts: keep the source + empty dirs, drop generated files ---
36+
/webui/output/*
37+
!/webui/output/.gitkeep
38+
/webui/logs/*
39+
!/webui/logs/.gitkeep
40+
/webui/third_party/
41+
/webui/llm_api_key.txt
42+
# written by the in-UI language picker; per-machine, not a project setting
43+
/webui/configs/ui_language.json
44+
# personal voice recording — stays local, repo is public
45+
/webui/voice/my-record.wav

0 commit comments

Comments
 (0)