Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-SpeechRecognition for openSUSE:Factory checked in at 2024-12-13 22:37:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-SpeechRecognition (Old) and /work/SRC/openSUSE:Factory/.python-SpeechRecognition.new.29675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-SpeechRecognition" Fri Dec 13 22:37:51 2024 rev:6 rq:1230671 version:3.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-SpeechRecognition/python-SpeechRecognition.changes 2022-07-14 16:35:02.260672720 +0200 +++ /work/SRC/openSUSE:Factory/.python-SpeechRecognition.new.29675/python-SpeechRecognition.changes 2024-12-13 22:40:34.847675470 +0100 @@ -1,0 +2,35 @@ +Thu Dec 12 04:26:36 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com> + +- Update to 3.12.0: + * New features + + Groq Support + + Python 3.13 Support (experimental) + + Support Python 3.11 + + Support Whisper API + + Add recognize_tensorflow + + Add recognize_vosk + + Add recognize_amazon and recognize_assemblyai + + Add recognize_whisper + * Bugfixes & improvements + + Support Python maintenance: Add 3.12, Drop 3.8 + + Updated to the latest OpenAI API changes + + Replace with in-memory stream on recognize_whisper + + Remove prints that shouldn't be printed by default + + Update to speechContext formatting for recognize_google_cloud + + Fix for OSError: [Errno -9988] Stream closed Error + + Add paramater to change profanity filter level for Google Speech + Recognition + + Updating Wit API version (20160526 -> 20170307) + + Google cloud speech library + + Fix large cpu consumption in snowboy detect + + Replace Bing Speech API with Azure Speech API + + Removed duplicate code + + fix recognize_google_cloud + + Specify fp16 parameter for whisper +- Switch to pyproject macros. +- Run at least a portion of the testsuite. +- No more greedy globs in %files. +- Drop patch 406-google-cloud-speech.patch, included upstream. +- Refresh patch fix-readme.patch + +------------------------------------------------------------------- Old: ---- 3.8.1.tar.gz 406-google-cloud-speech.patch New: ---- 3.12.0.tar.gz BETA DEBUG BEGIN: Old:- No more greedy globs in %files. - Drop patch 406-google-cloud-speech.patch, included upstream. - Refresh patch fix-readme.patch BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-SpeechRecognition.spec ++++++ --- /var/tmp/diff_new_pack.Ys1ZaK/_old 2024-12-13 22:40:35.771713984 +0100 +++ /var/tmp/diff_new_pack.Ys1ZaK/_new 2024-12-13 22:40:35.771713984 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-SpeechRecognition # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,10 +16,9 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define justpython python Name: python-SpeechRecognition -Version: 3.8.1 +Version: 3.12.0 Release: 0 Summary: Library for performing speech recognition, with support for several engines # Note: The sources include third party code with different licenses. @@ -30,17 +29,27 @@ Source: https://github.com/Uberi/speech_recognition/archive/%{version}.tar.gz # Remove information about unbundled libraries. Patch0: fix-readme.patch -# PATCH-FIX-UPSTREAM 406-google-cloud-speech.patch gh#Uberi/speech_recognition#406 mc...@suse.com -# Switch dependency to google-cloud-speech from deprecated oauth2client and googleapiclient -Patch1: 406-google-cloud-speech.patch +BuildRequires: %{python_module audioop-lts if %python-base >= 3.13} +BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module google-cloud-speech} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module standard-aifc if %python-base >= 3.13} +BuildRequires: %{python_module typing-extensions} +BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: flac BuildRequires: python-rpm-macros Requires: %{justpython}-SpeechRecognition-common-en-US Requires: flac Requires: python-PyAudio Requires: python-google-cloud-speech +Requires: python-typing-extensions +%if 0%{?python_version_nodots} >= 313 +Requires: python-audioop-lts +Requires: python-standard-aifc +%endif Recommends: python-pocketsphinx-python BuildArch: noarch %python_subpackages @@ -74,19 +83,29 @@ rm LICENSE-FLAC.txt %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install +# Do not ship tests +%python_expand rm -r %{buildroot}%{$python_sitelib}/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} mkdir -p %{buildroot}%{_datadir}/speech_recognition cp -Ra speech_recognition/pocketsphinx-data %{buildroot}%{_datadir}/speech_recognition/ %python_expand rm -Rf %{buildroot}%{$python_sitelib}/speech_recognition/pocketsphinx-data %python_expand ln -s %{_datadir}/speech_recognition/pocketsphinx-data %{buildroot}%{$python_sitelib}/speech_recognition/ +%check +# No internet access for OpenAI or Groq +ignore="--ignore tests/recognizers/test_groq.py --ignore tests/recognizers/test_openai.py" +ignore+=" --ignore tests/test_whisper_recognition.py" +# PocketSphinx is only built for primary Python +%pytest $ignore -k 'not test_sphinx_' + %files %{python_files} %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/speech_recognition +%{python_sitelib}/SpeechRecognition-%{version}.dist-info %dir %{_datadir}/speech_recognition/ %dir %{_datadir}/speech_recognition/pocketsphinx-data ++++++ 3.8.1.tar.gz -> 3.12.0.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-SpeechRecognition/3.8.1.tar.gz /work/SRC/openSUSE:Factory/.python-SpeechRecognition.new.29675/3.12.0.tar.gz differ: char 12, line 1 ++++++ fix-readme.patch ++++++ --- /var/tmp/diff_new_pack.Ys1ZaK/_old 2024-12-13 22:40:35.807715485 +0100 +++ /var/tmp/diff_new_pack.Ys1ZaK/_new 2024-12-13 22:40:35.811715652 +0100 @@ -1,8 +1,8 @@ -Index: speech_recognition-3.8.1/README.rst +Index: speech_recognition-3.12.0/README.rst =================================================================== ---- speech_recognition-3.8.1.orig/README.rst -+++ speech_recognition-3.8.1/README.rst -@@ -270,9 +270,7 @@ To hack on this library, first make sure +--- speech_recognition-3.12.0.orig/README.rst ++++ speech_recognition-3.12.0/README.rst +@@ -283,9 +283,7 @@ To hack on this library, first make sure - Most of the library code lives in ``speech_recognition/__init__.py``. - Examples live under the ``examples/`` `directory <https://github.com/Uberi/speech_recognition/tree/master/examples>`__, and the demo script lives in ``speech_recognition/__main__.py``. @@ -10,11 +10,11 @@ - Documentation can be found in the ``reference/`` `directory <https://github.com/Uberi/speech_recognition/tree/master/reference>`__. -- Third-party libraries, utilities, and reference material are in the ``third-party/`` `directory <https://github.com/Uberi/speech_recognition/tree/master/third-party>`__. - To install/reinstall the library locally, run ``python setup.py install`` in the project `root directory <https://github.com/Uberi/speech_recognition>`__. + To install/reinstall the library locally, run ``python -m pip install -e .[dev]`` in the project `root directory <https://github.com/Uberi/speech_recognition>`__. -@@ -301,41 +299,6 @@ Testing is also done automatically by Tr - python -m flake8 --ignore=E501,E701 speech_recognition tests examples setup.py # ignore errors for long lines and multi-statement lines - python -m rstcheck README.rst reference/*.rst # ensure RST is well-formed +@@ -316,41 +314,6 @@ To ensure RST is well-formed: + + Testing is also done automatically by GitHub Actions, upon every push. -FLAC Executables -~~~~~~~~~~~~~~~~ @@ -54,7 +54,7 @@ Authors ------- -@@ -374,9 +337,3 @@ Copyright 2014-2017 `Anthony Zhang (Uber +@@ -389,9 +352,3 @@ Copyright 2014-2017 `Anthony Zhang (Uber SpeechRecognition is made available under the 3-clause BSD license. See ``LICENSE.txt`` in the project's `root directory <https://github.com/Uberi/speech_recognition>`__ for more information. For convenience, all the official distributions of SpeechRecognition already include a copy of the necessary copyright notices and licenses. In your project, you can simply **say that licensing information for SpeechRecognition can be found within the SpeechRecognition README, and make sure SpeechRecognition is visible to users if they wish to see it**.