Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/windows_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
python3 -m pip install -U wheel setuptools pip
python3 -m pip install -U pywin32 lxml pymavlink numpy matplotlib pyserial opencv-python PyYAML Pygame Pillow wxpython prompt-toolkit scipy
python3 -m pip install -U openai wave pyaudio
python3 -m pip install -U openai pyaudio
python3 -m pip install -U pyinstaller==6.7.0 packaging
- name: Download Inno Setup installer
run: curl -L -o installer.exe http://files.jrsoftware.org/is/6/innosetup-6.3.1.exe
Expand Down
5 changes: 2 additions & 3 deletions MAVProxy/modules/mavproxy_chat/chat_voice_to_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
AP_FLAKE8_CLEAN
'''


import wave
try:
import pyaudio # install using, "sudo apt-get install python3-pyaudio"
import wave # install with "pip3 install wave"
from openai import OpenAI
except Exception:
print("chat: failed to import pyaudio, wave or openai. See https://ardupilot.org/mavproxy/docs/modules/chat.html")
print("chat: failed to import pyaudio or openai. See https://ardupilot.org/mavproxy/docs/modules/chat.html")
exit()

# initializing the global list to keep and update the stop_recording state
Expand Down
2 changes: 1 addition & 1 deletion windows/MAVProxyWinBuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if exist "..\..\pymavlink" (
rem -----Install additional Python packages-----
python.exe -m pip install -U wheel setuptools pip
python.exe -m pip install pywin32 lxml pymavlink numpy matplotlib pyserial opencv-python PyYAML Pygame Pillow wxpython prompt-toolkit scipy
python.exe -m pip install -U openai wave pyaudio
python.exe -m pip install -U openai pyaudio
python.exe -m pip install -U pyinstaller==6.7.0 packaging
python.exe -m pip install -U requests

Expand Down