Commit | Line | Data |
---|---|---|
37bfb448 | 1 | ;;; GNU Guix --- Functional package management for GNU |
3246cc91 | 2 | ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> |
4373278e | 3 | ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org> |
870b9ff9 | 4 | ;;; Copyright © 2016, 2020 Efraim Flashner <efraim@flashner.co.il> |
de1b319d | 5 | ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net> |
3cd959a4 | 6 | ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be> |
efc95e7b | 7 | ;;; Copyright © 2017 Leo Famulari <leo@famulari.name> |
05bdb5e6 | 8 | ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at> |
27a976ed | 9 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
d5e60a2a | 10 | ;;; Copyright © 2018 Pierre Langlois <pierre.langlois@gmx.com> |
e2332dec | 11 | ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com> |
1a1bce6b | 12 | ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> |
c2cf286c | 13 | ;;; Copyright © 2020 Amin Bandali <bandali@gnu.org> |
c7fe7f2c | 14 | ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de> |
a32605fe | 15 | ;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz> |
37bfb448 LC |
16 | ;;; |
17 | ;;; This file is part of GNU Guix. | |
18 | ;;; | |
19 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
20 | ;;; under the terms of the GNU General Public License as published by | |
21 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
22 | ;;; your option) any later version. | |
23 | ;;; | |
24 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
25 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
26 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
27 | ;;; GNU General Public License for more details. | |
28 | ;;; | |
29 | ;;; You should have received a copy of the GNU General Public License | |
30 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
31 | ||
32 | (define-module (gnu packages pulseaudio) | |
33 | #:use-module (guix packages) | |
34 | #:use-module (guix download) | |
e2332dec | 35 | #:use-module (guix git-download) |
1a1bce6b | 36 | #:use-module (guix utils) |
b5b73a82 | 37 | #:use-module ((guix licenses) #:prefix l:) |
a32605fe | 38 | #:use-module (guix build-system cmake) |
5cca1696 | 39 | #:use-module (guix build-system glib-or-gtk) |
37bfb448 | 40 | #:use-module (guix build-system gnu) |
c1baf5a9 | 41 | #:use-module (guix build-system meson) |
df71c88c | 42 | #:use-module (guix build-system python) |
b645425f | 43 | #:use-module (gnu packages) |
54ff0b7d | 44 | #:use-module (gnu packages algebra) |
d5e60a2a | 45 | #:use-module (gnu packages audio) |
38cf2ba0 | 46 | #:use-module (gnu packages autotools) |
37bfb448 | 47 | #:use-module (gnu packages avahi) |
b2a6a784 | 48 | #:use-module (gnu packages boost) |
54ff0b7d | 49 | #:use-module (gnu packages check) |
255d1bbe | 50 | #:use-module (gnu packages dbm) |
37bfb448 | 51 | #:use-module (gnu packages glib) |
de2871c9 | 52 | #:use-module (gnu packages gettext) |
d9e2f7b2 | 53 | #:use-module (gnu packages gnome) |
66fb2d23 LC |
54 | #:use-module (gnu packages gtk) |
55 | #:use-module (gnu packages libcanberra) | |
f6ad09ae | 56 | #:use-module (gnu packages web) |
54ff0b7d | 57 | #:use-module (gnu packages linux) |
37bfb448 | 58 | #:use-module (gnu packages m4) |
de2871c9 | 59 | #:use-module (gnu packages perl) |
e2332dec AG |
60 | #:use-module (gnu packages protobuf) |
61 | #:use-module (gnu packages python) | |
62 | #:use-module (gnu packages python-xyz) | |
63 | #:use-module (gnu packages python-web) | |
54ff0b7d | 64 | #:use-module (gnu packages pkg-config) |
531b63eb | 65 | #:use-module (gnu packages xiph) |
55e1475c | 66 | #:use-module (gnu packages xml) |
531b63eb | 67 | #:use-module (gnu packages xorg)) |
37bfb448 | 68 | |
0160458b | 69 | (define-public libsndfile |
37bfb448 LC |
70 | (package |
71 | (name "libsndfile") | |
3cd959a4 | 72 | (version "1.0.28") |
37bfb448 LC |
73 | (source (origin |
74 | (method url-fetch) | |
75 | (uri (string-append "http://www.mega-nerd.com/libsndfile/files/libsndfile-" | |
76 | version ".tar.gz")) | |
d1a91408 RW |
77 | (patches (search-patches "libsndfile-armhf-type-checks.patch" |
78 | "libsndfile-CVE-2017-8361-8363-8365.patch" | |
1cbdfede MW |
79 | "libsndfile-CVE-2017-8362.patch" |
80 | "libsndfile-CVE-2017-12562.patch")) | |
37bfb448 LC |
81 | (sha256 |
82 | (base32 | |
3cd959a4 | 83 | "1afzm7jx34jhqn32clc5xghyjglccam2728yxlx37yj2y0lkkwqz")))) |
37bfb448 LC |
84 | (build-system gnu-build-system) |
85 | (inputs | |
86 | `(("libvorbis" ,libvorbis) | |
87 | ("libogg" ,libogg) | |
d7e92b87 ML |
88 | ("flac" ,flac))) |
89 | (native-inputs | |
90 | `(("pkg-config" ,pkg-config))) | |
37bfb448 LC |
91 | (home-page "http://www.mega-nerd.com/libsndfile/") |
92 | (synopsis "Reading and writing files containing sampled sound") | |
93 | (description | |
94 | "Libsndfile is a C library for reading and writing files containing | |
95 | sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format) through | |
96 | one standard library interface. | |
97 | ||
98 | It was designed to handle both little-endian (such as WAV) and | |
99 | big-endian (such as AIFF) data, and to compile and run correctly on | |
100 | little-endian (such as Intel and DEC/Compaq Alpha) processor systems as well | |
101 | as big-endian processor systems such as Motorola 68k, Power PC, MIPS and | |
102 | SPARC. Hopefully the design of the library will also make it easy to extend | |
103 | for reading and writing new sound file formats.") | |
104 | (license l:gpl2+))) | |
105 | ||
0160458b | 106 | (define-public libsamplerate |
37bfb448 LC |
107 | (package |
108 | (name "libsamplerate") ; aka. Secret Rabbit Code (SRC) | |
e1f68c96 | 109 | (version "0.1.9") |
37bfb448 LC |
110 | (source (origin |
111 | (method url-fetch) | |
112 | (uri (string-append "http://www.mega-nerd.com/SRC/libsamplerate-" | |
113 | version ".tar.gz")) | |
114 | (sha256 | |
115 | (base32 | |
e1f68c96 | 116 | "1ha46i0nbibq0pl0pjwcqiyny4hj8lp1bnl4dpxm64zjw9lb2zha")))) |
37bfb448 | 117 | (build-system gnu-build-system) |
d7e92b87 | 118 | (native-inputs |
1a1bce6b MO |
119 | `(("pkg-config" ,pkg-config) |
120 | ("automake" ,automake))) ;For up to date 'config.guess' and 'config.sub'. | |
37bfb448 LC |
121 | (propagated-inputs |
122 | `(("libsndfile" ,libsndfile) | |
123 | ("fftw" ,fftw))) | |
1a1bce6b MO |
124 | (arguments |
125 | `(#:phases | |
126 | (modify-phases %standard-phases | |
127 | (add-after 'unpack 'fix-configure | |
128 | (lambda* (#:key inputs native-inputs #:allow-other-keys) | |
129 | ;; Replace outdated config.sub and config.guess: | |
130 | (with-directory-excursion "Cfg" | |
131 | (for-each (lambda (file) | |
132 | (install-file (string-append | |
133 | (assoc-ref | |
134 | (or native-inputs inputs) "automake") | |
135 | "/share/automake-" | |
136 | ,(version-major+minor | |
137 | (package-version automake)) | |
138 | "/" file) ".")) | |
139 | '("config.sub" "config.guess"))) | |
140 | #t))))) | |
37bfb448 LC |
141 | (home-page "http://www.mega-nerd.com/SRC/index.html") |
142 | (synopsis "Audio sample rate conversion library") | |
143 | (description | |
144 | "Secret Rabbit Code (aka. libsamplerate) is a Sample Rate Converter for | |
145 | audio. One example of where such a thing would be useful is converting audio | |
146 | from the CD sample rate of 44.1kHz to the 48kHz sample rate used by DAT | |
147 | players. | |
148 | ||
149 | SRC is capable of arbitrary and time varying conversions; from downsampling by | |
150 | a factor of 256 to upsampling by the same factor. Arbitrary in this case means | |
151 | that the ratio of input and output sample rates can be an irrational | |
152 | number. The conversion ratio can also vary with time for speeding up and | |
153 | slowing down effects. | |
154 | ||
155 | SRC provides a small set of converters to allow quality to be traded off | |
156 | against computation cost. The current best converter provides a | |
157 | signal-to-noise ratio of 145dB with -3dB passband extending from DC to 96% of | |
158 | the theoretical best bandwidth for a given pair of input and output sample | |
e881752c | 159 | rates.") |
0802f3a0 | 160 | (license l:bsd-2))) |
37bfb448 | 161 | |
0160458b | 162 | (define-public pulseaudio |
37bfb448 LC |
163 | (package |
164 | (name "pulseaudio") | |
4442d4dc | 165 | (version "13.0") |
37bfb448 LC |
166 | (source (origin |
167 | (method url-fetch) | |
168 | (uri (string-append | |
9dd61217 EF |
169 | "https://freedesktop.org/software/pulseaudio/releases/" |
170 | name "-" version ".tar.xz")) | |
37bfb448 LC |
171 | (sha256 |
172 | (base32 | |
4442d4dc | 173 | "0mw0ybrqj7hvf8lqs5gjzip464hfnixw453lr0mqzlng3b5266wn")) |
3f9d63df LC |
174 | (modules '((guix build utils))) |
175 | (snippet | |
176 | ;; Disable console-kit support by default since it's deprecated | |
177 | ;; anyway. | |
6cbee49d MW |
178 | '(begin |
179 | (substitute* "src/daemon/default.pa.in" | |
180 | (("load-module module-console-kit" all) | |
181 | (string-append "#" all "\n"))) | |
182 | #t)) | |
fc1adab1 AK |
183 | (patches (search-patches |
184 | "pulseaudio-fix-mult-test.patch" | |
185 | "pulseaudio-longer-test-timeout.patch")))) | |
37bfb448 LC |
186 | (build-system gnu-build-system) |
187 | (arguments | |
5a74d239 LC |
188 | `(#:configure-flags (list "--localstatedir=/var" ;"--sysconfdir=/etc" |
189 | "--disable-oss-output" | |
de1b319d | 190 | "--enable-bluez5" |
5a74d239 LC |
191 | (string-append "--with-udev-rules-dir=" |
192 | (assoc-ref %outputs "out") | |
193 | "/lib/udev/rules.d")) | |
277cf3dc MB |
194 | #:phases (modify-phases %standard-phases |
195 | (add-before 'check 'pre-check | |
196 | (lambda _ | |
197 | ;; 'tests/lock-autospawn-test.c' wants to create a file | |
198 | ;; under ~/.config/pulse. | |
199 | (setenv "HOME" (getcwd)) | |
200 | ;; 'thread-test' needs more time on hydra and on slower | |
201 | ;; machines, so we set the default timeout to 120 seconds. | |
202 | (setenv "CK_DEFAULT_TIMEOUT" "120") | |
203 | #t))))) | |
37bfb448 LC |
204 | (inputs |
205 | ;; TODO: Add optional inputs (GTK+?). | |
de1b319d RW |
206 | `(("alsa-lib" ,alsa-lib) |
207 | ("bluez" ,bluez) | |
208 | ("sbc" ,sbc) | |
7136f3e6 | 209 | ("speexdsp" ,speexdsp) |
37bfb448 | 210 | ("libsndfile" ,libsndfile) |
d5e60a2a | 211 | ("jack" ,jack-1) ; For routing the output to jack. |
37bfb448 LC |
212 | ("dbus" ,dbus) |
213 | ("glib" ,glib) | |
3246cc91 | 214 | ("libltdl" ,libltdl) |
7569c5cb | 215 | ("fftwf" ,fftwf) |
37bfb448 | 216 | ("avahi" ,avahi) |
531b63eb DNB |
217 | |
218 | ;; For the optional X11 modules. | |
219 | ("libice" ,libice) | |
220 | ("libsm" ,libsm) | |
221 | ("libxcb" ,libxcb) | |
222 | ("libxtst" ,libxtst) | |
223 | ||
7136f3e6 | 224 | ("eudev" ,eudev))) ;for the detection of hardware audio devices |
d7e92b87 | 225 | (native-inputs |
7136f3e6 | 226 | `(("check" ,check) |
de2871c9 | 227 | ("gettext" ,gettext-minimal) |
7136f3e6 | 228 | ("glib:bin" ,glib "bin") |
7136f3e6 | 229 | ("m4" ,m4) |
de2871c9 MB |
230 | ("perl" ,perl) |
231 | ("perl-xml-parser" ,perl-xml-parser) | |
7136f3e6 | 232 | ("pkg-config" ,pkg-config))) |
37bfb448 LC |
233 | (propagated-inputs |
234 | ;; 'libpulse*.la' contain `-lgdbm' and `-lcap', so propagate them. | |
09767fb5 | 235 | `(("libcap" ,libcap) |
37bfb448 LC |
236 | ("gdbm" ,gdbm))) |
237 | (home-page "http://www.pulseaudio.org/") | |
238 | (synopsis "Sound server") | |
239 | (description | |
e881752c AK |
240 | "PulseAudio is a sound server. It is basically a proxy for your sound |
241 | applications. It allows you to do advanced operations on your sound data as | |
242 | it passes between your application and your hardware. Things like | |
243 | transferring the audio to a different machine, changing the sample format or | |
244 | channel count and mixing several sounds into one are easily achieved using a | |
245 | sound server.") | |
37bfb448 LC |
246 | |
247 | ;; PulseAudio is LGPLv2+, but some of the optional dependencies (GNU dbm, | |
248 | ;; FFTW, etc.) are GPL'd, so the result is effectively GPLv2+. See | |
249 | ;; 'LICENSE' for details. | |
250 | (license l:gpl2+))) | |
66fb2d23 LC |
251 | |
252 | (define-public pavucontrol | |
253 | (package | |
254 | (name "pavucontrol") | |
c7fe7f2c | 255 | (version "4.0") |
66fb2d23 LC |
256 | (source (origin |
257 | (method url-fetch) | |
258 | (uri (string-append | |
5cc3096c | 259 | "https://freedesktop.org/software/pulseaudio/pavucontrol/pavucontrol-" |
66fb2d23 LC |
260 | version |
261 | ".tar.xz")) | |
262 | (sha256 | |
263 | (base32 | |
c7fe7f2c | 264 | "1qhlkl3g8d7h72xjskii3g1l7la2cavwp69909pzmbi2jyn5pi4g")))) |
5cca1696 | 265 | (build-system glib-or-gtk-build-system) |
66fb2d23 | 266 | (inputs |
5cca1696 | 267 | `(("adwaita-icon-theme" ,adwaita-icon-theme) ;hard-coded theme |
66fb2d23 | 268 | ("gtkmm" ,gtkmm) |
5cca1696 | 269 | ("libcanberra" ,libcanberra) |
c4c4cc05 JD |
270 | ("pulseaudio" ,pulseaudio))) |
271 | (native-inputs | |
272 | `(("intltool" ,intltool) | |
66fb2d23 | 273 | ("pkg-config" ,pkg-config))) |
57e7d748 | 274 | (home-page "https://www.freedesktop.org/software/pulseaudio/pavucontrol/") |
66fb2d23 LC |
275 | (synopsis "PulseAudio volume control") |
276 | (description | |
277 | "PulseAudio Volume Control (pavucontrol) provides a GTK+ | |
278 | graphical user interface to connect to a PulseAudio server and | |
279 | easily control the volume of all clients, sinks, etc.") | |
280 | (license l:gpl2+))) | |
05bdb5e6 SR |
281 | |
282 | (define-public ponymix | |
283 | (package | |
284 | (name "ponymix") | |
285 | (version "5") | |
286 | (source (origin | |
870b9ff9 EF |
287 | (method git-fetch) |
288 | (uri (git-reference | |
289 | (url "https://github.com/falconindy/ponymix/") | |
290 | (commit version))) | |
291 | (file-name (git-file-name name version)) | |
05bdb5e6 SR |
292 | (sha256 |
293 | (base32 | |
870b9ff9 | 294 | "08yp7fprmzm6px5yx2rvzri0l60bra5h59l26pn0k071a37ks1rb")))) |
05bdb5e6 SR |
295 | (build-system gnu-build-system) |
296 | (arguments | |
297 | `(#:tests? #f ; There is no test suite. | |
298 | #:make-flags (let ((out (assoc-ref %outputs "out"))) | |
299 | (list (string-append "DESTDIR=" out))) | |
300 | #:phases | |
301 | (modify-phases %standard-phases | |
302 | (add-after 'unpack 'patch-paths | |
303 | (lambda _ | |
304 | (substitute* "Makefile" | |
305 | (("/usr") "")))) | |
306 | (delete 'configure)))) ; There's no configure phase. | |
307 | (inputs | |
308 | `(("pulseaudio" ,pulseaudio))) | |
309 | (native-inputs | |
310 | `(("pkg-config" ,pkg-config))) | |
311 | (home-page "https://github.com/falconindy/ponymix") | |
312 | (synopsis "Console-based PulseAudio mixer") | |
313 | (description "Ponymix is a PulseAudio mixer and volume controller with a | |
314 | command-line interface. In addition, it is possible to use named sources and | |
315 | sinks.") | |
316 | (license l:expat))) | |
df71c88c LF |
317 | |
318 | (define-public pulsemixer | |
319 | (package | |
320 | (name "pulsemixer") | |
3cc8b4fa | 321 | (version "1.5.1") |
df71c88c | 322 | (source (origin |
fa6abb01 EF |
323 | (method git-fetch) |
324 | (uri (git-reference | |
325 | (url "https://github.com/GeorgeFilipkin/pulsemixer") | |
326 | (commit version))) | |
327 | (file-name (git-file-name name version)) | |
df71c88c LF |
328 | (sha256 |
329 | (base32 | |
3cc8b4fa | 330 | "1jagx9zmz5pfsld8y2rj2kqg6ww9f6vqiawfy3vhqc49x3xx92p4")))) |
df71c88c LF |
331 | (build-system python-build-system) |
332 | (arguments | |
333 | `(#:phases | |
334 | (modify-phases %standard-phases | |
335 | (add-after 'unpack 'patch-path | |
336 | (lambda* (#:key inputs #:allow-other-keys) | |
337 | (let ((pulse (assoc-ref inputs "pulseaudio"))) | |
338 | (substitute* "pulsemixer" | |
339 | (("libpulse.so.0") | |
340 | (string-append pulse "/lib/libpulse.so.0"))) | |
341 | #t)))))) | |
342 | (inputs | |
343 | `(("pulseaudio" ,pulseaudio))) | |
344 | (home-page "https://github.com/GeorgeFilipkin/pulsemixer/") | |
345 | (synopsis "Command-line and curses mixer for PulseAudio") | |
346 | (description "Pulsemixer is a PulseAudio mixer with command-line and | |
347 | curses-style interfaces.") | |
348 | (license l:expat))) | |
e2332dec AG |
349 | |
350 | (define-public pulseaudio-dlna | |
351 | ;; The last release was in 2016; use a more recent commit. | |
352 | (let ((commit "4472928dd23f274193f14289f59daec411023ab0") | |
353 | (revision "1")) | |
354 | (package | |
355 | (name "pulseaudio-dlna") | |
356 | (version (git-version "0.5.2" revision commit)) | |
357 | (source | |
358 | (origin | |
359 | (method git-fetch) | |
360 | (uri (git-reference | |
b0e7b699 | 361 | (url "https://github.com/masmu/pulseaudio-dlna") |
e2332dec AG |
362 | (commit commit))) |
363 | (file-name (git-file-name name version)) | |
364 | (sha256 | |
365 | (base32 | |
366 | "1dfn7036vrq49kxv4an7rayypnm5dlawsf02pfsldw877hzdamqk")))) | |
367 | (build-system python-build-system) | |
368 | (arguments `(#:python ,python-2)) | |
369 | (inputs | |
370 | `(("python2-chardet" ,python2-chardet) | |
371 | ("python2-dbus" ,python2-dbus) | |
372 | ("python2-docopt" ,python2-docopt) | |
373 | ("python2-futures" ,python2-futures) | |
374 | ("python2-pygobject" ,python2-pygobject) | |
375 | ("python2-lxml" ,python2-lxml) | |
376 | ("python2-netifaces" ,python2-netifaces) | |
377 | ("python2-notify2" ,python2-notify2) | |
378 | ("python2-protobuf" ,python2-protobuf) | |
379 | ("python2-psutil" ,python2-psutil) | |
380 | ("python2-requests" ,python2-requests) | |
381 | ("python2-pyroute2" ,python2-pyroute2) | |
382 | ("python2-setproctitle" ,python2-setproctitle) | |
383 | ("python2-zeroconf" ,python2-zeroconf))) | |
384 | (home-page "https://github.com/masmu/pulseaudio-dlna") | |
385 | (synopsis "Stream audio to DLNA/UPnP and Chromecast devices") | |
386 | (description "This lightweight streaming server brings DLNA/UPnP and | |
387 | Chromecast support to PulseAudio. It can stream your current PulseAudio | |
388 | playback to different UPnP devices (UPnP Media Renderers, including Sonos | |
389 | devices and some Smart TVs) or Chromecasts in your network. You should also | |
390 | install one or more of the following packages alongside pulseaudio-dlna: | |
391 | ||
392 | @itemize | |
393 | @item ffmpeg - transcoding support for multiple codecs | |
394 | @item flac - FLAC transcoding support | |
395 | @item lame - MP3 transcoding support | |
396 | @item opus-tools - Opus transcoding support | |
397 | @item sox - WAV transcoding support | |
398 | @item vorbis-tools - Vorbis transcoding support | |
399 | @end itemize") | |
400 | (license l:gpl3+)))) | |
b2a6a784 AB |
401 | |
402 | (define-public pamixer | |
403 | (package | |
404 | (name "pamixer") | |
405 | (version "1.4") | |
406 | (source | |
407 | (origin | |
408 | (method git-fetch) | |
409 | (uri (git-reference | |
b0e7b699 | 410 | (url "https://github.com/cdemoulins/pamixer") |
b2a6a784 AB |
411 | (commit version))) |
412 | (file-name (git-file-name name version)) | |
413 | (sha256 | |
414 | (base32 "1i14550n8paijwwnhksv5izgfqm3s5q2773bdfp6vyqybkll55f7")))) | |
415 | (build-system gnu-build-system) | |
416 | (arguments | |
417 | `(#:tests? #f ; There is no test suite. | |
418 | #:make-flags | |
419 | (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
420 | #:phases | |
421 | (modify-phases %standard-phases | |
422 | (delete 'configure) ; There's no configure phase. | |
423 | (add-before 'install 'mkdir-bin | |
424 | (lambda _ | |
425 | (mkdir-p (string-append (assoc-ref %outputs "out") "/bin")) | |
426 | #t))))) | |
427 | (inputs | |
428 | `(("boost" ,boost) | |
429 | ("pulseaudio" ,pulseaudio))) | |
430 | (home-page "https://github.com/cdemoulins/pamixer") | |
431 | (synopsis "PulseAudio command line mixer") | |
432 | (description | |
433 | "pamixer is like amixer but for PulseAudio, allowing easy control of the | |
434 | volume levels of the sinks (get, set, decrease, increase, toggle mute, etc).") | |
435 | (license l:gpl3+))) | |
d9e2f7b2 AB |
436 | |
437 | (define-public pasystray | |
438 | (package | |
439 | (name "pasystray") | |
440 | (version "0.7.1") | |
441 | (source | |
442 | (origin | |
443 | (method git-fetch) | |
444 | (uri (git-reference | |
b0e7b699 | 445 | (url "https://github.com/christophgysin/pasystray") |
d9e2f7b2 AB |
446 | (commit (string-append name "-" version)))) |
447 | (file-name (git-file-name name version)) | |
448 | (sha256 | |
449 | (base32 "0xx1bm9kimgq11a359ikabdndqg5q54pn1d1dyyjnrj0s41168fk")))) | |
450 | (build-system gnu-build-system) | |
451 | (arguments | |
452 | `(#:phases | |
453 | (modify-phases %standard-phases | |
454 | (add-before 'bootstrap 'remove-bootstrap.sh | |
455 | (lambda _ | |
456 | ;; Interferes with the bootstrap phase. | |
457 | (delete-file "bootstrap.sh") | |
458 | #t))))) | |
459 | (native-inputs | |
460 | `(("autoconf" ,autoconf) | |
461 | ("automake" ,automake) | |
462 | ("pkg-config" ,pkg-config))) | |
463 | (inputs | |
464 | `(("avahi" ,avahi) | |
465 | ("gtk+" ,gtk+) | |
466 | ("libnotify" ,libnotify) | |
467 | ("libx11" ,libx11) | |
468 | ("pulseaudio" ,pulseaudio))) | |
469 | (home-page "https://github.com/christophgysin/pasystray") | |
470 | (synopsis "PulseAudio controller for the system tray") | |
471 | (description "@command{pasystray} enables control of various | |
472 | PulseAudio server settings from the X11 system tray. See the project | |
473 | README.md for a detailed list of features.") | |
474 | (license l:lgpl2.1+))) | |
c1baf5a9 MR |
475 | |
476 | (define-public paprefs | |
477 | (package | |
478 | (name "paprefs") | |
479 | (version "1.1") | |
480 | (source | |
481 | (origin | |
482 | (method url-fetch) | |
483 | (uri (string-append "https://www.freedesktop.org/software/pulseaudio/" | |
484 | name "/" name "-" version ".tar.xz")) | |
485 | (sha256 | |
486 | (base32 | |
487 | "189z5p20hk0xv9vwvym293503j4pwl03xqk9hl7cl6dwgv0l7wkf")))) | |
488 | (build-system meson-build-system) | |
489 | (native-inputs | |
490 | `(("gettext" ,gettext-minimal) | |
491 | ("pkg-config" ,pkg-config))) | |
492 | (inputs | |
493 | `(("gtkmm" ,gtkmm) | |
494 | ("pulseaudio" ,pulseaudio))) | |
495 | (home-page "https://freedesktop.org/software/pulseaudio/paprefs/") | |
496 | (synopsis "Simple GTK based configuration dialog for the PulseAudio sound | |
497 | server") | |
498 | (description "@command{paprefs} is a simple GTK based configuration | |
499 | dialog for the PulseAudio sound server. Note that this program can | |
500 | only configure local servers, and requires that a special module | |
501 | module-gsettings is loaded in the sound server.") | |
502 | (license l:gpl2))) | |
a32605fe PN |
503 | |
504 | (define-public rnnoise | |
505 | (package | |
506 | (name "rnnoise") | |
507 | (version "0.9") | |
508 | (source | |
509 | (origin | |
510 | (method git-fetch) | |
511 | (uri (git-reference | |
512 | (url "https://github.com/werman/noise-suppression-for-voice") | |
513 | (commit (string-append "v" version)))) | |
514 | (file-name (git-file-name name version)) | |
515 | (sha256 | |
516 | (base32 "18bq5b50xw3d4r1ildinafpg3isb9y216430h4mm9wr3ir7h76a7")))) | |
517 | (build-system cmake-build-system) | |
518 | (arguments | |
519 | ;; No tests. | |
520 | '(#:tests? #f)) | |
521 | (inputs | |
522 | `(;; TODO: Package VST to build the corresponding plugin. | |
523 | ("pulseaudio" ,pulseaudio))) | |
524 | (home-page "https://github.com/werman/noise-suppression-for-voice") | |
525 | (synopsis "Real-time Noise suppression plugin based on Xiph's RNNoise") | |
526 | (description "The plugin is meant to suppress a wide range of noise | |
527 | origins: computer fans, office, crowd, airplane, car, train, construction. | |
528 | ||
529 | Mild background noise is always suppressed, loud sounds, like | |
530 | clicking of mechanical keyboard, are suppressed while there is no voice | |
531 | however they are only reduced in volume when voice is present. | |
532 | ||
533 | The plugin is made to work with 1 or 2 channels (ladspa plugin), | |
534 | 16 bit, 48000 Hz audio input.") | |
535 | (license l:gpl3))) |