Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Uberi committed May 22, 2016
1 parent 14ef93a commit 2e10c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions speech_recognition/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""Library for performing speech recognition, with support for several engines and APIs, online and offline."""

__author__ = "Anthony Zhang (Uberi)"
__version__ = "3.4.5"
__version__ = "3.4.6"
__license__ = "BSD"

import io, os, subprocess, wave, aifc, base64
Expand Down Expand Up @@ -823,7 +823,7 @@ def recognize_api(self, audio_data, client_access_token, language = "en", sessio

# pick a good multipart boundary; one that is guaranteed not to be in the text
while True:
boundary = "{0:>016x}".format(random.randrange(0x10000000000000000)) # generate a random boundary
boundary = uuid.uuid4().hex # generate a random boundary
if boundary.encode("utf-8") not in wav_data:
break

Expand Down

0 comments on commit 2e10c87

Please sign in to comment.