voice_audio_multi/.devops/entrypoint.sh
Fabio c36510c21e
Some checks failed
Linux Build / Linux cpu (push) Has been cancelled
Linux Build / Linux cpu-clang (push) Has been cancelled
Linux Build / Linux vulkan (push) Has been cancelled
mac-build / macOS CPU (push) Has been cancelled
Nix Build / Nix (cpu) (push) Has been cancelled
Nix Build / Nix (vulkan) (push) Has been cancelled
windows-build / Windows CPU (push) Has been cancelled
Initial import: audio.cpp with Orange Pi documentation
2026-11-04 19:05:22 +01:00

30 lines
936 B
Bash
Executable file

#!/usr/bin/env bash
# ============================================================
# audio.cpp Docker multiplexer
#
# Dispatches to the correct binary based on the first
# argument. All remaining arguments are forwarded verbatim.
# ============================================================
set -e
arg1="$1"
shift || true
if [[ "$arg1" == "cli" ]]; then
exec ./audiocpp_cli "$@"
elif [[ "$arg1" == "server" ]]; then
exec ./audiocpp_server "$@"
elif [[ "$arg1" == "model-manager" ]]; then
exec ./audiocpp_model_manager "$@"
elif [[ "$arg1" == "perf" ]]; then
exec ./model_perf "$@"
else
echo "Unknown command: $arg1"
echo ""
echo "Available commands:"
echo " cli Run audio tasks (TTS, ASR, VAD, VC, diar, etc.)"
echo " server Run the HTTP server"
echo " model-manager List, install, clean, or remove model packages"
echo " perf Run model performance benchmarks"
exit 1
fi