{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b8368077-a6f9-48d5-983d-85750872f10b",
    "slug": "speaches",
    "name": "Speaches | Open-Source OpenAI Whisper Alternative on Railway",
    "description": "Self Host Speaches — OpenAI-compatible STT/TTS API server",
    "url": "https://railway.com/deploy/speaches",
    "upstream": {
      "image": "ghcr.io/speaches-ai/speaches:0.9.0-rc.3-cpu"
    }
  },
  "services": [
    {
      "name": "Speaches",
      "source": {
        "image": "ghcr.io/speaches-ai/speaches:0.9.0-rc.3-cpu"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/ubuntu/.cache/huggingface/hub",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Speaches",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "API_KEY",
      "service": "Speaches",
      "description": "API key for endpoint auth",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ENABLE_UI",
      "service": "Speaches",
      "description": "Enable Gradio web interface",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LOG_LEVEL",
      "service": "Speaches",
      "description": "Production logging level",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "UVICORN_HOST",
      "service": "Speaches",
      "description": "Server bind address",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "UVICORN_PORT",
      "service": "Speaches",
      "description": "Uvicorn server port",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "STT_MODEL_TTL",
      "service": "Speaches",
      "description": "Never unload STT models",
      "secret": false,
      "strategy": "default",
      "default": "-1"
    },
    {
      "key": "TTS_MODEL_TTL",
      "service": "Speaches",
      "description": "Never unload TTS models",
      "secret": false,
      "strategy": "default",
      "default": "-1"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Speaches",
      "description": "Root for volume permissions",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "WHISPER__COMPUTE_TYPE",
      "service": "Speaches",
      "description": "CPU-optimized quantization",
      "secret": false,
      "strategy": "default",
      "default": "int8"
    },
    {
      "key": "WHISPER__INFERENCE_DEVICE",
      "service": "Speaches",
      "description": "Force CPU inference",
      "secret": false,
      "strategy": "default",
      "default": "cpu"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "speaches"
      }
    },
    "cli": "railway deploy --template speaches",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b8368077-a6f9-48d5-983d-85750872f10b",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b6720dbd-9b7b-43cc-8e52-1ed6fbc7ce10": {
                  "icon": "https://raw.githubusercontent.com/speaches-ai/speaches/master/realtime-console/dist/peach.svg",
                  "name": "Speaches",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/speaches-ai/speaches:0.9.0-rc.3-cpu"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "8000"
                    },
                    "API_KEY": {
                      "isOptional": false,
                      "description": "API key for endpoint auth",
                      "defaultValue": "{{API_KEY}}"
                    },
                    "ENABLE_UI": {
                      "isOptional": false,
                      "description": "Enable Gradio web interface",
                      "defaultValue": "true"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Production logging level",
                      "defaultValue": "info"
                    },
                    "UVICORN_HOST": {
                      "isOptional": false,
                      "description": "Server bind address",
                      "defaultValue": "0.0.0.0"
                    },
                    "UVICORN_PORT": {
                      "isOptional": false,
                      "description": "Uvicorn server port",
                      "defaultValue": "8000"
                    },
                    "STT_MODEL_TTL": {
                      "isOptional": false,
                      "description": "Never unload STT models",
                      "defaultValue": "-1"
                    },
                    "TTS_MODEL_TTL": {
                      "isOptional": false,
                      "description": "Never unload TTS models",
                      "defaultValue": "-1"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Root for volume permissions",
                      "defaultValue": "0"
                    },
                    "WHISPER__COMPUTE_TYPE": {
                      "isOptional": false,
                      "description": "CPU-optimized quantization",
                      "defaultValue": "int8"
                    },
                    "WHISPER__INFERENCE_DEVICE": {
                      "isOptional": false,
                      "description": "Force CPU inference",
                      "defaultValue": "cpu"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "b6720dbd-9b7b-43cc-8e52-1ed6fbc7ce10": {
                      "mountPath": "/home/ubuntu/.cache/huggingface/hub"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T12:53:26.195Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4dfacc9ffaa942b59fc3",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 62,
    "typical_build_seconds": 0,
    "typical_start_seconds": 31,
    "slowest_service": "Speaches"
  }
}
