Skip to content
Closed
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
67 changes: 67 additions & 0 deletions ct/voicestudio.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/usr/bin/env bash
_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 (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}"
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}"

header_info "$APP"
variables
color
catch_errors

function update_script() {
header_info
check_container_storage
check_container_resources

if [[ ! -d /opt/voicestudio ]]; then
msg_error "No VoiceStudio Installation Found!"
exit
fi

if check_for_gh_release "voicestudio" "debpalash/VoiceStudio"; then
msg_info "Stopping VoiceStudio"
systemctl stop voicestudio
msg_ok "Stopped VoiceStudio"

NODE_VERSION="22" NODE_MODULE="bun@1.4.2" setup_nodejs
PYTHON_VERSION="3.11" setup_uv
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "voicestudio" "debpalash/VoiceStudio" "tarball"

msg_info "Building VoiceStudio"
cd /opt/voicestudio
$STD bun install --frozen-lockfile
OMNIVOICE_TORCH_VARIANT=cpu $STD bun run setup:api
$STD bun run build:web
msg_ok "Built VoiceStudio"

msg_info "Starting VoiceStudio"
systemctl start voicestudio
msg_ok "Started VoiceStudio"
msg_ok "Updated successfully!"
fi
exit
}

start
build_container
description

msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} 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 "${INFO}${YW}API key: /opt/voicestudio_data/.env (OMNIVOICE_API_KEY). For first browser login, append #api_key=<key> to the URL.${CL}"
84 changes: 84 additions & 0 deletions install/voicestudio-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
#!/usr/bin/env bash

# Copyright (c) 2021-2026 community-scripts ORG
# Author: Estcool9 (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 system dependencies"
$STD apt install -y \
build-essential \
gnupg \
libsndfile1
msg_ok "Installed VoiceStudio system dependencies"

setup_ffmpeg
NODE_VERSION="22" NODE_MODULE="bun@1.4.2" setup_nodejs
PYTHON_VERSION="3.11" setup_uv

fetch_and_deploy_gh_release "voicestudio" "debpalash/VoiceStudio" "tarball"

msg_info "Installing VoiceStudio JavaScript dependencies"
cd /opt/voicestudio
$STD bun install --frozen-lockfile
msg_ok "Installed VoiceStudio JavaScript dependencies"

msg_info "Installing VoiceStudio CPU backend"
OMNIVOICE_TORCH_VARIANT=cpu $STD bun run setup:api
msg_ok "Installed VoiceStudio CPU backend"

msg_info "Building VoiceStudio web interface"
$STD bun run build:web
msg_ok "Built VoiceStudio web interface"

msg_info "Configuring VoiceStudio data and model storage"
mkdir -p /opt/voicestudio_data/huggingface
chmod 700 /opt/voicestudio_data /opt/voicestudio_data/huggingface
cat <<EOF >/opt/voicestudio_data/.env
OMNIVOICE_SERVER_MODE=1
OMNIVOICE_API_KEY=$(random_password 48)
OMNIVOICE_DATA_DIR=/opt/voicestudio_data
HF_HOME=/opt/voicestudio_data/huggingface
PYTHONPATH=/opt/voicestudio/backend
PYTHONUNBUFFERED=1
PYTHONDONTWRITEBYTECODE=1
OMNIVOICE_ANALYTICS_DISABLED=1
EOF
chmod 600 /opt/voicestudio_data/.env
msg_ok "Configured VoiceStudio data and model storage"

msg_info "Creating VoiceStudio service"
cat <<EOF >/etc/systemd/system/voicestudio.service
[Unit]
Description=VoiceStudio Web Backend
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
WorkingDirectory=/opt/voicestudio
EnvironmentFile=/opt/voicestudio_data/.env
ExecStart=/opt/voicestudio/.venv/bin/uvicorn backend.main:app --host 0.0.0.0 --port 3900
Restart=on-failure
RestartSec=5
TimeoutStartSec=600
UMask=0077
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now voicestudio
msg_ok "Created VoiceStudio service"

motd_ssh
customize
cleanup_lxc
55 changes: 55 additions & 0 deletions json/voicestudio.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "VoiceStudio",
"slug": "voicestudio",
"categories": [
20
],
"date_created": "2026-11-15",
"type": "ct",
"updateable": true,
"privileged": false,
"interface_port": 3900,
"documentation": "https://github.com/debpalash/VoiceStudio/blob/main/docs/remote-gpu.md",
"website": "https://voicestudio.sh/",
"repository": "https://github.com/debpalash/VoiceStudio",
"architectures": [
"amd64"
],
"platforms": [
"pve"
],
"logo": "https://cdn.jsdelivr.net/gh/debpalash/VoiceStudio@v0.5.8/docs/logo.svg",
"description": "VoiceStudio is a local-first AI voice studio for voice cloning, speech generation, dubbing, transcription and audiobooks. It provides a browser-based interface backed by a self-hosted inference service.",
"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": "The administrator API key is stored in /opt/voicestudio_data/.env as OMNIVOICE_API_KEY. For first browser access, append #api_key=<key> to the VoiceStudio URL; the browser exchanges it for a session.",
"type": "info"
},
{
"text": "This installation uses CPU-only PyTorch. Speech generation can be slow with larger engines; install smaller CPU-friendly engines for better responsiveness.",
"type": "warning"
},
{
"text": "Voice models are downloaded when selected in VoiceStudio and are stored under /opt/voicestudio_data/huggingface. Allow additional disk space for models.",
"type": "info"
}
]
}
Loading