Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Uberi committed Dec 5, 2017
1 parent f490c46 commit 47fed77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,11 @@ Please report bugs and suggestions at the `issue tracker <https://github.com/Ube

How to cite this library (APA style):

Zhang, A. (2017). Speech Recognition (Version 3.7) [Software]. Available from https://github.com/Uberi/speech_recognition#readme.
Zhang, A. (2017). Speech Recognition (Version 3.8) [Software]. Available from https://github.com/Uberi/speech_recognition#readme.

How to cite this library (Chicago style):

Zhang, Anthony. 2017. *Speech Recognition* (version 3.7).
Zhang, Anthony. 2017. *Speech Recognition* (version 3.8).

Also check out the `Python Baidu Yuyin API <https://github.com/DelightRun/PyBaiduYuyin>`__, which is based on an older version of this project, and adds support for `Baidu Yuyin <http://yuyin.baidu.com/>`__. Note that Baidu Yuyin is only available inside China.

Expand Down
6 changes: 3 additions & 3 deletions speech_recognition/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import uuid

__author__ = "Anthony Zhang (Uberi)"
__version__ = "3.7.1"
__version__ = "3.8.0"
__license__ = "BSD"

try: # attempt to use the Python 2 modules
Expand Down Expand Up @@ -310,8 +310,8 @@ def get_segment(self, start_ms=None, end_ms=None):
If not specified, ``start_ms`` defaults to the beginning of the audio, and ``end_ms`` defaults to the end.
"""
assert start_ms is None or start_ms > 0, "``start_ms`` must be a positive number"
assert end_ms is None or end_ms > 0, "``end_ms`` must be a positive number"
assert start_ms is None or start_ms >= 0, "``start_ms`` must be a non-negative number"
assert end_ms is None or end_ms >= start_ms, "``end_ms`` must be a number greater or equal to ``start_ms``"
if start_ms is None:
start_byte = 0
else:
Expand Down

0 comments on commit 47fed77

Please sign in to comment.