From 13dd064c68a50b09e43f427d930794aeaf146e9a Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:36:25 +0400 Subject: [PATCH 01/22] Add VoiceStudio CT script --- ct/voicestudio.sh | 100 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 ct/voicestudio.sh diff --git a/ct/voicestudio.sh b/ct/voicestudio.sh new file mode 100644 index 0000000000..ee74ca8401 --- /dev/null +++ b/ct/voicestudio.sh @@ -0,0 +1,100 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="\${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/DevScripts/main}" +_cs_boot="\${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "\${BASH_SOURCE[0]}")/../../core}/core/build.func" +source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "\${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Estcool9 +# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE +# Source: https://github.com/debpalash/VoiceStudio + +APP="VoiceStudio" +var_tags="\${var_tags:-ai;audio;tts;voice-cloning}" +var_cpu="\${var_cpu:-6}" +var_ram="\${var_ram:-12288}" +var_disk="\${var_disk:-50}" +var_os="\${var_os:-debian}" +var_version="\${var_version:-13}" +var_arm64="\${var_arm64:-no}" +var_unprivileged="\${var_unprivileged:-1}" + +export var_voicestudio_hf_token="\${var_voicestudio_hf_token:-}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/voicestudio || ! -f /opt/voicestudio_data/.env ]]; then + msg_error "No VoiceStudio Installation Found!" + exit 1 + fi + + if ! systemctl is-active --quiet voicestudio; then + msg_info "VoiceStudio is not running; skipping the automatic update." + exit 0 + fi + + if ! curl -fsS --max-time 5 http://127.0.0.1:3900/jobs | jq -e 'length == 0' >/dev/null; then + msg_info "VoiceStudio has active jobs or its API is unavailable; skipping the update." + exit 0 + fi + + if ! curl -fsS --max-time 5 http://127.0.0.1:3900/models/install/status | jq -e '.jobs | length == 0' >/dev/null; then + msg_info "A model download is active or its status cannot be checked; skipping the update." + exit 0 + fi + + if check_for_gh_release "voicestudio" "debpalash/VoiceStudio"; then + msg_info "Backing up VoiceStudio" + create_backup /opt/voicestudio /root/.voicestudio + msg_ok "Backed up VoiceStudio" + + msg_info "Stopping VoiceStudio" + systemctl stop voicestudio + msg_ok "Stopped VoiceStudio" + + if ! ( + set -e + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "voicestudio" "debpalash/VoiceStudio" "tarball" + PYTHON_VERSION="3.11" setup_uv + NODE_VERSION="22" NODE_MODULE="$(jq -r '.packageManager' /opt/voicestudio/package.json)" setup_nodejs + cd /opt/voicestudio + $STD bun install --frozen-lockfile + $STD bun run setup:api + $STD bun run --cwd electron build:web + ); then + msg_error "VoiceStudio update failed; restoring the previous installation." + restore_backup + systemctl start voicestudio + exit 1 + fi + + msg_info "Starting VoiceStudio" + systemctl start voicestudio + if ! $STD curl --retry 60 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3900/health; then + msg_error "VoiceStudio failed its health check; restoring the previous installation." + systemctl stop voicestudio || true + restore_backup + systemctl start voicestudio + exit 1 + fi + + rm -rf /opt/voicestudio.backup + msg_ok "Updated VoiceStudio successfully!" + fi + exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "\${CREATING}\${GN}VoiceStudio setup has been successfully initialized!\${CL}" +echo -e "\${INFO}\${YW}Access it using the following URL:\${CL}" +echo -e "\${GATEWAY}\${BGN}http://\${IP}:3900\${CL}" From bc8323c43b30685ffc928e1ed3e4ee39c61c89f8 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:36:28 +0400 Subject: [PATCH 02/22] Add VoiceStudio installer --- install/voicestudio-install.sh | 110 +++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 install/voicestudio-install.sh diff --git a/install/voicestudio-install.sh b/install/voicestudio-install.sh new file mode 100644 index 0000000000..a09c297b71 --- /dev/null +++ b/install/voicestudio-install.sh @@ -0,0 +1,110 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Estcool9 +# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE +# Source: https://github.com/debpalash/VoiceStudio + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing VoiceStudio dependencies" +$STD apt install -y build-essential ffmpeg libsndfile1 libopus-dev pkg-config cmake python3-dev curl jq +msg_ok "Installed VoiceStudio dependencies" + +fetch_and_deploy_gh_release "voicestudio" "debpalash/VoiceStudio" "tarball" +PYTHON_VERSION="3.11" setup_uv +NODE_VERSION="22" NODE_MODULE="$(jq -r '.packageManager' /opt/voicestudio/package.json)" setup_nodejs + +msg_info "Building VoiceStudio" +cd /opt/voicestudio +$STD bun install --frozen-lockfile +$STD bun run setup:api +$STD bun run --cwd electron build:web +rm -rf /opt/voicestudio/node_modules /opt/voicestudio/electron/node_modules +msg_ok "Built VoiceStudio" + +msg_info "Configuring VoiceStudio" +mkdir -p /opt/voicestudio_data/huggingface +chmod 700 /opt/voicestudio_data +API_KEY="$(openssl rand -hex 32)" +printf '%s\n' "$API_KEY" >/root/voicestudio-api-key.txt +chmod 600 /root/voicestudio-api-key.txt +cat </opt/voicestudio_data/.env +OMNIVOICE_DATA_DIR=/opt/voicestudio_data +HF_HOME=/opt/voicestudio_data/huggingface +OMNIVOICE_SERVER_MODE=1 +OMNIVOICE_API_KEY=\${API_KEY} +EOF +if [[ -n "\${var_voicestudio_hf_token:-}" ]]; then + printf 'HF_TOKEN=%s\n' "$var_voicestudio_hf_token" >>/opt/voicestudio_data/.env +fi +chmod 600 /opt/voicestudio_data/.env +msg_ok "Configured VoiceStudio" + +msg_info "Creating VoiceStudio service" +cat </etc/systemd/system/voicestudio.service +[Unit] +Description=VoiceStudio Headless Backend +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/voicestudio +EnvironmentFile=/opt/voicestudio_data/.env +Environment=PYTHONPATH=/opt/voicestudio/backend +Environment=PYTHONUNBUFFERED=1 +ExecStart=/opt/voicestudio/.venv/bin/uvicorn backend.main:app --host 0.0.0.0 --port 3900 +Restart=on-failure +RestartSec=5 +TimeoutStartSec=600 +LimitNOFILE=65535 +UMask=0077 + +[Install] +WantedBy=multi-user.target +EOF +systemctl daemon-reload +systemctl enable -q --now voicestudio +$STD curl --retry 60 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3900/health +msg_ok "Created VoiceStudio service" + +msg_info "Configuring automatic updates" +cat </etc/systemd/system/voicestudio-update.service +[Unit] +Description=VoiceStudio stable release update +After=network-online.target +Wants=network-online.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/update +SuccessExitStatus=1 +EOF +cat </etc/systemd/system/voicestudio-update.timer +[Unit] +Description=Daily VoiceStudio stable release update check + +[Timer] +OnCalendar=*-*-* 03:30:00 +RandomizedDelaySec=45m +Persistent=true +Unit=voicestudio-update.service + +[Install] +WantedBy=timers.target +EOF +systemctl daemon-reload +msg_ok "Configured automatic updates" + +motd_ssh +customize +systemctl enable -q --now voicestudio-update.timer +cleanup_lxc From 39f1b129f7b851fe2b2546f60ea437627c5acc17 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:36:31 +0400 Subject: [PATCH 03/22] Add VoiceStudio metadata --- json/voicestudio.json | 68 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 json/voicestudio.json diff --git a/json/voicestudio.json b/json/voicestudio.json new file mode 100644 index 0000000000..2c8f1977c4 --- /dev/null +++ b/json/voicestudio.json @@ -0,0 +1,68 @@ +{ + "name": "VoiceStudio", + "slug": "voicestudio", + "categories": [ + 20 + ], + "date_created": "2026-11-21", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 3900, + "documentation": "https://github.com/debpalash/VoiceStudio/blob/v0.5.8/docs/install/docker.md", + "website": "https://github.com/debpalash/VoiceStudio", + "repository": "https://github.com/debpalash/VoiceStudio", + "architectures": [ + "amd64" + ], + "platforms": [ + "pve" + ], + "logo": "https://cdn.jsdelivr.net/gh/debpalash/VoiceStudio@v0.5.8/docs/assets/voicestudio-pro.svg", + "description": "Self-hosted voice synthesis and cloning studio. This helper installs the headless FastAPI server in an unprivileged Debian LXC; models are downloaded separately.", + "install_methods": [ + { + "type": "default", + "script": "ct/voicestudio.sh", + "config_path": "/opt/voicestudio_data/.env", + "resources": { + "cpu": 6, + "ram": 12288, + "hdd": 50, + "os": "Debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "text": "Open http://:3900. The API key is stored in /opt/voicestudio_data/.env as OMNIVOICE_API_KEY and in /root/voicestudio-api-key.txt (root-only).", + "type": "info" + }, + { + "text": "Models are not downloaded automatically. Download them in VoiceStudio only after reviewing each model and dependency license.", + "type": "warning" + }, + { + "text": "Stable-release updates are checked daily at 03:30. Disable with systemctl disable --now voicestudio-update.timer.", + "type": "info" + }, + { + "text": "CPU inference is slower. GPU passthrough and CUDA configuration are not automatic.", + "type": "warning" + } + ], + "app_vars": [ + { + "name": "var_voicestudio_hf_token", + "label": "Hugging Face Token (optional)", + "type": "password", + "secret": true, + "help": "Optional. Used for gated/private repositories and higher download limits; public models can be downloaded without it." + } + ] +} From abea4eed4d4c1f0072774dddb246aeefbeff2432 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:40:54 +0400 Subject: [PATCH 04/22] Align VoiceStudio script with DevScripts guidelines --- ct/voicestudio.sh | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/ct/voicestudio.sh b/ct/voicestudio.sh index ee74ca8401..6994d8bcd1 100644 --- a/ct/voicestudio.sh +++ b/ct/voicestudio.sh @@ -50,10 +50,6 @@ function update_script() { fi if check_for_gh_release "voicestudio" "debpalash/VoiceStudio"; then - msg_info "Backing up VoiceStudio" - create_backup /opt/voicestudio /root/.voicestudio - msg_ok "Backed up VoiceStudio" - msg_info "Stopping VoiceStudio" systemctl stop voicestudio msg_ok "Stopped VoiceStudio" @@ -67,24 +63,19 @@ function update_script() { $STD bun install --frozen-lockfile $STD bun run setup:api $STD bun run --cwd electron build:web + rm -rf /opt/voicestudio/node_modules /opt/voicestudio/electron/node_modules ); then - msg_error "VoiceStudio update failed; restoring the previous installation." - restore_backup - systemctl start voicestudio + msg_error "VoiceStudio update failed; attempting to restart the service." + systemctl start voicestudio || true exit 1 fi msg_info "Starting VoiceStudio" systemctl start voicestudio if ! $STD curl --retry 60 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3900/health; then - msg_error "VoiceStudio failed its health check; restoring the previous installation." - systemctl stop voicestudio || true - restore_backup - systemctl start voicestudio + msg_error "VoiceStudio failed its health check after the update." exit 1 fi - - rm -rf /opt/voicestudio.backup msg_ok "Updated VoiceStudio successfully!" fi exit From d6dba4d8a00c41ec430434cc200b17406e7ad642 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:40:57 +0400 Subject: [PATCH 05/22] Align VoiceStudio script with DevScripts guidelines --- install/voicestudio-install.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/install/voicestudio-install.sh b/install/voicestudio-install.sh index a09c297b71..84720c45d1 100644 --- a/install/voicestudio-install.sh +++ b/install/voicestudio-install.sh @@ -14,7 +14,7 @@ network_check update_os msg_info "Installing VoiceStudio dependencies" -$STD apt install -y build-essential ffmpeg libsndfile1 libopus-dev pkg-config cmake python3-dev curl jq +$STD apt install -y build-essential ffmpeg libsndfile1 libopus-dev pkg-config cmake python3-dev msg_ok "Installed VoiceStudio dependencies" fetch_and_deploy_gh_release "voicestudio" "debpalash/VoiceStudio" "tarball" @@ -33,8 +33,6 @@ msg_info "Configuring VoiceStudio" mkdir -p /opt/voicestudio_data/huggingface chmod 700 /opt/voicestudio_data API_KEY="$(openssl rand -hex 32)" -printf '%s\n' "$API_KEY" >/root/voicestudio-api-key.txt -chmod 600 /root/voicestudio-api-key.txt cat </opt/voicestudio_data/.env OMNIVOICE_DATA_DIR=/opt/voicestudio_data HF_HOME=/opt/voicestudio_data/huggingface @@ -42,7 +40,9 @@ OMNIVOICE_SERVER_MODE=1 OMNIVOICE_API_KEY=\${API_KEY} EOF if [[ -n "\${var_voicestudio_hf_token:-}" ]]; then - printf 'HF_TOKEN=%s\n' "$var_voicestudio_hf_token" >>/opt/voicestudio_data/.env + cat <>/opt/voicestudio_data/.env +HF_TOKEN=\${var_voicestudio_hf_token} +EOF fi chmod 600 /opt/voicestudio_data/.env msg_ok "Configured VoiceStudio" @@ -71,12 +71,10 @@ UMask=0077 [Install] WantedBy=multi-user.target EOF -systemctl daemon-reload systemctl enable -q --now voicestudio $STD curl --retry 60 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3900/health msg_ok "Created VoiceStudio service" -msg_info "Configuring automatic updates" cat </etc/systemd/system/voicestudio-update.service [Unit] Description=VoiceStudio stable release update @@ -101,8 +99,6 @@ Unit=voicestudio-update.service [Install] WantedBy=timers.target EOF -systemctl daemon-reload -msg_ok "Configured automatic updates" motd_ssh customize From 688d3ccdc1e0e300df46f86e5916cdbecaf78382 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:40:59 +0400 Subject: [PATCH 06/22] Align VoiceStudio script with DevScripts guidelines --- json/voicestudio.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json/voicestudio.json b/json/voicestudio.json index 2c8f1977c4..045b2ae31d 100644 --- a/json/voicestudio.json +++ b/json/voicestudio.json @@ -40,7 +40,7 @@ }, "notes": [ { - "text": "Open http://:3900. The API key is stored in /opt/voicestudio_data/.env as OMNIVOICE_API_KEY and in /root/voicestudio-api-key.txt (root-only).", + "text": "Open http://:3900. The API key is stored in /opt/voicestudio_data/.env as OMNIVOICE_API_KEY.", "type": "info" }, { From 5b1f18dfe33761265a9ffa301964238ef2f2da43 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:41:59 +0400 Subject: [PATCH 07/22] Harden VoiceStudio service and align installer with guidelines --- ct/voicestudio.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ct/voicestudio.sh b/ct/voicestudio.sh index 6994d8bcd1..c86cc7b02d 100644 --- a/ct/voicestudio.sh +++ b/ct/voicestudio.sh @@ -64,6 +64,7 @@ function update_script() { $STD bun run setup:api $STD bun run --cwd electron build:web rm -rf /opt/voicestudio/node_modules /opt/voicestudio/electron/node_modules + chown -R voicestudio:voicestudio /opt/voicestudio ); then msg_error "VoiceStudio update failed; attempting to restart the service." systemctl start voicestudio || true From 29af48fd9c0a649d6f55cc4781457dbbef92fcd7 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:42:02 +0400 Subject: [PATCH 08/22] Harden VoiceStudio service and align installer with guidelines --- install/voicestudio-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/voicestudio-install.sh b/install/voicestudio-install.sh index 84720c45d1..d259e841f8 100644 --- a/install/voicestudio-install.sh +++ b/install/voicestudio-install.sh @@ -31,6 +31,8 @@ msg_ok "Built VoiceStudio" msg_info "Configuring VoiceStudio" mkdir -p /opt/voicestudio_data/huggingface +getent passwd voicestudio >/dev/null || useradd --system --user-group --home-dir /opt/voicestudio_data --no-create-home --shell /usr/sbin/nologin voicestudio +chown -R voicestudio:voicestudio /opt/voicestudio /opt/voicestudio_data chmod 700 /opt/voicestudio_data API_KEY="$(openssl rand -hex 32)" cat </opt/voicestudio_data/.env @@ -44,6 +46,7 @@ if [[ -n "\${var_voicestudio_hf_token:-}" ]]; then HF_TOKEN=\${var_voicestudio_hf_token} EOF fi +chown root:root /opt/voicestudio_data/.env chmod 600 /opt/voicestudio_data/.env msg_ok "Configured VoiceStudio" @@ -56,7 +59,8 @@ Wants=network-online.target [Service] Type=simple -User=root +User=voicestudio +Group=voicestudio WorkingDirectory=/opt/voicestudio EnvironmentFile=/opt/voicestudio_data/.env Environment=PYTHONPATH=/opt/voicestudio/backend From cf15309622bc27febe7aa4974583886e0a1969e5 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:42:05 +0400 Subject: [PATCH 09/22] Harden VoiceStudio service and align installer with guidelines From 021751420e3f3e9afd7cafbf8d89289a507d8d3f Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:47:28 +0400 Subject: [PATCH 10/22] Keep uv-managed Python outside root home --- ct/voicestudio.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ct/voicestudio.sh b/ct/voicestudio.sh index c86cc7b02d..cd4f7565b5 100644 --- a/ct/voicestudio.sh +++ b/ct/voicestudio.sh @@ -56,6 +56,8 @@ function update_script() { if ! ( set -e + mkdir -p /opt/voicestudio_data/uv/python + export UV_PYTHON_INSTALL_DIR=/opt/voicestudio_data/uv/python CLEAN_INSTALL=1 fetch_and_deploy_gh_release "voicestudio" "debpalash/VoiceStudio" "tarball" PYTHON_VERSION="3.11" setup_uv NODE_VERSION="22" NODE_MODULE="$(jq -r '.packageManager' /opt/voicestudio/package.json)" setup_nodejs @@ -64,7 +66,7 @@ function update_script() { $STD bun run setup:api $STD bun run --cwd electron build:web rm -rf /opt/voicestudio/node_modules /opt/voicestudio/electron/node_modules - chown -R voicestudio:voicestudio /opt/voicestudio + chown -R voicestudio:voicestudio /opt/voicestudio /opt/voicestudio_data/uv ); then msg_error "VoiceStudio update failed; attempting to restart the service." systemctl start voicestudio || true From acd334ebd7d71d709381bb41a864d2769b335b2b Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:47:30 +0400 Subject: [PATCH 11/22] Keep uv-managed Python outside root home --- install/voicestudio-install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install/voicestudio-install.sh b/install/voicestudio-install.sh index d259e841f8..37e0f5c9ba 100644 --- a/install/voicestudio-install.sh +++ b/install/voicestudio-install.sh @@ -17,6 +17,8 @@ msg_info "Installing VoiceStudio dependencies" $STD apt install -y build-essential ffmpeg libsndfile1 libopus-dev pkg-config cmake python3-dev msg_ok "Installed VoiceStudio dependencies" +mkdir -p /opt/voicestudio_data/uv/python +export UV_PYTHON_INSTALL_DIR=/opt/voicestudio_data/uv/python fetch_and_deploy_gh_release "voicestudio" "debpalash/VoiceStudio" "tarball" PYTHON_VERSION="3.11" setup_uv NODE_VERSION="22" NODE_MODULE="$(jq -r '.packageManager' /opt/voicestudio/package.json)" setup_nodejs @@ -46,8 +48,8 @@ if [[ -n "\${var_voicestudio_hf_token:-}" ]]; then HF_TOKEN=\${var_voicestudio_hf_token} EOF fi -chown root:root /opt/voicestudio_data/.env -chmod 600 /opt/voicestudio_data/.env +chown root:voicestudio /opt/voicestudio_data/.env +chmod 640 /opt/voicestudio_data/.env msg_ok "Configured VoiceStudio" msg_info "Creating VoiceStudio service" @@ -63,6 +65,7 @@ User=voicestudio Group=voicestudio WorkingDirectory=/opt/voicestudio EnvironmentFile=/opt/voicestudio_data/.env +Environment=HOME=/opt/voicestudio_data Environment=PYTHONPATH=/opt/voicestudio/backend Environment=PYTHONUNBUFFERED=1 ExecStart=/opt/voicestudio/.venv/bin/uvicorn backend.main:app --host 0.0.0.0 --port 3900 @@ -71,6 +74,11 @@ RestartSec=5 TimeoutStartSec=600 LimitNOFILE=65535 UMask=0077 +NoNewPrivileges=true +PrivateTmp=true +ProtectSystem=full +ProtectHome=true +ReadWritePaths=/opt/voicestudio /opt/voicestudio_data [Install] WantedBy=multi-user.target From 90fe8440b40051e852329272ac5fbac221902354 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:48:30 +0400 Subject: [PATCH 12/22] Link VoiceStudio script to proposal issue From 789ad6a734d50ac55f5d46e64dbaa3b523e3834b Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:49:32 +0400 Subject: [PATCH 13/22] Finalize VoiceStudio architecture and service setup --- ct/voicestudio.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/voicestudio.sh b/ct/voicestudio.sh index cd4f7565b5..8367e5a078 100644 --- a/ct/voicestudio.sh +++ b/ct/voicestudio.sh @@ -14,8 +14,8 @@ var_ram="\${var_ram:-12288}" var_disk="\${var_disk:-50}" var_os="\${var_os:-debian}" var_version="\${var_version:-13}" -var_arm64="\${var_arm64:-no}" var_unprivileged="\${var_unprivileged:-1}" +var_testurl="\${var_testurl:-https://github.com/community-scripts/DevScripts/issues/2693}" export var_voicestudio_hf_token="\${var_voicestudio_hf_token:-}" From 5f1b09e06d917edacc19a8132d55b8877bcc6016 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:49:35 +0400 Subject: [PATCH 14/22] Finalize VoiceStudio architecture and service setup --- install/voicestudio-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/voicestudio-install.sh b/install/voicestudio-install.sh index 37e0f5c9ba..894babd21a 100644 --- a/install/voicestudio-install.sh +++ b/install/voicestudio-install.sh @@ -36,7 +36,7 @@ mkdir -p /opt/voicestudio_data/huggingface getent passwd voicestudio >/dev/null || useradd --system --user-group --home-dir /opt/voicestudio_data --no-create-home --shell /usr/sbin/nologin voicestudio chown -R voicestudio:voicestudio /opt/voicestudio /opt/voicestudio_data chmod 700 /opt/voicestudio_data -API_KEY="$(openssl rand -hex 32)" +API_KEY="$(random_password 64)" cat </opt/voicestudio_data/.env OMNIVOICE_DATA_DIR=/opt/voicestudio_data HF_HOME=/opt/voicestudio_data/huggingface From 5a6ce849d3840a620b1e2df79c74b6b19ef3c0ae Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:49:37 +0400 Subject: [PATCH 15/22] Finalize VoiceStudio architecture and service setup --- json/voicestudio.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/json/voicestudio.json b/json/voicestudio.json index 045b2ae31d..ff176742c0 100644 --- a/json/voicestudio.json +++ b/json/voicestudio.json @@ -12,9 +12,6 @@ "documentation": "https://github.com/debpalash/VoiceStudio/blob/v0.5.8/docs/install/docker.md", "website": "https://github.com/debpalash/VoiceStudio", "repository": "https://github.com/debpalash/VoiceStudio", - "architectures": [ - "amd64" - ], "platforms": [ "pve" ], From bc1aeabc01631ba7c3f8f746536fc944ba7bca96 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sun, 22 Nov 2026 00:20:09 +0400 Subject: [PATCH 16/22] fix(voicestudio): align CT helper with DevScripts standards --- ct/voicestudio.sh | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/ct/voicestudio.sh b/ct/voicestudio.sh index 8367e5a078..0a5d018780 100644 --- a/ct/voicestudio.sh +++ b/ct/voicestudio.sh @@ -1,23 +1,23 @@ #!/usr/bin/env bash -_CS_DEFAULT_URL="\${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/DevScripts/main}" -_cs_boot="\${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "\${BASH_SOURCE[0]}")/../../core}/core/build.func" -source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "\${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main" +_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" +source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") + # Copyright (c) 2021-2026 community-scripts ORG # Author: Estcool9 # License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE # Source: https://github.com/debpalash/VoiceStudio APP="VoiceStudio" -var_tags="\${var_tags:-ai;audio;tts;voice-cloning}" -var_cpu="\${var_cpu:-6}" -var_ram="\${var_ram:-12288}" -var_disk="\${var_disk:-50}" -var_os="\${var_os:-debian}" -var_version="\${var_version:-13}" -var_unprivileged="\${var_unprivileged:-1}" -var_testurl="\${var_testurl:-https://github.com/community-scripts/DevScripts/issues/2693}" - -export var_voicestudio_hf_token="\${var_voicestudio_hf_token:-}" +var_tags="${var_tags:-ai;audio;tts;voice-cloning}" +var_cpu="${var_cpu:-6}" +var_ram="${var_ram:-12288}" +var_disk="${var_disk:-50}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_unprivileged="${var_unprivileged:-1}" +var_arm64="${var_arm64:-yes}" +export var_voicestudio_hf_token="${var_voicestudio_hf_token:-}" header_info "$APP" variables @@ -35,17 +35,17 @@ function update_script() { fi if ! systemctl is-active --quiet voicestudio; then - msg_info "VoiceStudio is not running; skipping the automatic update." + msg_warn "VoiceStudio is not running; skipping the automatic update." exit 0 fi if ! curl -fsS --max-time 5 http://127.0.0.1:3900/jobs | jq -e 'length == 0' >/dev/null; then - msg_info "VoiceStudio has active jobs or its API is unavailable; skipping the update." + msg_warn "VoiceStudio has active jobs or its API is unavailable; skipping the update." exit 0 fi if ! curl -fsS --max-time 5 http://127.0.0.1:3900/models/install/status | jq -e '.jobs | length == 0' >/dev/null; then - msg_info "A model download is active or its status cannot be checked; skipping the update." + msg_warn "A model download is active or its status cannot be checked; skipping the update." exit 0 fi @@ -66,7 +66,6 @@ function update_script() { $STD bun run setup:api $STD bun run --cwd electron build:web rm -rf /opt/voicestudio/node_modules /opt/voicestudio/electron/node_modules - chown -R voicestudio:voicestudio /opt/voicestudio /opt/voicestudio_data/uv ); then msg_error "VoiceStudio update failed; attempting to restart the service." systemctl start voicestudio || true @@ -89,6 +88,6 @@ build_container description msg_ok "Completed Successfully!\n" -echo -e "\${CREATING}\${GN}VoiceStudio setup has been successfully initialized!\${CL}" -echo -e "\${INFO}\${YW}Access it using the following URL:\${CL}" -echo -e "\${GATEWAY}\${BGN}http://\${IP}:3900\${CL}" +echo -e "${CREATING}${GN}VoiceStudio setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW}Access it using the following URL:${CL}" +echo -e "${GATEWAY}${BGN}http://${IP}:3900${CL}" From f3447f490dab19dc63ec571bb6f8ff1d0a2e87cb Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sun, 22 Nov 2026 00:20:11 +0400 Subject: [PATCH 17/22] fix(voicestudio): simplify service account and harden setup --- install/voicestudio-install.sh | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/install/voicestudio-install.sh b/install/voicestudio-install.sh index 894babd21a..50c0d55ee6 100644 --- a/install/voicestudio-install.sh +++ b/install/voicestudio-install.sh @@ -17,7 +17,7 @@ msg_info "Installing VoiceStudio dependencies" $STD apt install -y build-essential ffmpeg libsndfile1 libopus-dev pkg-config cmake python3-dev msg_ok "Installed VoiceStudio dependencies" -mkdir -p /opt/voicestudio_data/uv/python +mkdir -p /opt/voicestudio_data/uv/python /opt/voicestudio_data/huggingface export UV_PYTHON_INSTALL_DIR=/opt/voicestudio_data/uv/python fetch_and_deploy_gh_release "voicestudio" "debpalash/VoiceStudio" "tarball" PYTHON_VERSION="3.11" setup_uv @@ -32,24 +32,20 @@ rm -rf /opt/voicestudio/node_modules /opt/voicestudio/electron/node_modules msg_ok "Built VoiceStudio" msg_info "Configuring VoiceStudio" -mkdir -p /opt/voicestudio_data/huggingface -getent passwd voicestudio >/dev/null || useradd --system --user-group --home-dir /opt/voicestudio_data --no-create-home --shell /usr/sbin/nologin voicestudio -chown -R voicestudio:voicestudio /opt/voicestudio /opt/voicestudio_data -chmod 700 /opt/voicestudio_data API_KEY="$(random_password 64)" cat </opt/voicestudio_data/.env OMNIVOICE_DATA_DIR=/opt/voicestudio_data HF_HOME=/opt/voicestudio_data/huggingface OMNIVOICE_SERVER_MODE=1 -OMNIVOICE_API_KEY=\${API_KEY} +OMNIVOICE_BIND_HOST=0.0.0.0 +OMNIVOICE_API_KEY=${API_KEY} EOF -if [[ -n "\${var_voicestudio_hf_token:-}" ]]; then +if [[ -n "${var_voicestudio_hf_token:-}" ]]; then cat <>/opt/voicestudio_data/.env -HF_TOKEN=\${var_voicestudio_hf_token} +HF_TOKEN=${var_voicestudio_hf_token} EOF fi -chown root:voicestudio /opt/voicestudio_data/.env -chmod 640 /opt/voicestudio_data/.env +chmod 600 /opt/voicestudio_data/.env msg_ok "Configured VoiceStudio" msg_info "Creating VoiceStudio service" @@ -61,8 +57,7 @@ Wants=network-online.target [Service] Type=simple -User=voicestudio -Group=voicestudio +User=root WorkingDirectory=/opt/voicestudio EnvironmentFile=/opt/voicestudio_data/.env Environment=HOME=/opt/voicestudio_data From 23aad83c409b4239995886abcf51dc4d39bdce1f Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sun, 22 Nov 2026 00:20:13 +0400 Subject: [PATCH 18/22] fix(voicestudio): update metadata to current schema --- json/voicestudio.json | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/json/voicestudio.json b/json/voicestudio.json index ff176742c0..3028ed9cd5 100644 --- a/json/voicestudio.json +++ b/json/voicestudio.json @@ -4,19 +4,20 @@ "categories": [ 20 ], - "date_created": "2026-11-21", + "date_created": "2026-11-22", "type": "ct", "updateable": true, "privileged": false, + "architectures": [ + "amd64", + "arm64" + ], "interface_port": 3900, "documentation": "https://github.com/debpalash/VoiceStudio/blob/v0.5.8/docs/install/docker.md", "website": "https://github.com/debpalash/VoiceStudio", "repository": "https://github.com/debpalash/VoiceStudio", - "platforms": [ - "pve" - ], "logo": "https://cdn.jsdelivr.net/gh/debpalash/VoiceStudio@v0.5.8/docs/assets/voicestudio-pro.svg", - "description": "Self-hosted voice synthesis and cloning studio. This helper installs the headless FastAPI server in an unprivileged Debian LXC; models are downloaded separately.", + "description": "VoiceStudio is a local-first studio for voice synthesis, voice cloning, dubbing, transcription, and audiobook production. It provides a browser-based interface backed by a local API.", "install_methods": [ { "type": "default", @@ -37,19 +38,15 @@ }, "notes": [ { - "text": "Open http://:3900. The API key is stored in /opt/voicestudio_data/.env as OMNIVOICE_API_KEY.", + "text": "Open http://:3900 and enter the API key stored in /opt/voicestudio_data/.env as OMNIVOICE_API_KEY.", "type": "info" }, { - "text": "Models are not downloaded automatically. Download them in VoiceStudio only after reviewing each model and dependency license.", + "text": "Review and accept each model and dependency licence in VoiceStudio before downloading it.", "type": "warning" }, { - "text": "Stable-release updates are checked daily at 03:30. Disable with systemctl disable --now voicestudio-update.timer.", - "type": "info" - }, - { - "text": "CPU inference is slower. GPU passthrough and CUDA configuration are not automatic.", + "text": "CPU inference is slower; GPU passthrough and accelerator-specific setup are not configured automatically.", "type": "warning" } ], @@ -59,7 +56,7 @@ "label": "Hugging Face Token (optional)", "type": "password", "secret": true, - "help": "Optional. Used for gated/private repositories and higher download limits; public models can be downloaded without it." + "help": "Optional token for gated/private model repositories and higher download limits." } ] } From c423d4b415e35c48e5ee506d4d6e9580972498ba Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sun, 22 Nov 2026 00:27:21 +0400 Subject: [PATCH 19/22] fix(voicestudio): use upstream project creation date --- json/voicestudio.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json/voicestudio.json b/json/voicestudio.json index 3028ed9cd5..cce4cfec0e 100644 --- a/json/voicestudio.json +++ b/json/voicestudio.json @@ -4,7 +4,7 @@ "categories": [ 20 ], - "date_created": "2026-11-22", + "date_created": "2026-04-09", "type": "ct", "updateable": true, "privileged": false, From e53727359e57002fbc93bb05c77ab2c7d1105747 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sun, 22 Nov 2026 00:38:08 +0400 Subject: [PATCH 20/22] fix(voicestudio): install GPG for NodeSource repository setup --- install/voicestudio-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/voicestudio-install.sh b/install/voicestudio-install.sh index 50c0d55ee6..5c46389425 100644 --- a/install/voicestudio-install.sh +++ b/install/voicestudio-install.sh @@ -14,7 +14,7 @@ network_check update_os msg_info "Installing VoiceStudio dependencies" -$STD apt install -y build-essential ffmpeg libsndfile1 libopus-dev pkg-config cmake python3-dev +$STD apt install -y build-essential ffmpeg gpg libsndfile1 libopus-dev pkg-config cmake python3-dev msg_ok "Installed VoiceStudio dependencies" mkdir -p /opt/voicestudio_data/uv/python /opt/voicestudio_data/huggingface From 6b6cd077b692530303b9544cca8049bb09cb1e97 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sun, 22 Nov 2026 00:54:52 +0400 Subject: [PATCH 21/22] fix(voicestudio): leave ARM64 support unverified --- ct/voicestudio.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/voicestudio.sh b/ct/voicestudio.sh index 0a5d018780..70f2e9dc9c 100644 --- a/ct/voicestudio.sh +++ b/ct/voicestudio.sh @@ -16,7 +16,7 @@ var_disk="${var_disk:-50}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" -var_arm64="${var_arm64:-yes}" +#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified export var_voicestudio_hf_token="${var_voicestudio_hf_token:-}" header_info "$APP" @@ -87,7 +87,7 @@ start build_container description -msg_ok "Completed Successfully!\n" +msg_ok "Completed Successfully!\\n" echo -e "${CREATING}${GN}VoiceStudio setup has been successfully initialized!${CL}" echo -e "${INFO}${YW}Access it using the following URL:${CL}" echo -e "${GATEWAY}${BGN}http://${IP}:3900${CL}" From 3577b08b96b1397eb1da5e261f619b5cb6188810 Mon Sep 17 00:00:00 2001 From: Estcool9 <111180796+Estcool9@users.noreply.github.com> Date: Sun, 22 Nov 2026 00:54:57 +0400 Subject: [PATCH 22/22] fix(voicestudio): advertise only verified architecture --- json/voicestudio.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/json/voicestudio.json b/json/voicestudio.json index cce4cfec0e..defe2157b3 100644 --- a/json/voicestudio.json +++ b/json/voicestudio.json @@ -9,8 +9,7 @@ "updateable": true, "privileged": false, "architectures": [ - "amd64", - "arm64" + "amd64" ], "interface_port": 3900, "documentation": "https://github.com/debpalash/VoiceStudio/blob/v0.5.8/docs/install/docker.md",