Skip to content

Commit

Permalink
Merge pull request #344 from Franck-Dernoncourt/patch-1
Browse files Browse the repository at this point in the history
Updating Wit API version (20160526 -> 20170307)
  • Loading branch information
palikar authored Oct 30, 2018
2 parents 9ceefb8 + 91ec8b1 commit f89256b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speech_recognition/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,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)
Expand Down

0 comments on commit f89256b

Please sign in to comment.