Skip to content

Commit 702eb2b

Browse files
authored
Merge pull request #152 from pettarin/devel
Fix for issue #151
2 parents d33b92a + f4459a0 commit 702eb2b

37 files changed

+109
-64
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# aeneas
1+
# aeneas
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.7.0
6-
* Date: 2016-12-07
5+
* Version: 1.7.1
6+
* Date: 2016-12-21
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)
1010
1111
* Quick Links: [Home](http://www.readbeyond.it/aeneas/) - [GitHub](https://github.com/readbeyond/aeneas/) - [PyPI](https://pypi.python.org/pypi/aeneas/) - [Docs](http://www.readbeyond.it/aeneas/docs/) - [Tutorial](http://www.readbeyond.it/aeneas/docs/clitutorial.html) - [Benchmark](https://readbeyond.github.io/aeneas-benchmark/) - [Mailing List](https://groups.google.com/d/forum/aeneas-forced-alignment) - [Web App](http://aeneasweb.org)
1212

13-
13+
1414
## Goal
1515

1616
**aeneas** automatically generates a **synchronization map**
@@ -109,7 +109,7 @@ The generic OS-independent procedure is simple:
109109
`espeak`, `ffmpeg`, `ffprobe`, `pip`, and `python`
110110

111111
3. First install `numpy` with `pip` and then `aeneas` (this order is important):
112-
112+
113113
```bash
114114
pip install numpy
115115
pip install aeneas
@@ -185,7 +185,7 @@ The generic OS-independent procedure is simple:
185185
```bash
186186
python -m aeneas.tools.execute_job job.zip output_directory
187187
```
188-
188+
189189
File `job.zip` should contain a `config.txt` or `config.xml`
190190
configuration file, providing **aeneas**
191191
with all the information needed to parse the input assets
@@ -251,7 +251,7 @@ which explains how to use the built-in command line tools.
251251
* Extensive test suite including 1,200+ unit/integration/performance tests, that run and must pass before each release
252252
253253
254-
## Limitations and Missing Features
254+
## Limitations and Missing Features
255255
256256
* Audio should match the text: large portions of spurious text or audio might produce a wrong sync map
257257
* Audio is assumed to be spoken: not suitable for song captioning, YMMV for CC applications
@@ -304,7 +304,7 @@ No copy rights were harmed in the making of this project.
304304
305305
## Supporting and Contributing
306306
307-
### Sponsors
307+
### Sponsors
308308
309309
* **July 2015**: [Michele Gianella](https://plus.google.com/+michelegianella/about) generously supported the development of the boundary adjustment code (v1.0.4)
310310

README.rst

Lines changed: 2 additions & 2 deletions
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.7.0
8-
- Date: 2016-12-07
7+
- Version: 1.7.1
8+
- Date: 2016-12-21
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)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.0
1+
1.7.1

aeneas/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
"""
3636
__license__ = "GNU AGPL v3"
3737
__status__ = "Production"
38-
__version__ = "1.7.0"
38+
__version__ = "1.7.1"

aeneas/cdtw/cdtw_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
setup(
5151
name="cdtw",
52-
version="1.7.0",
52+
version="1.7.1",
5353
description="Python C Extension for computing the DTW as fast as your bare metal allows.",
5454
ext_modules=[CMODULE],
5555
include_dirs=[misc_util.get_numpy_include_dirs()]

aeneas/cew/cew_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
setup(
4949
name="cew",
50-
version="1.7.0",
50+
version="1.7.1",
5151
description="Python C Extension for synthesizing text with eSpeak.",
5252
ext_modules=[CMODULE]
5353
)

aeneas/cfw/cfw_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
setup(
5656
name="cfw",
57-
version="1.7.0",
57+
version="1.7.1",
5858
description="Python C Extension for synthesizing text with Festival.",
5959
ext_modules=[CMODULE]
6060
)

aeneas/cmfcc/cmfcc_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
setup(
5252
name="cmfcc",
53-
version="1.7.0",
53+
version="1.7.1",
5454
description="Python C Extension for computing the MFCCs as fast as your bare metal allows.",
5555
ext_modules=[CMODULE],
5656
include_dirs=[misc_util.get_numpy_include_dirs()]

aeneas/cwave/cwave_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
setup(
5151
name="cwave",
52-
version="1.7.0",
52+
version="1.7.1",
5353
description="Python C Extension for for reading WAVE files.",
5454
ext_modules=[CMODULE],
5555
include_dirs=[misc_util.get_numpy_include_dirs()]

aeneas/globalfunctions.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,18 +1005,27 @@ def delete_directory(path):
10051005
pass
10061006

10071007

1008-
def delete_file(handler, path):
1008+
def close_file_handler(handler):
10091009
"""
1010-
Safely delete file.
1010+
Safely close the given file handler.
10111011
10121012
:param object handler: the file handler (as returned by tempfile)
1013-
:param string path: the file path
10141013
"""
10151014
if handler is not None:
10161015
try:
10171016
os.close(handler)
10181017
except:
10191018
pass
1019+
1020+
1021+
def delete_file(handler, path):
1022+
"""
1023+
Safely delete file.
1024+
1025+
:param object handler: the file handler (as returned by tempfile)
1026+
:param string path: the file path
1027+
"""
1028+
close_file_handler(handler)
10201029
if path is not None:
10211030
try:
10221031
os.remove(path)

0 commit comments

Comments
 (0)