Skip to content

Commit

Permalink
Merge pull request #83 from readbeyond/devel
Browse files Browse the repository at this point in the history
Fix issue sd returning float instead of TimeValue
  • Loading branch information
readbeyond committed Apr 23, 2016
2 parents d997639 + b4ec7d1 commit d070d23
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

**aeneas** is a Python/C library and a set of tools to automagically synchronize audio and text (aka forced alignment).

* Version: 1.5.0.2
* Date: 2016-04-09
* Version: 1.5.0.3
* Date: 2016-04-23
* Developed by: [ReadBeyond](http://www.readbeyond.it/)
* Lead Developer: [Alberto Pettarin](http://www.albertopettarin.it/)
* License: the GNU Affero General Public License Version 3 (AGPL v3)
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ aeneas
**aeneas** is a Python/C library and a set of tools to automagically
synchronize audio and text (aka forced alignment).

- Version: 1.5.0.2
- Date: 2016-04-09
- Version: 1.5.0.3
- Date: 2016-04-23
- Developed by: `ReadBeyond <http://www.readbeyond.it/>`__
- Lead Developer: `Alberto Pettarin <http://www.albertopettarin.it/>`__
- License: the GNU Affero General Public License Version 3 (AGPL v3)
Expand Down
4 changes: 2 additions & 2 deletions aeneas/sd.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def _sanitize(value, default, name):
self.log(u"No speech intervals, hence no start found")
if tail:
self.real_wave_mfcc.reverse()
return 0.0
return TimeValue("0.000")

# generate a list of begin indices
search_end = None
Expand Down Expand Up @@ -317,7 +317,7 @@ def _sanitize(value, default, name):
# return
if len(candidates) < 1:
self.log(u"No candidates found")
return 0.0
return TimeValue("0.000")
self.log(u"Candidates:")
for candidate in candidates:
self.log([u" Value: %.6f Begin Time: %.3f Min Index: %d", candidate[0], candidate[1] * mws, candidate[2]])
Expand Down
5 changes: 5 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

v1.5.0.3 (2016-04-23)
---------------------

#. Fix an issue in ``sd`` with ``float`` returned instead of ``TimeValue``

v1.5.0.2 (2016-04-09)
---------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"aeneas.extra": ["*.md"],
"aeneas.tools": ["res/*", "*.md"]
},
version="1.5.0.2",
version="1.5.0.3",
description=SHORT_DESCRIPTION,
author="Alberto Pettarin",
author_email="[email protected]",
Expand Down

0 comments on commit d070d23

Please sign in to comment.