SpeechKit Hybrid service settings
Written by
Updated at August 8, 2024
To configure the service components, provide each setting in the respective environment variable in the --env
parameter of a component's Docker container run command:
docker run --it \
--env <setting_1>=<value> \
--env <setting_2>=<value> \
... \
<container_name>
If you run containers using the docker compose
command, add or edit service specification settings in the environment
section of the docker-compose.yaml
file.
Component | Environment variable | Setting description |
---|---|---|
All | LOGGING_LEVEL |
Logging level. The default value is INFO . |
Envoy | UPSTREAM_ASR_PROXY_PORT |
Port for handling incoming requests for the STT server. The default value is 8080 . |
Envoy | UPSTREAM_TTS_PROXY_PORT |
Port for handling incoming requests for the TTS server. The default value is 9080 . |
License server | UPSTREAM_ASR_REGISTRATIONS_SERVER_PORT |
Speech recognition service registration port. The default value is 8087 . |
License server | UPSTREAM_TTS_REGISTRATIONS_SERVER_PORT |
Speech synthesis service registration port. The default value is 9087 . |
License server | PROMETHEUS_PORT |
Prometheus port for service metric delivery. The default value is 8003 . |
STT/TTS server | SERVICE_PORT |
Port for making requests to speech/text processing services |
STT server | LICENSE_SERVICE_ENDPOINTS |
FQDN License server and the service registration server specified in the UPSTREAM_ASR_REGISTRATIONS_SERVER_PORT setting in <FQDN_License_server>:<port> format |
TTS server | LICENSE_SERVICE_ENDPOINTS |
FQDN License server and the service registration server specified in the UPSTREAM_TTS_REGISTRATIONS_SERVER_PORT setting in <FQDN_License_server>:<port> format |
PostgreSQL server | POSTGRES_JDBC_URL |
Server URL in the jdbc:postgresql://host:<port>/database?properties format |
PostgreSQL server | POSTGRES_USER |
Server user name |
PostgreSQL server | POSTGRES_PASSWORD |
Password to access the server |
Billing server | STATIC_API_KEY |
API key for authentication on the server |
Reserved ports
There are ports in the service that you cannot configure:
- License server: Port for receiving responses from Envoy,
8086
. - STT/TTS server: Monitoring port,
17002
. - For CPU-based servers:
- STT model server: Port
50051
for incoming requests from the STT server. - TTS model server: Ports
50052
,50053
, and50054
for incoming requests from the TTS server.
- STT model server: Port
Run component command example
The example assumes that the License server is running on host 172.10.19.12
and port 8083
to register an STT application. To run the STT server, use this command:
docker run -it \
--env LICENSE_SERVICE_ENDPOINTS=172.10.19.12:8083 \
--env SERVICE_PORT=17019 \
cr.yandex/<registry_ID>/stt/cpu_x86_64/stt_server:<STT_application_version>
Where:
<registry_ID>
: Registry with Docker images for deploying SpeechKit Hybrid components.<STT_application_version>
: Provided STT service version.