[Python-modules-commits] [speechrecognition] 06/07: merge patched into master

Ethan Ward ethanward-guest at moszumanska.debian.org
Wed Jul 26 18:32:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

ethanward-guest pushed a commit to branch master
in repository speechrecognition.

commit d22ea648f230980da806b26a1f0ac3ff80bb468e
Merge: 621e0e7 3268c94
Author: Ethan Ward <ethan.ward at mycroft.ai>
Date:   Wed Jul 26 13:24:13 2017 -0500

    merge patched into master

 debian/.git-dpm                                    |  4 +-
 ...sts-that-require-internet-or-pocketsphinx.patch | 54 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 tests/test_recognition.py                          |  4 ++
 tests/test_special_features.py                     |  3 +-
 5 files changed, 63 insertions(+), 3 deletions(-)

diff --cc debian/.git-dpm
index e016bd3,0000000..ff311dc
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,11 -1,0 +1,11 @@@
 +# see git-dpm(1) from git-dpm package
- 1995ce3998b70d938c0692516eb52512611dd376
- 1995ce3998b70d938c0692516eb52512611dd376
++3268c94de83e893d4d47f1237abdf81ebea4c287
++3268c94de83e893d4d47f1237abdf81ebea4c287
 +1995ce3998b70d938c0692516eb52512611dd376
 +1995ce3998b70d938c0692516eb52512611dd376
 +speechrecognition_3.7.1.orig.tar.gz
 +07309e6d9dd6b3f760af09dd1c366b847de34917
 +125418704
 +debianTag="debian/%e%v"
 +patchedTag="patched/%e%v"
 +upstreamTag="upstream/%e%u"
diff --cc debian/patches/0001-Remove-tests-that-require-internet-or-pocketsphinx.patch
index 0000000,0000000..9730e41
new file mode 100644
--- /dev/null
+++ b/debian/patches/0001-Remove-tests-that-require-internet-or-pocketsphinx.patch
@@@ -1,0 -1,0 +1,54 @@@
++From 3268c94de83e893d4d47f1237abdf81ebea4c287 Mon Sep 17 00:00:00 2001
++From: Ethan Ward <ethan.ward at mycroft.ai>
++Date: Wed, 26 Jul 2017 13:23:46 -0500
++Subject: Remove tests that require internet or pocketsphinx
++
++---
++ tests/test_recognition.py      | 4 ++++
++ tests/test_special_features.py | 3 ++-
++ 2 files changed, 6 insertions(+), 1 deletion(-)
++
++diff --git a/tests/test_recognition.py b/tests/test_recognition.py
++index 269dc00..fb12414 100644
++--- a/tests/test_recognition.py
+++++ b/tests/test_recognition.py
++@@ -13,21 +13,25 @@ class TestRecognition(unittest.TestCase):
++         self.AUDIO_FILE_FR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "french.aiff")
++         self.AUDIO_FILE_ZH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "chinese.flac")
++ 
+++    @unittest.skip("Does not detect pocketsphinx")
++     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), "wanted to three")
++ 
+++    @unittest.skip("Requires internet connection")
++     def test_google_english(self):
++         r = sr.Recognizer()
++         with sr.AudioFile(self.AUDIO_FILE_EN) as source: audio = r.record(source)
++         self.assertEqual(r.recognize_google(audio), "one two three")
++ 
+++    @unittest.skip("Requires internet connection")
++     def test_google_french(self):
++         r = sr.Recognizer()
++         with sr.AudioFile(self.AUDIO_FILE_FR) as source: audio = r.record(source)
++         self.assertEqual(r.recognize_google(audio, language="fr-FR"), u"et c'est la dictée numéro 1")
++ 
+++    @unittest.skip("Requires internet connection")
++     def test_google_chinese(self):
++         r = sr.Recognizer()
++         with sr.AudioFile(self.AUDIO_FILE_ZH) as source: audio = r.record(source)
++diff --git a/tests/test_special_features.py b/tests/test_special_features.py
++index c77ab44..77de54f 100644
++--- a/tests/test_special_features.py
+++++ b/tests/test_special_features.py
++@@ -10,7 +10,8 @@ import speech_recognition as sr
++ class TestSpecialFeatures(unittest.TestCase):
++     def setUp(self):
++         self.AUDIO_FILE_EN = os.path.join(os.path.dirname(os.path.realpath(__file__)), "english.wav")
++-
+++    
+++    @unittest.skip("Pocketsphinx not found")
++     def test_sphinx_keywords(self):
++         r = sr.Recognizer()
++         with sr.AudioFile(self.AUDIO_FILE_EN) as source: audio = r.record(source)
diff --cc debian/patches/series
index 0000000,0000000..557d616
new file mode 100644
--- /dev/null
+++ b/debian/patches/series
@@@ -1,0 -1,0 +1,1 @@@
++0001-Remove-tests-that-require-internet-or-pocketsphinx.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/speechrecognition.git



More information about the Python-modules-commits mailing list