Skip to content

Commit

Permalink
Test build for GPU snap (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
raivisdejus authored Jun 3, 2024
1 parent 6457e96 commit 905716c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/usage/live_recording.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ 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)

As described on [Ubuntu Wiki](https://wiki.ubuntu.com/record_system_sound) on any Linux with pulse audio you can redirect application audio to a virtual speaker. After that you can select it as source in Buzz.

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`).
8 changes: 4 additions & 4 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ parts:
plugin: make
make-parameters: [ "FLAVOR=qt5" ]
build-packages:
- build-essential
- qtbase5-dev
- dpkg-dev
stage-packages:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 905716c

Please sign in to comment.