janvarev / Irene-Voice-Assistant

Ирина - русский голосовой ассистент для работы оффлайн. Поддерживает скиллы через плагины.
Other
826 stars 118 forks source link

Irene не работает под pipewire #11

Closed mwc-lord closed 2 years ago

mwc-lord commented 2 years ago

Действовал согласно инструкциям. При запуске runva_vosk.py, происходят или жалобы на malloc(): unaligned tcache chunk detected, free(): invalid pointer или происходит зависание. Куда копать? (Я в питоне ни в зуб ногой. Делал только панельки для Блендера)

Manjaro 21.2.5 (Stable) 5.16.14-1-MANJARO

python 3.10.2 espeak-ng 1.50 tk 8.6.12-1

**pip install -r requirements.txt :**
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: wikipedia-api~=0.5.4 in /home/hargard/.local/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (0.5.4)
Requirement already satisfied: pyttsx3~=2.90 in /home/hargard/.local/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (2.90)
Requirement already satisfied: vosk~=0.3.7 in /home/hargard/.local/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (0.3.37)
Requirement already satisfied: termcolor~=1.1.0 in /home/hargard/.local/lib/python3.10/site-packages (from -r requirements.txt (line 4)) (1.1.0)
Requirement already satisfied: sounddevice in /home/hargard/.local/lib/python3.10/site-packages (from -r requirements.txt (line 5)) (0.4.4)
Requirement already satisfied: soundfile in /home/hargard/.local/lib/python3.10/site-packages (from -r requirements.txt (line 6)) (0.10.3.post1)
Requirement already satisfied: pyautogui in /home/hargard/.local/lib/python3.10/site-packages (from -r requirements.txt (line 7)) (0.9.53)
Requirement already satisfied: requests in /usr/lib/python3.10/site-packages (from -r requirements.txt (line 8)) (2.27.1)
Requirement already satisfied: numpy in /usr/lib/python3.10/site-packages (from -r requirements.txt (line 9)) (1.22.3)
Requirement already satisfied: cffi>=1.0 in /usr/lib/python3.10/site-packages (from vosk~=0.3.7->-r requirements.txt (line 3)) (1.15.0)
Requirement already satisfied: pycparser in /usr/lib/python3.10/site-packages (from cffi>=1.0->vosk~=0.3.7->-r requirements.txt (line 3)) (2.21)
Requirement already satisfied: pymsgbox in /home/hargard/.local/lib/python3.10/site-packages (from pyautogui->-r requirements.txt (line 7)) (1.0.9)
Requirement already satisfied: PyTweening>=1.0.1 in /home/hargard/.local/lib/python3.10/site-packages (from pyautogui->-r requirements.txt (line 7)) (1.0.4)
Requirement already satisfied: pyscreeze>=0.1.21 in /home/hargard/.local/lib/python3.10/site-packages (from pyautogui->-r requirements.txt (line 7)) (0.1.28)
Requirement already satisfied: pygetwindow>=0.0.5 in /home/hargard/.local/lib/python3.10/site-packages (from pyautogui->-r requirements.txt (line 7)) (0.0.9)
Requirement already satisfied: mouseinfo in /home/hargard/.local/lib/python3.10/site-packages (from pyautogui->-r requirements.txt (line 7)) (0.1.3)
Requirement already satisfied: python3-Xlib in /home/hargard/.local/lib/python3.10/site-packages (from pyautogui->-r requirements.txt (line 7)) (0.15)
Requirement already satisfied: pyrect in /home/hargard/.local/lib/python3.10/site-packages (from pygetwindow>=0.0.5->pyautogui->-r requirements.txt (line 7)) (0.2.0)
Requirement already satisfied: chardet>=3.0.2 in /usr/lib/python3.10/site-packages (from requests->-r requirements.txt (line 8)) (4.0.0)
Requirement already satisfied: idna>=2.5 in /usr/lib/python3.10/site-packages (from requests->-r requirements.txt (line 8)) (3.3)
Requirement already satisfied: urllib3>=1.21.1 in /usr/lib/python3.10/site-packages (from requests->-r requirements.txt (line 8)) (1.26.8)
Requirement already satisfied: pyperclip in /home/hargard/.local/lib/python3.10/site-packages (from mouseinfo->pyautogui->-r requirements.txt (line 7)) (1.8.2)

Дополнительно: Requirement already satisfied: SpeechRecognition in /home/hargard/.local/lib/python3.10/site-packages (3.8.1) Requirement already satisfied: PyAudio in /home/hargard/.local/lib/python3.10/site-packages (0.2.11)

pycache.tar.gz

janvarev commented 2 years ago

Рекомендую глянуть руководство по отладке, чтобы понять, что не работает: https://github.com/janvarev/Irene-Voice-Assistant/blob/master/docs/INSTALL_DEBUG.md

Но у меня подозрение на то, что проблемы с VOSK - malloc вроде из C библиотеки, а ничего больше сильно сишного в пакете нет.

В качестве альтернативы могу порекомендовать попробовать запустить runva_speechrecognition.py - он использует не vosk. На мой взгляд, он работает похуже, но, возможно, он запустится.

mwc-lord commented 2 years ago

Запустить через runva_speechrecognition.py получилось только после удаления espeak-ng и ручной сборки espeak.