{
  "manifest_version": "1.0.0",
  "template": {
    "id": "24fb045c-5a5a-432e-8137-51ded76a22c7",
    "slug": "voicestudio",
    "name": "VoiceStudio | Open-Source ElevenLabs Alternative, Voice Cloning & TTS",
    "description": "Voice cloning, text-to-speech, dubbing and transcription in your browser",
    "url": "https://railway.com/deploy/voicestudio",
    "upstream": {
      "image": "ghcr.io/debpalash/voicestudio:0.5.6"
    }
  },
  "services": [
    {
      "name": "VoiceStudio",
      "source": {
        "image": "ghcr.io/debpalash/voicestudio:0.5.6"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/omnivoice_data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "VoiceStudio",
      "description": "Port Railway routes to - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "3900"
    },
    {
      "key": "MKL_NUM_THREADS",
      "service": "VoiceStudio",
      "description": "Same thread cap for the math library - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OMP_NUM_THREADS",
      "service": "VoiceStudio",
      "description": "CPU threads for inference - match your plan's vCPUs (Hobby 8, Pro up to 32). Without it PyTorch oversubscribes and stalls",
      "secret": false,
      "strategy": "default",
      "default": "8"
    },
    {
      "key": "OMNIVOICE_API_KEY",
      "service": "VoiceStudio",
      "description": "Admin key - the web UI asks for it once; also the Bearer token for the API",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "voicestudio"
      }
    },
    "cli": "railway deploy --template voicestudio",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "24fb045c-5a5a-432e-8137-51ded76a22c7",
            "serializedConfig": {
              "services": {
                "e8aa4d7e-e45d-46b8-a655-6df6000332f7": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/voicestudio/main/icon.svg",
                  "name": "VoiceStudio",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"(while sleep 300; do find / /app/omnivoice_data -xdev -type f -size +64k 2>/dev/null | while read -r f; do dd if=$f iflag=nocache count=0 status=none 2>/dev/null; done; done) & exec python3 -m uvicorn backend.main:app --host 0.0.0.0 --port 3900\"",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/debpalash/voicestudio:0.5.6"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes to - leave as is",
                      "defaultValue": "3900"
                    },
                    "HF_TOKEN": {
                      "isOptional": true,
                      "description": "Optional Hugging Face token, for gated models and faster downloads",
                      "defaultValue": ""
                    },
                    "MKL_NUM_THREADS": {
                      "isOptional": false,
                      "description": "Same thread cap for the math library - leave as is",
                      "defaultValue": "${{OMP_NUM_THREADS}}"
                    },
                    "OMP_NUM_THREADS": {
                      "isOptional": false,
                      "description": "CPU threads for inference - match your plan's vCPUs (Hobby 8, Pro up to 32). Without it PyTorch oversubscribes and stalls",
                      "defaultValue": "8"
                    },
                    "OMNIVOICE_API_KEY": {
                      "isOptional": false,
                      "description": "Admin key - the web UI asks for it once; also the Bearer token for the API",
                      "defaultValue": "{{OMNIVOICE_API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "090a1ad6-7ee1-4b2f-beb5-53b6930d8b0f": {
                      "mountPath": "/app/omnivoice_data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "VoiceStudio",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-20T04:14:47.318Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-20T02:19:40.402Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_3f7665bb455840a98dd8",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 209,
    "typical_build_seconds": 0,
    "typical_start_seconds": 192,
    "slowest_service": "VoiceStudio"
  }
}
