Test build for GPU snap (#773)

This commit is contained in:
Raivis Dejus 2024-06-03 21:03:29 +03:00 committed by GitHub
parent 6457e96f84
commit 905716c5c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View file

@ -42,7 +42,7 @@ Log files contain valuable information about what the Buzz was doing before the
5. Install the dependencies `poetry install`
6. Install system dependencies you may be missing
```
sudo apt-get install --no-install-recommends libyaml-dev libegl1-mesa libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-shape0 libxcb-cursor0 libportaudio2 gettext libpulse0
sudo apt-get install --no-install-recommends libyaml-dev libegl1-mesa libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-shape0 libxcb-cursor0 libportaudio2 gettext libpulse0 ffmpeg
```
7. Build Buzz `poetry build`
8. Run Buzz `python -m buzz`

View file

@ -15,7 +15,7 @@ sidebar_position: 5
3. **How to record system audio?**
To transcribe system audio you need to configure virtual audio device and connect output from the applications you whant to transcribe to this virtual speaker. After that you can select it as source in the Buzz. See [Usage](https://chidiwilliams.github.io/buzz/docs/usage#live-recording) section for more details.
To transcribe system audio you need to configure virtual audio device and connect output from the applications you want to transcribe to this virtual speaker. After that you can select it as source in the Buzz. See [Usage](https://chidiwilliams.github.io/buzz/docs/usage#live-recording) section for more details.
Relevant tools:
- Mac OS - [BlackHole](https://github.com/ExistentialAudio/BlackHole).

View file

@ -57,7 +57,7 @@ To transcribe system audio you need to configure virtual audio device and connec
1. Install [VB CABLE](https://vb-audio.com/Cable/) as virtual audio device.
2. Configure using Windows Sound settings. Right click on the speaker icon in the system tray and select "Open Sound settings". In the "Choose your output device" dropdown select "CABLE Input" to send all system sound to the virtual device or use "Advanced sound options" to spelect application that will output theit sound to this device.
2. Configure using Windows Sound settings. Right-click on the speaker icon in the system tray and select "Open Sound settings". In the "Choose your output device" dropdown select "CABLE Input" to send all system sound to the virtual device or use "Advanced sound options" to select application that will output their sound to this device.
### Record audio playing from computer (Linux)
@ -65,5 +65,5 @@ As described on [Ubuntu Wiki](https://wiki.ubuntu.com/record_system_sound) on an
Overall steps:
1. Launch application that will produce the sound you want to transcribe and start the playback. For example start a video in a media player.
2. Launch Buzz and open Live recording screen so you see the settings.
2. Launch Buzz and open Live recording screen, so you see the settings.
3. Configure sound routing from the application you want to transcribe sound from to Buzz in `Recording tab` of the PulseAudio Volume Control (`pavucontrol`).

View file

@ -25,6 +25,7 @@ parts:
plugin: make
make-parameters: [ "FLAVOR=qt5" ]
build-packages:
- build-essential
- qtbase5-dev
- dpkg-dev
stage-packages:
@ -39,6 +40,7 @@ parts:
- libgdk-pixbuf2.0-0
- libqt5svg5 # for loading icon themes which are svg
- libglib2.0-0
- xdg-user-dirs
override-prime: |
craftctl default
glib-compile-schemas usr/share/glib-2.0/schemas
@ -98,14 +100,12 @@ parts:
- libxcb-xinerama0
- libxcb-shape0
- libxcb-cursor0
# GPU
- libglu1-mesa
override-build: |
craftctl default
pip install poetry
pip install .
# Switch to CPU torch
pip uninstall -y torch torchaudio nvidia-cublas-cu12 nvidia-cuda-cupti-cu12 nvidia-cuda-nvrtc-cu12 nvidia-cuda-runtime-cu12 nvidia-cudnn-cu12 nvidia-cufft-cu12 nvidia-curand-cu12 nvidia-cusolver-cu12 nvidia-cusparse-cu12 nvidia-nccl-cu12 nvidia-nvjitlink-cu12 nvidia-nvtx-cu12
python3 -m pip install torch torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
# Switch to ctranslate2 that has no execstack issues
pip uninstall -y ctranslate2
pip install https://github.com/raivisdejus/CTranslate2-no-execstack/releases/download/v4.2.1/ctranslate2-4.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
python3 build.py