From 91ec8b1b9a2d2fc90f8b95f2dbe3c7bf773cb35c Mon Sep 17 00:00:00 2001 From: Franck Dernoncourt Date: Sun, 8 Apr 2018 10:29:55 -0700 Subject: [PATCH] Updating Wit API version (20160526 -> 20170307) --- speech_recognition/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speech_recognition/__init__.py b/speech_recognition/__init__.py index 6a8241e4..39eb87ce 100644 --- a/speech_recognition/__init__.py +++ b/speech_recognition/__init__.py @@ -999,7 +999,7 @@ def recognize_wit(self, audio_data, key, show_all=False): convert_rate=None if audio_data.sample_rate >= 8000 else 8000, # audio samples must be at least 8 kHz convert_width=2 # audio samples should be 16-bit ) - url = "https://api.wit.ai/speech?v=20160526" + url = "https://api.wit.ai/speech?v=20170307" request = Request(url, data=wav_data, headers={"Authorization": "Bearer {}".format(key), "Content-Type": "audio/wav"}) try: response = urlopen(request, timeout=self.operation_timeout)