web_discord - cyberofficial/Synthalingua GitHub Wiki

Web & Discord Integration

These arguments control integration with Discord and the built-in web server.

For full details on the browser-based web player (live stream viewer), see Web Player (html_data).

Arguments

Flag Description
--portnumber TCP port for the HTTP web interface server (1-65535). Starts the web UI when provided.
--https TCP port for the HTTPS web interface server (1-65535). Launches a self-signed TLS endpoint alongside HTTP when set.
--serverip IP address to bind the web server to. Defaults to 127.0.0.1 (local only).
--discord_webhook Discord webhook URL for sending live transcription results to a Discord channel. Only works with real-time microphone mode.
--remote_hls_password_id Password ID for the webserver.
--remote_hls_password Password for the HLS webserver.

Details & Examples

--portnumber

Launches a local Flask web server to view real-time subtitles in your browser. The port must be between 1 and 65535 and should be open in your firewall. Example:

python synthalingua.py --portnumber 8080

--https

Starts an additional HTTPS server with a temporary self-signed certificate. Specify a distinct port from --portnumber to avoid conflicts. Example:

python synthalingua.py --portnumber 8080 --https 8443

--serverip

Sets the network interface or IP address that both HTTP and HTTPS servers bind to. Use the default 127.0.0.1 to restrict access to the local machine only, or 0.0.0.0 to accept connections from other devices on your network. Example:

python synthalingua.py --portnumber 8080 --serverip 0.0.0.0

If both --portnumber and --https are provided, they share the same --serverip binding.

Note: All arguments and examples in this document are validated against the actual parser arguments in modules/parser_args.py and should match the code exactly.

--discord_webhook

Sends results and notifications to a Discord channel. Example:

python synthalingua.py --discord_webhook "https://discord.com/api/webhooks/1234567890/1234567890"

--remote_hls_password_id & --remote_hls_password

Set password protection for the web server (for remote HLS streaming).


Back to Index