Skip to content

Commit d070d23

Browse files
committed
Merge pull request #83 from readbeyond/devel
Fix issue sd returning float instead of TimeValue
2 parents d997639 + b4ec7d1 commit d070d23

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

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

5-
* Version: 1.5.0.2
6-
* Date: 2016-04-09
5+
* Version: 1.5.0.3
6+
* Date: 2016-04-23
77
* Developed by: [ReadBeyond](http://www.readbeyond.it/)
88
* Lead Developer: [Alberto Pettarin](http://www.albertopettarin.it/)
99
* License: the GNU Affero General Public License Version 3 (AGPL v3)

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ aeneas
44
**aeneas** is a Python/C library and a set of tools to automagically
55
synchronize audio and text (aka forced alignment).
66

7-
- Version: 1.5.0.2
8-
- Date: 2016-04-09
7+
- Version: 1.5.0.3
8+
- Date: 2016-04-23
99
- Developed by: `ReadBeyond <http://www.readbeyond.it/>`__
1010
- Lead Developer: `Alberto Pettarin <http://www.albertopettarin.it/>`__
1111
- License: the GNU Affero General Public License Version 3 (AGPL v3)

aeneas/sd.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def _sanitize(value, default, name):
266266
self.log(u"No speech intervals, hence no start found")
267267
if tail:
268268
self.real_wave_mfcc.reverse()
269-
return 0.0
269+
return TimeValue("0.000")
270270

271271
# generate a list of begin indices
272272
search_end = None
@@ -317,7 +317,7 @@ def _sanitize(value, default, name):
317317
# return
318318
if len(candidates) < 1:
319319
self.log(u"No candidates found")
320-
return 0.0
320+
return TimeValue("0.000")
321321
self.log(u"Candidates:")
322322
for candidate in candidates:
323323
self.log([u" Value: %.6f Begin Time: %.3f Min Index: %d", candidate[0], candidate[1] * mws, candidate[2]])

docs/source/changelog.rst

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
v1.5.0.3 (2016-04-23)
5+
---------------------
6+
7+
#. Fix an issue in ``sd`` with ``float`` returned instead of ``TimeValue``
8+
49
v1.5.0.2 (2016-04-09)
510
---------------------
611

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"aeneas.extra": ["*.md"],
8787
"aeneas.tools": ["res/*", "*.md"]
8888
},
89-
version="1.5.0.2",
89+
version="1.5.0.3",
9090
description=SHORT_DESCRIPTION,
9191
author="Alberto Pettarin",
9292
author_email="[email protected]",

0 commit comments

Comments
 (0)