Views
No views yet
1# Example: install torch from https://pytorch.org/ for your system first, then:
2pip install -r inference_endpoints/requirements.txtMAYA_MODEL_PATH to your model path if needed):1export MAYA_MODEL_PATH="/path/to/maya_model"
2uvicorn server.app:app --reload --host 0.0.0.0 --port 8000output.wav):1curl -X POST "http://localhost:8000/synthesize" -H "Content-Type: application/json" -d '{
2 "description": "neutral female voice",
3 "text": "Hello world from Maya TTS"
4}' --output output.wavEndpointHandler expects the Maya model to be compatible with the SNAC decoder flow; you may need to adapt token decoding depending on the actual model outputs.torch often requires platform-specific wheels; if pip install -r fails for torch, install the appropriate wheel from pytorch.org first then re-run the requirements install for the remaining packages..venv, editor settings, tasks, and launch configurations.1make venv
2source .venv/bin/activate1pip install -r inference_endpoints/requirements.txt
2# dev tools for formatting & linting
3pip install black flake8${workspaceFolder}/.venv/bin/python and the Python extension will activate the venv in the terminal.Black is configured and will run on save (line length 88).flake8 is enabled; run it using the Tasks panel or via the command palette.Format: black, Lint: flake8, or Run server (run.sh) from the Tasks menu.Run FastAPI (uvicorn) launch configuration to start the server with debugging enabled. It will load server/.env for environment variables.Run FastAPI (uvicorn) to start with the debugger../run.shserver/pyproject.toml. From server/ run:1poetry install
2poetry run uvicorn server.app:app --reload --host 0.0.0.0 --port 8000DEVELOPING.md with these steps and troubleshooting tips.1# Example: install torch from https://pytorch.org/ for your system first, then:
2pip install -r inference_endpoints/requirements.txtMAYA_MODEL_PATH to your model path if needed):1export MAYA_MODEL_PATH="/path/to/maya_model"
2uvicorn server.app:app --reload --host 0.0.0.0 --port 8000output.wav):1curl -X POST "http://localhost:8000/synthesize" -H "Content-Type: application/json" -d '{
2 "description": "neutral female voice",
3 "text": "Hello world from Maya TTS"
4}' --output output.wavEndpointHandler expects the Maya model to be compatible with the SNAC decoder flow; you may need to adapt token decoding depending on the actual model outputs.torch often requires platform-specific wheels; if pip install -r fails for torch, install the appropriate wheel from pytorch.org first then re-run the requirements install for the remaining packages.