`vosk` Hangs When Imported After `pynini`
- Vorherrschende Sprache
- Jupyter Notebook
- Sterne
- 15.1k
- Forks
- 1.8k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
# Description
When importing both pynini and vosk, vosk hangs without throwing an error, segfault, or any other output. This only occurs when pynini is imported before vosk. I suspect it could be an OpenFST initialisation issue.
# Steps to Reproduce and Versions
```bash
❯ uv venv --python 3.11
Using CPython 3.11.10
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate
❯ source .venv/bin/activate
❯ uv pip install pynini
Resolved 1 package in 334ms
Installed 1 package in 8ms
+ pynini==2.1.6.post1
❯ uv pip install vosk
Resolved 11 packages in 1.00s
Installed 11 packages in 11ms
+ certifi==2025.1.31
+ cffi==1.17.1
+ charset-normalizer==3.4.1
+ idna==3.10
+ pycparser==2.22
+ requests==2.32.3
+ srt==3.5.3
+ tqdm==4.67.1
+ urllib3==2.3.0
+ vosk==0.3.45
+ websockets==15.0
❯ ipython
In [1]: import pynini
In [2]: import vosk
# hangs
❯ ipython
In [1]: import vosk
In [2]: import pynini
# works
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.