Skip to content

Add environment variable for WhisperX threads parameter#407

Open
dukei wants to merge 2 commits intorishikanthc:mainfrom
dukei:main-original
Open

Add environment variable for WhisperX threads parameter#407
dukei wants to merge 2 commits intorishikanthc:mainfrom
dukei:main-original

Conversation

@dukei
Copy link
Copy Markdown

@dukei dukei commented Feb 16, 2026

Currently there is no way to set number of threads for WhisperX to use. It always uses 4 threads which is the default in case --threads parameter is not passed to WhisperX. While there are OMP_NUM_THREADS and MKL_NUM_THREADS variables to set number of threads for diarization, there is no such variable for WhisperX.

This pull request introduces WHX_NUM_THREADS environment variable to set number of threads for WhisperX if it stays at its default value (0). If at some point user interface supports setting threads explicitly, this setting will take precedence of enviroment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant