Skip to content

Commit

Permalink
Fix for snap audio playback (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
raivisdejus committed Jun 10, 2024
1 parent 2def2b9 commit 3d44a45
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ Log files contain valuable information about what the Buzz was doing before the
* Mac and Linux run the app from the terminal and check the output.
* Windows paste this into the Windows Explorer address bar `%USERPROFILE%\AppData\Local\Buzz\Buzz\Logs` and check the logs file.

**Test on latest version**

To see if your issue has already been fixed, try running the latest version of the Buzz. To get it log in to the GitHub and go to [Actions section](https://github.com/chidiwilliams/buzz/actions?query=branch%3Amain). Latest development versions attached to Artifacts section of successful builds.

Linux versions get also pushed to the snap. To install latest development version use `snap install buzz --channel latest/edge`

## Running Buzz locally

### Linux (Ubuntu)
Expand Down
23 changes: 12 additions & 11 deletions buzz/locale/lv_LV/LC_MESSAGES/buzz.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-09 13:25+0300\n"
"PO-Revision-Date: 2024-06-09 13:27+0300\n"
"POT-Creation-Date: 2024-06-10 21:58+0300\n"
"PO-Revision-Date: 2024-06-10 21:59+0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: lv_LV\n"
Expand Down Expand Up @@ -43,7 +43,7 @@ msgid "View Transcript Timestamps"
msgstr "Aplūkot atpazīšanas laikus"

#: buzz/settings/shortcut.py:25 buzz/widgets/main_window_toolbar.py:60
#: buzz/widgets/main_window.py:214
#: buzz/widgets/main_window.py:222
msgid "Clear History"
msgstr "Notīrīt vēsturi"

Expand Down Expand Up @@ -154,10 +154,11 @@ msgstr "Snap atļauju piezīme"

#: buzz/widgets/snap_notice.py:13
msgid ""
"No input devices found, please check that snap permissions have been granted"
"Detected missing permissions, please check that snap permissions have been "
"granted"
msgstr ""
"Nav atrasta neviena skaņas ievades ierīce, iespējams nav piešķirtas "
"nepieciešamās snap atļaujas"
"Ne visi nepieciešamie moduļi darbojas korekti, iespējams nav piešķirtas "
"snap atļaujas"

#: buzz/widgets/snap_notice.py:16
msgid ""
Expand Down Expand Up @@ -188,24 +189,24 @@ msgstr "Fails"
msgid "Help"
msgstr "Palīdzība"

#: buzz/widgets/main_window.py:216
#: buzz/widgets/main_window.py:224
msgid ""
"Are you sure you want to delete the selected transcription(s)? This action "
"cannot be undone."
msgstr ""
"Vai tiešām vēlaties dzēst izvēlētos transkriptus? Šī ir neatgriezeniska "
"darbība."

#: buzz/widgets/main_window.py:236
#: buzz/widgets/main_window.py:244
msgid "Select audio file"
msgstr "Izvēlieties audio failu"

#: buzz/widgets/main_window.py:270
#: buzz/widgets/main_window.py:278
#: buzz/widgets/preferences_dialog/models_preferences_widget.py:191
msgid "Error"
msgstr "Kļūda"

#: buzz/widgets/main_window.py:270
#: buzz/widgets/main_window.py:278
msgid "Unable to save OpenAI API key to keyring"
msgstr "Neizdevās saglabāt OpenAI API atslēgu atslēgu saišķī"

Expand Down Expand Up @@ -238,7 +239,7 @@ msgstr "Sākums"
msgid "End"
msgstr "Beigas"

#: buzz/widgets/transcription_viewer/transcription_viewer_widget.py:89
#: buzz/widgets/transcription_viewer/transcription_viewer_widget.py:92
msgid "Export"
msgstr "Eksportēt"

Expand Down
2 changes: 1 addition & 1 deletion buzz/widgets/snap_notice.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(self, parent=None):

self.layout = QVBoxLayout(self)

self.notice_label = QLabel(_("No input devices found, please check that snap permissions have been granted"))
self.notice_label = QLabel(_("Detected missing permissions, please check that snap permissions have been granted"))
self.layout.addWidget(self.notice_label)

self.instruction_label = QLabel(_("To enable necessary permissions run the following commands in the terminal"))
Expand Down
15 changes: 13 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,17 @@ parts:
- libpulse0
- libasound2
- libasound2-plugins
- libasound2-plugins-extra
- libyaml-dev
- libegl1-mesa
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-base-apps
- gstreamer1.0-pulseaudio
- libgstreamer1.0-0
- libgstreamer-plugins-base1.0-0
- libgstreamer-plugins-good1.0-0
- qt6-declarative-dev
- qt6-multimedia-dev
# Display
- libxkbcommon-x11-0
- libxcb-icccm4
Expand Down Expand Up @@ -126,18 +135,20 @@ apps:
desktop: usr/share/applications/buzz.desktop
environment:
PATH: $SNAP/usr/bin:$SNAP/bin:$PATH
LD_LIBRARY_PATH: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/lapack:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/blas:$SNAP:$LD_LIBRARY_PATH
PYTHONPATH: $SNAP/usr/lib/python3/dist-packages:$SNAP/usr/lib/python3.10/site-packages:$SNAP/usr/local/lib/python3.10/dist-packages:$SNAP/usr/lib/python3.10/dist-packages:$PYTHONPATH
LD_LIBRARY_PATH: $SNAP/lib/python3.10/site-packages/PyQt6:$SNAP/lib/python3.10/site-packages/PyQt6/Qt6/lib:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/lapack:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/blas:$SNAP:$LD_LIBRARY_PATH
PYTHONPATH: $SNAP/lib/python3.10/site-packages/PyQt6:$SNAP/lib/python3.10/site-packages/PyQt6/Qt6/lib:$SNAP/usr/lib/python3/dist-packages:$SNAP/usr/lib/python3.10/site-packages:$SNAP/usr/local/lib/python3.10/dist-packages:$SNAP/usr/lib/python3.10/dist-packages:$PYTHONPATH
# Fallback to XWayland if running in a Wayland session.
DISABLE_WAYLAND: 1
# Use GTK3 cursor theme, icon theme and open/save file dialogs.
QT_QPA_PLATFORMTHEME: gtk3
QT_MEDIA_BACKEND: gstreamer
ALSA_CONFIG_PATH: $SNAP/etc/asound.conf
XDG_CONFIG_DIRS: $SNAP/etc/xdg:$XDG_CONFIG_DIRS
XDG_DATA_DIRS: $SNAP/usr/share:$XDG_DATA_DIRS
plugs:
- x11
- unity7
- wayland
- home
- network
- network-bind
Expand Down

0 comments on commit 3d44a45

Please sign in to comment.