>>> py3-speechrecognition: Checking sanity of /home/patrycja/aports/community/py3-speechrecognition/APKBUILD... >>> py3-speechrecognition: Cleaning up srcdir >>> py3-speechrecognition: Cleaning up pkgdir >>> py3-speechrecognition: Cleaning up tmpdir >>> py3-speechrecognition: Fetching py3-speechrecognition-3.10.3.tar.gz::https://github.com/Uberi/speech_recognition/archive/refs/tags/3.10.3.tar.gz >>> py3-speechrecognition: Fetching py3-speechrecognition-3.10.3.tar.gz::https://github.com/Uberi/speech_recognition/archive/refs/tags/3.10.3.tar.gz >>> py3-speechrecognition: Checking sha512sums... py3-speechrecognition-3.10.3.tar.gz: OK >>> py3-speechrecognition: Preparing build chroot... (1/152) Installing musl (1.2.5-r0) (2/152) Installing ca-certificates-bundle (20240226-r0) (3/152) Installing libcrypto3 (3.2.1-r1) (4/152) Installing libssl3 (3.2.1-r1) (5/152) Installing zlib (1.3.1-r0) (6/152) Installing apk-tools (2.14.3-r1) (7/152) Installing libattr (2.5.2-r0) (8/152) Installing attr (2.5.2-r0) (9/152) Installing libcap2 (2.69-r1) (10/152) Installing libcap-getcap (2.69-r1) (11/152) Installing fakeroot (1.33-r0) (12/152) Installing scanelf (1.3.7-r2) (13/152) Installing musl-utils (1.2.5-r0) (14/152) Installing libgcc (13.2.1_git20240309-r0) (15/152) Installing libstdc++ (13.2.1_git20240309-r0) (16/152) Installing lzip (1.24.1-r0) (17/152) Installing openssl (3.2.1-r1) (18/152) Installing patch (2.7.6-r10) (19/152) Installing pkgconf (2.2.0-r0) (20/152) Installing libacl (2.3.2-r0) (21/152) Installing tar (1.35-r2) (22/152) Installing busybox (1.36.1-r25) Executing busybox-1.36.1-r25.post-install (23/152) Installing ssl_client (1.36.1-r25) (24/152) Installing busybox-binsh (1.36.1-r25) (25/152) Installing abuild (3.12.0-r5) Executing abuild-3.12.0-r5.pre-install (26/152) Installing abuild-sudo (3.12.0-r5) (27/152) Installing alpine-baselayout-data (3.6.3-r0) (28/152) Installing alpine-baselayout (3.6.3-r0) Executing alpine-baselayout-3.6.3-r0.pre-install Executing alpine-baselayout-3.6.3-r0.post-install (29/152) Installing ifupdown-ng (0.12.1-r5) (30/152) Installing openrc (0.54-r1) Executing openrc-0.54-r1.post-install (31/152) Installing mdev-conf (4.6-r0) (32/152) Installing busybox-mdev-openrc (1.36.1-r25) (33/152) Installing alpine-conf (3.17.2-r0) (34/152) Installing alpine-keys (2.4-r1) (35/152) Installing alpine-release (3.20.0_alpha20240329-r0) (36/152) Installing busybox-openrc (1.36.1-r25) (37/152) Installing busybox-suid (1.36.1-r25) (38/152) Installing alpine-base (3.20.0_alpha20240329-r0) (39/152) Installing jansson (2.14-r4) (40/152) Installing zstd-libs (1.5.6-r0) (41/152) Installing binutils (2.42-r0) (42/152) Installing libmagic (5.45-r1) (43/152) Installing file (5.45-r1) (44/152) Installing libgomp (13.2.1_git20240309-r0) (45/152) Installing libatomic (13.2.1_git20240309-r0) (46/152) Installing gmp (6.3.0-r0) (47/152) Installing isl26 (0.26-r1) (48/152) Installing mpfr4 (4.2.1-r0) (49/152) Installing mpc1 (1.3.1-r1) (50/152) Installing gcc (13.2.1_git20240309-r0) (51/152) Installing libstdc++-dev (13.2.1_git20240309-r0) (52/152) Installing musl-dev (1.2.5-r0) (53/152) Installing g++ (13.2.1_git20240309-r0) (54/152) Installing make (4.4.1-r2) (55/152) Installing fortify-headers (1.1-r3) (56/152) Installing build-base (0.5-r3) (57/152) Installing hiredis (1.2.0-r0) (58/152) Installing libxxhash (0.8.2-r2) (59/152) Installing ccache (4.9.1-r0) (60/152) Installing libogg (1.3.5-r5) (61/152) Installing libflac (1.4.3-r1) (62/152) Installing flac (1.4.3-r1) (63/152) Installing ca-certificates (20240226-r0) (64/152) Installing brotli-libs (1.1.0-r2) (65/152) Installing c-ares (1.28.1-r0) (66/152) Installing libunistring (1.2-r0) (67/152) Installing libidn2 (2.3.7-r0) (68/152) Installing nghttp2-libs (1.61.0-r0) (69/152) Installing libpsl (0.21.5-r1) (70/152) Installing libcurl (8.7.1-r0) (71/152) Installing libexpat (2.6.2-r0) (72/152) Installing pcre2 (10.43-r0) (73/152) Installing git (2.44.0-r2) (74/152) Installing git-init-template (2.44.0-r2) (75/152) Installing libbz2 (1.0.8-r6) (76/152) Installing libffi (3.4.6-r0) (77/152) Installing gdbm (1.23-r1) (78/152) Installing xz-libs (5.6.1-r2) (79/152) Installing mpdecimal (4.0.0-r0) (80/152) Installing ncurses-terminfo-base (6.4_p20240309-r0) (81/152) Installing libncursesw (6.4_p20240309-r0) (82/152) Installing libpanelw (6.4_p20240309-r0) (83/152) Installing readline (8.2.10-r0) (84/152) Installing sqlite-libs (3.45.2-r0) (85/152) Installing python3 (3.12.2-r0) (86/152) Installing python3-pycache-pyc0 (3.12.2-r0) (87/152) Installing pyc (3.12.2-r0) (88/152) Installing py3-installer-pyc (0.7.0-r2) (89/152) Installing py3-gpep517-pyc (15-r2) (90/152) Installing python3-pyc (3.12.2-r0) (91/152) Installing py3-installer (0.7.0-r2) (92/152) Installing py3-gpep517 (15-r2) (93/152) Installing libquadmath (13.2.1_git20240309-r0) (94/152) Installing libgfortran (13.2.1_git20240309-r0) (95/152) Installing openblas (0.3.26-r0) (96/152) Installing py3-numpy (1.25.2-r1) (97/152) Installing py3-numpy-pyc (1.25.2-r1) (98/152) Installing alsa-lib (1.2.11-r0) (99/152) Installing libxau (1.0.11-r3) (100/152) Installing libmd (1.1.0-r0) (101/152) Installing libbsd (0.12.2-r0) (102/152) Installing libxdmcp (1.1.5-r0) (103/152) Installing libxcb (1.16.1-r0) (104/152) Installing libx11 (1.8.9-r0) (105/152) Installing libasyncns (0.8-r3) (106/152) Installing dbus-libs (1.14.10-r1) (107/152) Installing libintl (0.22.5-r0) (108/152) Installing libltdl (2.4.7-r3) (109/152) Installing orc (0.4.37-r0) (110/152) Installing opus (1.4-r0) (111/152) Installing libvorbis (1.3.7-r2) (112/152) Installing libsndfile (1.2.2-r0) (113/152) Installing soxr (0.1.3-r7) (114/152) Installing speexdsp (1.2.1-r2) (115/152) Installing tdb-libs (1.4.9-r1) (116/152) Installing libpulse (17.0-r0) (117/152) Installing py3-pocketsphinx (0.1.15-r5) (118/152) Installing py3-pocketsphinx-pyc (0.1.15-r5) (119/152) Installing libsamplerate (0.2.2-r3) (120/152) Installing jack (1.9.22-r4) (121/152) Installing portaudio (19.7.0-r2) (122/152) Installing py3-pyaudio (0.2.14-r0) (123/152) Installing py3-pyaudio-pyc (0.2.14-r0) (124/152) Installing py3-iniconfig (2.0.0-r1) (125/152) Installing py3-iniconfig-pyc (2.0.0-r1) (126/152) Installing py3-parsing (3.1.2-r1) (127/152) Installing py3-parsing-pyc (3.1.2-r1) (128/152) Installing py3-packaging (24.0-r1) (129/152) Installing py3-packaging-pyc (24.0-r1) (130/152) Installing py3-pluggy (1.4.0-r1) (131/152) Installing py3-pluggy-pyc (1.4.0-r1) (132/152) Installing py3-py (1.11.0-r3) (133/152) Installing py3-py-pyc (1.11.0-r3) (134/152) Installing py3-pytest (8.1.1-r1) (135/152) Installing py3-pytest-pyc (8.1.1-r1) (136/152) Installing py3-certifi (2024.2.2-r1) (137/152) Installing py3-certifi-pyc (2024.2.2-r1) (138/152) Installing py3-charset-normalizer (3.3.2-r1) (139/152) Installing py3-charset-normalizer-pyc (3.3.2-r1) (140/152) Installing py3-idna (3.6-r1) (141/152) Installing py3-idna-pyc (3.6-r1) (142/152) Installing py3-urllib3 (1.26.18-r1) (143/152) Installing py3-urllib3-pyc (1.26.18-r1) (144/152) Installing py3-requests (2.31.0-r2) (145/152) Installing py3-requests-pyc (2.31.0-r2) (146/152) Installing py3-setuptools (69.2.0-r1) (147/152) Installing py3-setuptools-pyc (69.2.0-r1) (148/152) Installing py3-typing-extensions (4.11.0-r0) (149/152) Installing py3-typing-extensions-pyc (4.11.0-r0) (150/152) Installing py3-wheel (0.42.0-r1) (151/152) Installing py3-wheel-pyc (0.42.0-r1) (152/152) Installing tini (0.19.0-r3) Executing busybox-1.36.1-r25.trigger Executing ca-certificates-20240226-r0.trigger OK: 406 MiB in 152 packages >>> py3-speechrecognition: Fetching py3-speechrecognition-3.10.3.tar.gz::https://github.com/Uberi/speech_recognition/archive/refs/tags/3.10.3.tar.gz >>> py3-speechrecognition: Checking sha512sums... py3-speechrecognition-3.10.3.tar.gz: OK >>> py3-speechrecognition: Unpacking /var/cache/distfiles/py3-speechrecognition-3.10.3.tar.gz... 2024-04-08 15:19:44,965 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__ 2024-04-08 15:19:45,030 root INFO running bdist_wheel 2024-04-08 15:19:45,040 root INFO running build 2024-04-08 15:19:45,040 root INFO running build_py 2024-04-08 15:19:45,042 root INFO creating build 2024-04-08 15:19:45,042 root INFO creating build/lib 2024-04-08 15:19:45,042 root INFO creating build/lib/speech_recognition 2024-04-08 15:19:45,042 root INFO copying speech_recognition/audio.py -> build/lib/speech_recognition 2024-04-08 15:19:45,042 root INFO copying speech_recognition/__init__.py -> build/lib/speech_recognition 2024-04-08 15:19:45,042 root INFO copying speech_recognition/exceptions.py -> build/lib/speech_recognition 2024-04-08 15:19:45,042 root INFO copying speech_recognition/__main__.py -> build/lib/speech_recognition 2024-04-08 15:19:45,043 root INFO running egg_info 2024-04-08 15:19:45,043 root INFO creating SpeechRecognition.egg-info 2024-04-08 15:19:45,044 root INFO writing SpeechRecognition.egg-info/PKG-INFO 2024-04-08 15:19:45,044 root INFO writing dependency_links to SpeechRecognition.egg-info/dependency_links.txt 2024-04-08 15:19:45,045 root INFO writing requirements to SpeechRecognition.egg-info/requires.txt 2024-04-08 15:19:45,045 root INFO writing top-level names to SpeechRecognition.egg-info/top_level.txt 2024-04-08 15:19:45,045 root INFO writing manifest file 'SpeechRecognition.egg-info/SOURCES.txt' 2024-04-08 15:19:45,046 root INFO reading manifest file 'SpeechRecognition.egg-info/SOURCES.txt' 2024-04-08 15:19:45,046 root INFO reading manifest template 'MANIFEST.in' 2024-04-08 15:19:45,047 root INFO adding license file 'LICENSE-FLAC.txt' 2024-04-08 15:19:45,047 root INFO adding license file 'LICENSE.txt' 2024-04-08 15:19:45,047 root INFO writing manifest file 'SpeechRecognition.egg-info/SOURCES.txt' /usr/lib/python3.12/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'speech_recognition.recognizers' is absent from the `packages` configuration. !! ******************************************************************************** ############################ # Package would be ignored # ############################ Python recognizes 'speech_recognition.recognizers' as an importable package[^1], but it is absent from setuptools' `packages` configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'speech_recognition.recognizers' is explicitly added to the `packages` configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'speech_recognition.recognizers' to be distributed and are already explicitly excluding 'speech_recognition.recognizers' via `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, you can try to use `exclude_package_data`, or `include-package-data=False` in combination with a more fine grained `package-data` configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any `.py` files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. ******************************************************************************** !! check.warn(importable) 2024-04-08 15:19:45,048 root INFO creating build/lib/speech_recognition/pocketsphinx-data 2024-04-08 15:19:45,048 root INFO creating build/lib/speech_recognition/pocketsphinx-data/en-US 2024-04-08 15:19:45,048 root INFO copying speech_recognition/pocketsphinx-data/en-US/LICENSE.txt -> build/lib/speech_recognition/pocketsphinx-data/en-US 2024-04-08 15:19:45,048 root INFO copying speech_recognition/pocketsphinx-data/en-US/language-model.lm.bin -> build/lib/speech_recognition/pocketsphinx-data/en-US 2024-04-08 15:19:45,070 root INFO copying speech_recognition/pocketsphinx-data/en-US/pronounciation-dictionary.dict -> build/lib/speech_recognition/pocketsphinx-data/en-US 2024-04-08 15:19:45,074 root INFO creating build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,074 root INFO copying speech_recognition/pocketsphinx-data/en-US/acoustic-model/README -> build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,074 root INFO copying speech_recognition/pocketsphinx-data/en-US/acoustic-model/feat.params -> build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,074 root INFO copying speech_recognition/pocketsphinx-data/en-US/acoustic-model/mdef -> build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,077 root INFO copying speech_recognition/pocketsphinx-data/en-US/acoustic-model/means -> build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,078 root INFO copying speech_recognition/pocketsphinx-data/en-US/acoustic-model/noisedict -> build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,078 root INFO copying speech_recognition/pocketsphinx-data/en-US/acoustic-model/sendump -> build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,080 root INFO copying speech_recognition/pocketsphinx-data/en-US/acoustic-model/transition_matrices -> build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,080 root INFO copying speech_recognition/pocketsphinx-data/en-US/acoustic-model/variances -> build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,081 root INFO creating build/lib/speech_recognition/recognizers 2024-04-08 15:19:45,081 root INFO copying speech_recognition/recognizers/__init__.py -> build/lib/speech_recognition/recognizers 2024-04-08 15:19:45,081 root INFO copying speech_recognition/recognizers/google.py -> build/lib/speech_recognition/recognizers 2024-04-08 15:19:45,082 root INFO copying speech_recognition/recognizers/whisper.py -> build/lib/speech_recognition/recognizers 2024-04-08 15:19:45,083 wheel INFO installing to build/bdist.linux-x86_64/wheel 2024-04-08 15:19:45,083 root INFO running install 2024-04-08 15:19:45,088 root INFO running install_lib 2024-04-08 15:19:45,090 root INFO creating build/bdist.linux-x86_64 2024-04-08 15:19:45,090 root INFO creating build/bdist.linux-x86_64/wheel 2024-04-08 15:19:45,090 root INFO creating build/bdist.linux-x86_64/wheel/speech_recognition 2024-04-08 15:19:45,090 root INFO creating build/bdist.linux-x86_64/wheel/speech_recognition/recognizers 2024-04-08 15:19:45,090 root INFO copying build/lib/speech_recognition/recognizers/whisper.py -> build/bdist.linux-x86_64/wheel/speech_recognition/recognizers 2024-04-08 15:19:45,090 root INFO copying build/lib/speech_recognition/recognizers/__init__.py -> build/bdist.linux-x86_64/wheel/speech_recognition/recognizers 2024-04-08 15:19:45,090 root INFO copying build/lib/speech_recognition/recognizers/google.py -> build/bdist.linux-x86_64/wheel/speech_recognition/recognizers 2024-04-08 15:19:45,090 root INFO copying build/lib/speech_recognition/audio.py -> build/bdist.linux-x86_64/wheel/speech_recognition 2024-04-08 15:19:45,090 root INFO copying build/lib/speech_recognition/__init__.py -> build/bdist.linux-x86_64/wheel/speech_recognition 2024-04-08 15:19:45,091 root INFO copying build/lib/speech_recognition/exceptions.py -> build/bdist.linux-x86_64/wheel/speech_recognition 2024-04-08 15:19:45,091 root INFO creating build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data 2024-04-08 15:19:45,091 root INFO creating build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US 2024-04-08 15:19:45,091 root INFO copying build/lib/speech_recognition/pocketsphinx-data/en-US/pronounciation-dictionary.dict -> build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US 2024-04-08 15:19:45,093 root INFO copying build/lib/speech_recognition/pocketsphinx-data/en-US/LICENSE.txt -> build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US 2024-04-08 15:19:45,093 root INFO copying build/lib/speech_recognition/pocketsphinx-data/en-US/language-model.lm.bin -> build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US 2024-04-08 15:19:45,116 root INFO creating build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,116 root INFO copying build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model/README -> build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,116 root INFO copying build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model/noisedict -> build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,116 root INFO copying build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model/variances -> build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,117 root INFO copying build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model/transition_matrices -> build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,118 root INFO copying build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model/feat.params -> build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,118 root INFO copying build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model/mdef -> build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,120 root INFO copying build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model/means -> build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,122 root INFO copying build/lib/speech_recognition/pocketsphinx-data/en-US/acoustic-model/sendump -> build/bdist.linux-x86_64/wheel/speech_recognition/pocketsphinx-data/en-US/acoustic-model 2024-04-08 15:19:45,124 root INFO copying build/lib/speech_recognition/__main__.py -> build/bdist.linux-x86_64/wheel/speech_recognition 2024-04-08 15:19:45,124 root INFO running install_egg_info 2024-04-08 15:19:45,127 root INFO Copying SpeechRecognition.egg-info to build/bdist.linux-x86_64/wheel/SpeechRecognition-3.10.3-py3.12.egg-info 2024-04-08 15:19:45,127 root INFO running install_scripts 2024-04-08 15:19:45,129 wheel INFO creating build/bdist.linux-x86_64/wheel/SpeechRecognition-3.10.3.dist-info/WHEEL 2024-04-08 15:19:45,130 wheel INFO creating '/home/patrycja/aports/community/py3-speechrecognition/src/speech_recognition-3.10.3/.dist/.tmp-lt3v6wy8/SpeechRecognition-3.10.3-py2.py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it 2024-04-08 15:19:45,130 wheel INFO adding 'speech_recognition/__init__.py' 2024-04-08 15:19:45,130 wheel INFO adding 'speech_recognition/__main__.py' 2024-04-08 15:19:45,130 wheel INFO adding 'speech_recognition/audio.py' 2024-04-08 15:19:45,130 wheel INFO adding 'speech_recognition/exceptions.py' 2024-04-08 15:19:45,130 wheel INFO adding 'speech_recognition/pocketsphinx-data/en-US/LICENSE.txt' 2024-04-08 15:19:45,160 wheel INFO adding 'speech_recognition/pocketsphinx-data/en-US/language-model.lm.bin' 2024-04-08 15:19:45,176 wheel INFO adding 'speech_recognition/pocketsphinx-data/en-US/pronounciation-dictionary.dict' 2024-04-08 15:19:45,178 wheel INFO adding 'speech_recognition/pocketsphinx-data/en-US/acoustic-model/README' 2024-04-08 15:19:45,178 wheel INFO adding 'speech_recognition/pocketsphinx-data/en-US/acoustic-model/feat.params' 2024-04-08 15:19:45,182 wheel INFO adding 'speech_recognition/pocketsphinx-data/en-US/acoustic-model/mdef' 2024-04-08 15:19:45,184 wheel INFO adding 'speech_recognition/pocketsphinx-data/en-US/acoustic-model/means' 2024-04-08 15:19:45,185 wheel INFO adding 'speech_recognition/pocketsphinx-data/en-US/acoustic-model/noisedict' 2024-04-08 15:19:45,187 wheel INFO adding 'speech_recognition/pocketsphinx-data/en-US/acoustic-model/sendump' 2024-04-08 15:19:45,188 wheel INFO adding 'speech_recognition/pocketsphinx-data/en-US/acoustic-model/transition_matrices' 2024-04-08 15:19:45,189 wheel INFO adding 'speech_recognition/pocketsphinx-data/en-US/acoustic-model/variances' 2024-04-08 15:19:45,190 wheel INFO adding 'speech_recognition/recognizers/__init__.py' 2024-04-08 15:19:45,190 wheel INFO adding 'speech_recognition/recognizers/google.py' 2024-04-08 15:19:45,190 wheel INFO adding 'speech_recognition/recognizers/whisper.py' 2024-04-08 15:19:45,190 wheel INFO adding 'SpeechRecognition-3.10.3.dist-info/LICENSE-FLAC.txt' 2024-04-08 15:19:45,190 wheel INFO adding 'SpeechRecognition-3.10.3.dist-info/LICENSE.txt' 2024-04-08 15:19:45,190 wheel INFO adding 'SpeechRecognition-3.10.3.dist-info/METADATA' 2024-04-08 15:19:45,190 wheel INFO adding 'SpeechRecognition-3.10.3.dist-info/WHEEL' 2024-04-08 15:19:45,190 wheel INFO adding 'SpeechRecognition-3.10.3.dist-info/top_level.txt' 2024-04-08 15:19:45,190 wheel INFO adding 'SpeechRecognition-3.10.3.dist-info/RECORD' 2024-04-08 15:19:45,190 wheel INFO removing build/bdist.linux-x86_64/wheel 2024-04-08 15:19:45,197 gpep517 INFO The backend produced .dist/SpeechRecognition-3.10.3-py2.py3-none-any.whl SpeechRecognition-3.10.3-py2.py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.1.1, pluggy-1.4.0 rootdir: /home/patrycja/aports/community/py3-speechrecognition/src/speech_recognition-3.10.3 collected 38 items / 12 deselected / 26 selected tests/test_audio.py ............... [ 57%] tests/test_recognition.py sssssss.Fs [ 96%] tests/test_special_features.py F [100%] =================================== FAILURES =================================== _____________________ TestRecognition.test_sphinx_english ______________________ self = audio_data = language = 'en-US', keyword_entries = None, grammar = None, show_all = False def recognize_sphinx(self, audio_data, language="en-US", keyword_entries=None, grammar=None, show_all=False): """ Performs speech recognition on ``audio_data`` (an ``AudioData`` instance), using CMU Sphinx. The recognition language is determined by ``language``, an RFC5646 language tag like ``"en-US"`` or ``"en-GB"``, defaulting to US English. Out of the box, only ``en-US`` is supported. See `Notes on using `PocketSphinx `__ for information about installing other languages. This document is also included under ``reference/pocketsphinx.rst``. The ``language`` parameter can also be a tuple of filesystem paths, of the form ``(acoustic_parameters_directory, language_model_file, phoneme_dictionary_file)`` - this allows you to load arbitrary Sphinx models. If specified, the keywords to search for are determined by ``keyword_entries``, an iterable of tuples of the form ``(keyword, sensitivity)``, where ``keyword`` is a phrase, and ``sensitivity`` is how sensitive to this phrase the recognizer should be, on a scale of 0 (very insensitive, more false negatives) to 1 (very sensitive, more false positives) inclusive. If not specified or ``None``, no keywords are used and Sphinx will simply transcribe whatever words it recognizes. Specifying ``keyword_entries`` is more accurate than just looking for those same keywords in non-keyword-based transcriptions, because Sphinx knows specifically what sounds to look for. Sphinx can also handle FSG or JSGF grammars. The parameter ``grammar`` expects a path to the grammar file. Note that if a JSGF grammar is passed, an FSG grammar will be created at the same location to speed up execution in the next run. If ``keyword_entries`` are passed, content of ``grammar`` will be ignored. Returns the most likely transcription if ``show_all`` is false (the default). Otherwise, returns the Sphinx ``pocketsphinx.pocketsphinx.Decoder`` object resulting from the recognition. Raises a ``speech_recognition.UnknownValueError`` exception if the speech is unintelligible. Raises a ``speech_recognition.RequestError`` exception if there are any issues with the Sphinx installation. """ assert isinstance(audio_data, AudioData), "``audio_data`` must be audio data" assert isinstance(language, str) or (isinstance(language, tuple) and len(language) == 3), "``language`` must be a string or 3-tuple of Sphinx data file paths of the form ``(acoustic_parameters, language_model, phoneme_dictionary)``" assert keyword_entries is None or all(isinstance(keyword, (type(""), type(u""))) and 0 <= sensitivity <= 1 for keyword, sensitivity in keyword_entries), "``keyword_entries`` must be ``None`` or a list of pairs of strings and numbers between 0 and 1" # import the PocketSphinx speech recognition module try: > from pocketsphinx import FsgModel, Jsgf, pocketsphinx speech_recognition/__init__.py:600: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/pocketsphinx/__init__.py:35: in from sphinxbase import * /usr/lib/python3.12/site-packages/sphinxbase/__init__.py:44: in from .sphinxbase import * _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # This file was automatically generated by SWIG (https://www.swig.org). # Version 4.2.1 # # Do not make changes to this file unless you know what you are doing - modify # the SWIG interface file instead. """ This documentation was automatically generated using original comments in Doxygen format. As some C types and data structures cannot be directly mapped into Python types, some non-trivial type conversion could have place. Basically a type is replaced with another one that has the closest match, and sometimes one argument of generated function comprises several arguments of the original function (usually two). Functions having error code as the return value and returning effective value in one of its arguments are transformed so that the effective value is returned in a regular fashion and run-time exception is being thrown in case of negative error code. """ from sys import version_info as _swig_python_version_info # Import the low-level C/C++ module if __package__ or "." in __name__: > from . import _sphinxbase E ImportError: Error relocating /usr/lib/python3.12/site-packages/sphinxbase/_sphinxbase.cpython-312-x86_64-linux-musl.so: SWIG_Python_str_DelForPy3: symbol not found /usr/lib/python3.12/site-packages/sphinxbase/sphinxbase.py:24: ImportError During handling of the above exception, another exception occurred: self = def test_sphinx_english(self): r = sr.Recognizer() with sr.AudioFile(self.AUDIO_FILE_EN) as source: audio = r.record(source) > self.assertEqual(r.recognize_sphinx(audio), "one two three") tests/test_recognition.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = audio_data = language = 'en-US', keyword_entries = None, grammar = None, show_all = False def recognize_sphinx(self, audio_data, language="en-US", keyword_entries=None, grammar=None, show_all=False): """ Performs speech recognition on ``audio_data`` (an ``AudioData`` instance), using CMU Sphinx. The recognition language is determined by ``language``, an RFC5646 language tag like ``"en-US"`` or ``"en-GB"``, defaulting to US English. Out of the box, only ``en-US`` is supported. See `Notes on using `PocketSphinx `__ for information about installing other languages. This document is also included under ``reference/pocketsphinx.rst``. The ``language`` parameter can also be a tuple of filesystem paths, of the form ``(acoustic_parameters_directory, language_model_file, phoneme_dictionary_file)`` - this allows you to load arbitrary Sphinx models. If specified, the keywords to search for are determined by ``keyword_entries``, an iterable of tuples of the form ``(keyword, sensitivity)``, where ``keyword`` is a phrase, and ``sensitivity`` is how sensitive to this phrase the recognizer should be, on a scale of 0 (very insensitive, more false negatives) to 1 (very sensitive, more false positives) inclusive. If not specified or ``None``, no keywords are used and Sphinx will simply transcribe whatever words it recognizes. Specifying ``keyword_entries`` is more accurate than just looking for those same keywords in non-keyword-based transcriptions, because Sphinx knows specifically what sounds to look for. Sphinx can also handle FSG or JSGF grammars. The parameter ``grammar`` expects a path to the grammar file. Note that if a JSGF grammar is passed, an FSG grammar will be created at the same location to speed up execution in the next run. If ``keyword_entries`` are passed, content of ``grammar`` will be ignored. Returns the most likely transcription if ``show_all`` is false (the default). Otherwise, returns the Sphinx ``pocketsphinx.pocketsphinx.Decoder`` object resulting from the recognition. Raises a ``speech_recognition.UnknownValueError`` exception if the speech is unintelligible. Raises a ``speech_recognition.RequestError`` exception if there are any issues with the Sphinx installation. """ assert isinstance(audio_data, AudioData), "``audio_data`` must be audio data" assert isinstance(language, str) or (isinstance(language, tuple) and len(language) == 3), "``language`` must be a string or 3-tuple of Sphinx data file paths of the form ``(acoustic_parameters, language_model, phoneme_dictionary)``" assert keyword_entries is None or all(isinstance(keyword, (type(""), type(u""))) and 0 <= sensitivity <= 1 for keyword, sensitivity in keyword_entries), "``keyword_entries`` must be ``None`` or a list of pairs of strings and numbers between 0 and 1" # import the PocketSphinx speech recognition module try: from pocketsphinx import FsgModel, Jsgf, pocketsphinx except ImportError: > raise RequestError("missing PocketSphinx module: ensure that PocketSphinx is set up correctly.") E speech_recognition.exceptions.RequestError: missing PocketSphinx module: ensure that PocketSphinx is set up correctly. speech_recognition/__init__.py:603: RequestError ___________________ TestSpecialFeatures.test_sphinx_keywords ___________________ self = audio_data = language = 'en-US' keyword_entries = [('one', 1.0), ('two', 1.0), ('three', 1.0)], grammar = None show_all = False def recognize_sphinx(self, audio_data, language="en-US", keyword_entries=None, grammar=None, show_all=False): """ Performs speech recognition on ``audio_data`` (an ``AudioData`` instance), using CMU Sphinx. The recognition language is determined by ``language``, an RFC5646 language tag like ``"en-US"`` or ``"en-GB"``, defaulting to US English. Out of the box, only ``en-US`` is supported. See `Notes on using `PocketSphinx `__ for information about installing other languages. This document is also included under ``reference/pocketsphinx.rst``. The ``language`` parameter can also be a tuple of filesystem paths, of the form ``(acoustic_parameters_directory, language_model_file, phoneme_dictionary_file)`` - this allows you to load arbitrary Sphinx models. If specified, the keywords to search for are determined by ``keyword_entries``, an iterable of tuples of the form ``(keyword, sensitivity)``, where ``keyword`` is a phrase, and ``sensitivity`` is how sensitive to this phrase the recognizer should be, on a scale of 0 (very insensitive, more false negatives) to 1 (very sensitive, more false positives) inclusive. If not specified or ``None``, no keywords are used and Sphinx will simply transcribe whatever words it recognizes. Specifying ``keyword_entries`` is more accurate than just looking for those same keywords in non-keyword-based transcriptions, because Sphinx knows specifically what sounds to look for. Sphinx can also handle FSG or JSGF grammars. The parameter ``grammar`` expects a path to the grammar file. Note that if a JSGF grammar is passed, an FSG grammar will be created at the same location to speed up execution in the next run. If ``keyword_entries`` are passed, content of ``grammar`` will be ignored. Returns the most likely transcription if ``show_all`` is false (the default). Otherwise, returns the Sphinx ``pocketsphinx.pocketsphinx.Decoder`` object resulting from the recognition. Raises a ``speech_recognition.UnknownValueError`` exception if the speech is unintelligible. Raises a ``speech_recognition.RequestError`` exception if there are any issues with the Sphinx installation. """ assert isinstance(audio_data, AudioData), "``audio_data`` must be audio data" assert isinstance(language, str) or (isinstance(language, tuple) and len(language) == 3), "``language`` must be a string or 3-tuple of Sphinx data file paths of the form ``(acoustic_parameters, language_model, phoneme_dictionary)``" assert keyword_entries is None or all(isinstance(keyword, (type(""), type(u""))) and 0 <= sensitivity <= 1 for keyword, sensitivity in keyword_entries), "``keyword_entries`` must be ``None`` or a list of pairs of strings and numbers between 0 and 1" # import the PocketSphinx speech recognition module try: > from pocketsphinx import FsgModel, Jsgf, pocketsphinx speech_recognition/__init__.py:600: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/pocketsphinx/__init__.py:35: in from sphinxbase import * /usr/lib/python3.12/site-packages/sphinxbase/__init__.py:44: in from .sphinxbase import * _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # This file was automatically generated by SWIG (https://www.swig.org). # Version 4.2.1 # # Do not make changes to this file unless you know what you are doing - modify # the SWIG interface file instead. """ This documentation was automatically generated using original comments in Doxygen format. As some C types and data structures cannot be directly mapped into Python types, some non-trivial type conversion could have place. Basically a type is replaced with another one that has the closest match, and sometimes one argument of generated function comprises several arguments of the original function (usually two). Functions having error code as the return value and returning effective value in one of its arguments are transformed so that the effective value is returned in a regular fashion and run-time exception is being thrown in case of negative error code. """ from sys import version_info as _swig_python_version_info # Import the low-level C/C++ module if __package__ or "." in __name__: > from . import _sphinxbase E ImportError: Error relocating /usr/lib/python3.12/site-packages/sphinxbase/_sphinxbase.cpython-312-x86_64-linux-musl.so: SWIG_Python_str_DelForPy3: symbol not found /usr/lib/python3.12/site-packages/sphinxbase/sphinxbase.py:24: ImportError During handling of the above exception, another exception occurred: self = def test_sphinx_keywords(self): r = sr.Recognizer() with sr.AudioFile(self.AUDIO_FILE_EN) as source: audio = r.record(source) > self.assertEqual(r.recognize_sphinx(audio, keyword_entries=[("one", 1.0), ("two", 1.0), ("three", 1.0)]), "three two one") tests/test_special_features.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = audio_data = language = 'en-US' keyword_entries = [('one', 1.0), ('two', 1.0), ('three', 1.0)], grammar = None show_all = False def recognize_sphinx(self, audio_data, language="en-US", keyword_entries=None, grammar=None, show_all=False): """ Performs speech recognition on ``audio_data`` (an ``AudioData`` instance), using CMU Sphinx. The recognition language is determined by ``language``, an RFC5646 language tag like ``"en-US"`` or ``"en-GB"``, defaulting to US English. Out of the box, only ``en-US`` is supported. See `Notes on using `PocketSphinx `__ for information about installing other languages. This document is also included under ``reference/pocketsphinx.rst``. The ``language`` parameter can also be a tuple of filesystem paths, of the form ``(acoustic_parameters_directory, language_model_file, phoneme_dictionary_file)`` - this allows you to load arbitrary Sphinx models. If specified, the keywords to search for are determined by ``keyword_entries``, an iterable of tuples of the form ``(keyword, sensitivity)``, where ``keyword`` is a phrase, and ``sensitivity`` is how sensitive to this phrase the recognizer should be, on a scale of 0 (very insensitive, more false negatives) to 1 (very sensitive, more false positives) inclusive. If not specified or ``None``, no keywords are used and Sphinx will simply transcribe whatever words it recognizes. Specifying ``keyword_entries`` is more accurate than just looking for those same keywords in non-keyword-based transcriptions, because Sphinx knows specifically what sounds to look for. Sphinx can also handle FSG or JSGF grammars. The parameter ``grammar`` expects a path to the grammar file. Note that if a JSGF grammar is passed, an FSG grammar will be created at the same location to speed up execution in the next run. If ``keyword_entries`` are passed, content of ``grammar`` will be ignored. Returns the most likely transcription if ``show_all`` is false (the default). Otherwise, returns the Sphinx ``pocketsphinx.pocketsphinx.Decoder`` object resulting from the recognition. Raises a ``speech_recognition.UnknownValueError`` exception if the speech is unintelligible. Raises a ``speech_recognition.RequestError`` exception if there are any issues with the Sphinx installation. """ assert isinstance(audio_data, AudioData), "``audio_data`` must be audio data" assert isinstance(language, str) or (isinstance(language, tuple) and len(language) == 3), "``language`` must be a string or 3-tuple of Sphinx data file paths of the form ``(acoustic_parameters, language_model, phoneme_dictionary)``" assert keyword_entries is None or all(isinstance(keyword, (type(""), type(u""))) and 0 <= sensitivity <= 1 for keyword, sensitivity in keyword_entries), "``keyword_entries`` must be ``None`` or a list of pairs of strings and numbers between 0 and 1" # import the PocketSphinx speech recognition module try: from pocketsphinx import FsgModel, Jsgf, pocketsphinx except ImportError: > raise RequestError("missing PocketSphinx module: ensure that PocketSphinx is set up correctly.") E speech_recognition.exceptions.RequestError: missing PocketSphinx module: ensure that PocketSphinx is set up correctly. speech_recognition/__init__.py:603: RequestError =============================== warnings summary =============================== speech_recognition/__init__.py:7 /home/patrycja/aports/community/py3-speechrecognition/src/speech_recognition-3.10.3/speech_recognition/__init__.py:7: DeprecationWarning: 'aifc' is deprecated and slated for removal in Python 3.13 import aifc speech_recognition/__init__.py:8 /home/patrycja/aports/community/py3-speechrecognition/src/speech_recognition-3.10.3/speech_recognition/__init__.py:8: DeprecationWarning: 'audioop' is deprecated and slated for removal in Python 3.13 import audioop -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_recognition.py::TestRecognition::test_sphinx_english - spee... FAILED tests/test_special_features.py::TestSpecialFeatures::test_sphinx_keywords ====== 2 failed, 16 passed, 8 skipped, 12 deselected, 2 warnings in 0.28s ====== >>> ERROR: py3-speechrecognition: check failed >>> ERROR: py3-speechrecognition: rootbld failed >>> py3-speechrecognition: Cleaning up build chroot