Skip to content

Command line

Terminal window
python run.py [options]
OptionDefaultWhat it does
--host127.0.0.1Dirección donde escucha el servidor (0.0.0.0 para todas, p. ej. en Docker)
--port8765Puerto HTTP y WebSocket
--modelsegún el perfilModelo de Whisper (por defecto, el del perfil de rendimiento)
--devicesegún el perfilcuda (GPU NVIDIA) o cpu (por defecto, cuda si hay GPU)
--compute-typesegún el perfilPrecisión de Whisper en CTranslate2: float16, int8_float16, int8…
--beamsegún el perfilAncho de búsqueda de Whisper (5 segmenta mejor que 1)
--translatorsegún el perfilnone | opus-base | opus-big | nllb-1.3b | madlad-3b | repo de HF (Marian CT2) (por defecto, el del perfil)
--voicesegún el perfilnone | omnivoice | chatterbox (por defecto, según el perfil)
--owner-passwordemptyContraseña del dueño al arrancar (o TRANSLAY_OWNER_PASSWORD); hace falta cuando nadie entra desde 127.0.0.1, como en Docker
--allow-originemptyOtro origen desde el que se puede usar la app (p. ej. https://translay.midominio.com detrás de un proxy que cambia el Host); se repite, o TRANSLAY_ORIGINS separados por comas
--no-browser—No abrir el navegador al arrancar
--data-diremptyCarpeta de datos de la biblioteca Principal (o TRANSLAY_DATA; por defecto, data/ junto al código). La app de escritorio usa la que elegiste al instalar

python run.py --version prints the installed version (Translay 1.4.0).

Variable Purpose
TRANSLAY_OWNER_PASSWORD Owner password at startup; same as --owner-password. See Access.
TRANSLAY_ORIGINS Other allowed origins, comma-separated; same as --allow-origin. See Other websites.
HF_HOME Where downloaded Hugging Face models are stored (in Docker, /models).
CT2_CUDA_CACHING_ALLOCATOR_CONFIG CTranslate2 memory cache; vt/gpu.py caps it at 400 MB if it is not set.
Terminal window
# no GPU (slow, useful for trying the interface)
python run.py --device cpu --compute-type int8 --voice none
# another translator and another port
python run.py --translator nllb-1.3b --port 9000
# listen on the whole network (in addition to "Acceso desde otros equipos" in Preferences)
python run.py --host 0.0.0.0