Skyrim Special Edition

Credit: (V)(;,,,;)(V)

Step 1
In the folder with the ”Run” file used to start the server, there’s a folder labeled “Tools”.



Open that folder, and inside there’s several other files. Find “enable_local_whisper”.


Run it, and a command window will open that looks like this:


Type “yes”, and you’ll be prompted to pick the model you want to use. The synopsis for each model is in the command window.
Pick which one you want to use. The command window will close. Give it about 5 to 10 minutes to complete its installation.
After waiting, run the server file, and you should see something like this:


If you do, then you can skip to Step 4.
If you don’t, then continue on to Step 2.

Step 2
In file explorer, go to:
\\wsl.localhost\DwemerAI4Skyrim2\home\dwemer\speech-rest-api
In there, there’s three files that, depending on which model you chose, need to be edited.


The numbers above indicate which model you chose. For the purposes of this guide, we’ll be editing medium_model_en.
Open it in a text editor (preferably Notepad++) and find the following line:


(If editing the other models, the corresponding model lines will say “large-v2” for the large model, and “medium” for the regular medium model).
Change “float16” to “int8”.


Save, then exit the text editor.

(This is also where you can change it from using your gpu to instead use your cpu (performance will vary). Just change “cuda” to “cpu”, then save and exit.)
Redo Step 1, and it should say that the Local Whisper Server is started, and skip to Step 4.
If it still shows that it isn’t started, continue to Step 3.

Step 3
If the server command window still says that it hasn’t started, then it could just be the trigger not communicating properly.
Go to the same folder with the models and find the “log” file. Open it in a text editor.

If it shows this:

Then it’s working fine, and the server command window is just having a bit of a hiccup. You can continue to Step 4.

Step 4

Go to the server webpage that opens whenever running the server.
Along the top, “Configuration”, then “Configuration Wizard”.


Along the right side in the Quick Access menu click on “Speech-to-Text Service”.


This will auto-scroll down to the Speech-to-Text section.
Make sure that the “STTFUNCTION” is set to “localwhisper”.


Scroll down to the “Local Whisper Speech-to-Text” section.


Change the “127.0.0.1:3000” to what the server command window tells you, leaving the /transcribe”.



Click on “Check” and a small window should pop up at the top saying the URL is ok and available.


Scroll down to the bottom of the page (or in the “Quick Access” menu) and hit “Save”.
Step 5
In a file explorer, go to:
\\wsl.localhost\DwemerAI4Skyrim2\var\www\html\HerikaServer\stt


Open “stt-localwhisper” in a text editor and find this line:


Change “file\” to “audio\”.


Save, then exit the text editor.

Now it should work in game. Just make sure that you’re using the “record voice” hotkey, not the “chat with Herika” hotkey.



Article information

Added on

Edited on

Written by

rang97

1 comment

  1. foojla
    foojla
    • supporter
    • 7 kudos
    I tried all the methods above,still can't get it working
    below is the log:
    An error occured while synchronizing the model guillaumekln/faster-whisper-large-v2 from the Hugging Face Hub:
    (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/guillaumekln/faster-whisper-large-v2/revision/main (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f184cc12df0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))"), '(Request ID: ae2152fc-4d22-4bfe-9812-5f76654ae5a9)')
    Trying to load the model directly from the local cache, if it exists.
    Traceback (most recent call last):
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
        conn = connection.create_connection(
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection
        raise err
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection
        sock.connect(sa)
    OSError: [Errno 101] Network is unreachable
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
        httplib_response = self._make_request(
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request
        self._validate_conn(conn)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
        conn.connect()
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/urllib3/connection.py", line 358, in connect
        self.sock = conn = self._new_conn()
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
        raise NewConnectionError(
    urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f184cc12df0>: Failed to establish a new connection: [Errno 101] Network is unreachable
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
        resp = conn.urlopen(
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 787, in urlopen
        retries = retries.increment(
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
        raise MaxRetryError(_pool, url, error or ResponseError(cause))
    urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/guillaumekln/faster-whisper-large-v2/revision/main (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f184cc12df0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/faster_whisper/utils.py", line 98, in download_model
        return huggingface_hub.snapshot_download(repo_id, **kwargs)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
        return fn(*args, **kwargs)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/huggingface_hub/_snapshot_download.py", line 189, in snapshot_download
        repo_info = api.repo_info(repo_id=repo_id, repo_type=repo_type, revision=revision, token=token)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
        return fn(*args, **kwargs)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/huggingface_hub/hf_api.py", line 1888, in repo_info
        return method(
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
        return fn(*args, **kwargs)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/huggingface_hub/hf_api.py", line 1697, in model_info
        r = get_session().get(path, headers=headers, timeout=timeout, params=params)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/requests/sessions.py", line 600, in get
        return self.request("GET", url, **kwargs)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
        resp = self.send(prep, **send_kwargs)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
        r = adapter.send(request, **kwargs)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/huggingface_hub/utils/_http.py", line 63, in send
        return super().send(request, *args, **kwargs)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/requests/adapters.py", line 565, in send
        raise ConnectionError(e, request=request)
    requests.exceptions.ConnectionError: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/guillaumekln/faster-whisper-large-v2/revision/main (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f184cc12df0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))"), '(Request ID: ae2152fc-4d22-4bfe-9812-5f76654ae5a9)')
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
      File "/home/dwemer/speech-rest-api/custom_app.py", line 16, in <module>
        model = WhisperModel("large-v2", device="cuda", compute_type="int8")
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/faster_whisper/transcribe.py", line 122, in __init__
        model_path = download_model(
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/faster_whisper/utils.py", line 114, in download_model
        return huggingface_hub.snapshot_download(repo_id, **kwargs)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
        return fn(*args, **kwargs)
      File "/home/dwemer/speech-rest-api/python/lib/python3.9/site-packages/huggingface_hub/_snapshot_download.py", line 172, in snapshot_download
        with open(ref_path) as f:
    FileNotFoundError: [Errno 2] No such file or directory: '/home/dwemer/.cache/huggingface/hub/models--guillaumekln--faster-whisper-large-v2/refs/main'