14
14
1 . [ System Requirements] ( #system-requirements )
15
15
2 . [ Supported Platforms] ( #supported-platforms )
16
16
3 . [ Installation] ( #installation )
17
- 1 . [ Linux] ( #linux )
18
- 2 . [ Windows] ( #windows )
19
- 3 . [ Mac OS X] ( #mac-os-x )
17
+ 1 . [ Using pip (OS Independent)] ( #using-pip-os-independent )
18
+ 2 . [ Linux] ( #linux )
19
+ 3 . [ Windows] ( #windows )
20
+ 4 . [ Mac OS X] ( #mac-os-x )
20
21
3 . [ Usage] ( #usage )
21
22
4 . [ Documentation] ( #documentation )
22
23
5 . [ Supported Features] ( #supported-features )
@@ -39,8 +40,8 @@ and an audio file containing the narration of the text.
39
40
In computer science this task is known as
40
41
(automatically computing a) ** forced alignment** .
41
42
42
- For example, given [ this text file] ( aeneas/tests/res/container/job/assets/p001.xhtml )
43
- and [ this audio file] ( aeneas/tests/res/container/job/assets/p001.mp3 ) ,
43
+ For example, given [ this text file] ( https://raw.githubusercontent.com/readbeyond/aeneas/master/ aeneas/tests/res/container/job/assets/p001.xhtml)
44
+ and [ this audio file] ( https://raw.githubusercontent.com/readbeyond/aeneas/master/ aeneas/tests/res/container/job/assets/p001.mp3) ,
44
45
** aeneas** determines, for each fragment, the corresponding time interval in the audio file:
45
46
46
47
```
@@ -121,14 +122,37 @@ and [Vagrant](http://www.vagrantup.com/).
121
122
122
123
### Installation
123
124
125
+ #### Using pip (OS Independent)
126
+
127
+ 1 . Make sure you have
128
+ ` ffmpeg ` , ` ffprobe ` (usually provided by the ` ffmpeg ` package),
129
+ and ` espeak ` installed and available on your command line.
130
+ You also need Python 2.x and its "developer" package
131
+ containing the C headers (` python-dev ` or similar).
132
+
133
+ 2 . Install ` aeneas ` system-wise with ` pip ` :
134
+
135
+ ``` bash
136
+ $ sudo pip install numpy
137
+ $ sudo pip install aeneas
138
+ (Optional: $ sudo pip install pafy)
139
+ ```
140
+
141
+ ** Note** : you must install ` numpy` before ` aeneas` ,
142
+ otherwise the setup process will fail.
143
+
144
+ ** Note** : you can install ` aeneas` via ` pip`
145
+ in a virtual environment (e.g. created by ` virtualenv` ).
146
+
124
147
# ### Linux
125
148
126
149
1. If you are a user of a ` deb` -based Linux distribution
127
150
(e.g., Debian or Ubuntu),
128
- you can install all the dependencies by running
129
- [ the provided ` install_dependencies.sh ` script] ( install_dependencies.sh )
151
+ you can install all the dependencies by downloading and running
152
+ [the provided install_dependencies.sh script](https://raw.githubusercontent.com/readbeyond/aeneas/master/ install_dependencies.sh)
130
153
131
154
` ` ` bash
155
+ $ wget https://raw.githubusercontent.com/readbeyond/aeneas/master/install_dependencies.sh
132
156
$ sudo bash install_dependencies.sh
133
157
` ` `
134
158
@@ -154,6 +178,14 @@ you can install all the dependencies by running
154
178
you have all the required dependencies installed
155
179
and you can confidently run ** aeneas** in production.
156
180
181
+ 3. In alternative to the previous point, you can install ` aeneas` system-wise with ` pip` :
182
+
183
+ ` ` ` bash
184
+ $ sudo pip install numpy
185
+ $ sudo pip install aeneas
186
+ (Optional: $ sudo pip install pafy)
187
+ ` ` `
188
+
157
189
# ### Windows
158
190
159
191
Please follow the installation instructions
@@ -237,12 +269,22 @@ Feel free to jump to step 9 if you already have
237
269
you have all the required dependencies installed
238
270
and you can confidently run ** aeneas** in production.
239
271
272
+ 10. In alternative to the previous point, you can install ` aeneas` system-wise with ` pip` :
273
+
274
+ ` ` ` bash
275
+ $ sudo pip install numpy
276
+ $ sudo pip install aeneas
277
+ (Optional: $ sudo pip install pafy)
278
+ ` ` `
279
+
240
280
# # Usage
241
281
242
282
1. Install ` aeneas` as described above. (Only the first time! )
243
283
244
284
2. Open a command prompt/shell/terminal and go to the root directory
245
285
of the aeneas repository, that is, the one containing the ` README.md` and ` VERSION` files.
286
+ (This step is not needed if you installed ` aeneas` with ` pip` ,
287
+ since you will have the ` aeneas` module available system-wise.)
246
288
247
289
3. To compute a synchronization map ` map.json` for a pair
248
290
(` audio.mp3` , ` text.txt` in ` plain` text format), you can run:
@@ -346,7 +388,6 @@ Changelog: [http://www.readbeyond.it/aeneas/docs/changelog.html](http://www.read
346
388
* Multilevel sync map granularity (e.g., multilevel SMIL output)
347
389
* Better documentation
348
390
* Testing other approaches, like HMM
349
- * Publishing the package on PyPI
350
391
* Publishing the package on Debian repo
351
392
352
393
Would you like to see one of the above points done?
@@ -383,43 +424,43 @@ To be written. Eventually. Some day.
383
424
384
425
** aeneas** is released under the terms of the
385
426
GNU Affero General Public License Version 3.
386
- See the [LICENSE](LICENSE) file for details.
427
+ See the [LICENSE](https://raw.githubusercontent.com/readbeyond/aeneas/master/ LICENSE) file for details.
387
428
388
429
The pure Python code for computing the MFCCs
389
430
` aeneas/mfcc.py`
390
431
is a verbatim copy from the
391
432
[CMU Sphinx3 project](http://cmusphinx.sourceforge.net/).
392
- See [` licenses/sphinx3.txt` ]( licenses/sphinx3.txt) for details.
433
+ See [licenses/sphinx3.txt](https://raw.githubusercontent.com/readbeyond/aeneas/master/ licenses/sphinx3.txt) for details.
393
434
394
435
The pure Python code for reading and writing WAVE files
395
436
` aeneas/wavfile.py`
396
437
is a verbatim copy from the
397
438
[scipy project](https://github.com/scipy/scipy/),
398
439
included here to avoid installing the whole ` scipy` package.
399
- See [` licenses/scipy.txt` ]( licenses/scipy.txt) for details.
440
+ See [licenses/scipy.txt](https://raw.githubusercontent.com/readbeyond/aeneas/master/ licenses/scipy.txt) for details.
400
441
401
442
The C header ` speak_lib.h` for ` espeak`
402
443
is a verbatim copy from the
403
444
[espeak project](http://espeak.sourceforge.net/).
404
- See [` licenses/eSpeak.txt` ]( licenses/eSpeak.txt) for details.
445
+ See [licenses/eSpeak.txt](https://raw.githubusercontent.com/readbeyond/aeneas/master/ licenses/eSpeak.txt) for details.
405
446
406
447
The HTML file ` aeneas/res/finetuneas.html`
407
448
is a verbatim copy from the
408
449
[finetuneas project](https://github.com/ozdefir/finetuneas),
409
450
courtesy of Firat Özdemir.
410
- See [` licenses/finetuneas.txt` ]( licenses/finetuneas.txt) for details.
451
+ See [licenses/finetuneas.txt](https://raw.githubusercontent.com/readbeyond/aeneas/master/ licenses/finetuneas.txt) for details.
411
452
412
453
Audio files contained in the unit tests ` aeneas/tests/res/` directory
413
454
are adapted from recordings produced by
414
455
the [LibriVox Project](http://www.librivox.org)
415
456
and they are in the public domain.
416
- See [` licenses/LibriVox.txt` ]( licenses/LibriVox.txt) for details.
457
+ See [licenses/LibriVox.txt](https://raw.githubusercontent.com/readbeyond/aeneas/master/ licenses/LibriVox.txt) for details.
417
458
418
459
Text files contained in the unit tests ` aeneas/tests/res/` directory
419
460
are adapted from files produced by
420
461
the [Project Gutenberg](http://www.gutenberg.org)
421
462
and they are in the public domain.
422
- See [` licenses/ProjectGutenberg.txt` ]( licenses/ProjectGutenberg.txt) for details.
463
+ See [licenses/ProjectGutenberg.txt](https://raw.githubusercontent.com/readbeyond/aeneas/master/ licenses/ProjectGutenberg.txt) for details.
423
464
424
465
No copy rights were harmed in the making of this project.
425
466
@@ -527,6 +568,10 @@ including calling espeak via its C API (on Linux)
527
568
for faster audio synthesis, and the possibility
528
569
of downloading audio from YouTube
529
570
571
+ ** November 2015** : release of v1.3.2,
572
+ for the first time available
573
+ also on [PyPI](https://pypi.python.org/pypi/aeneas/)
574
+
530
575
# # Acknowledgments
531
576
532
577
Many thanks to ** Nicola Montecchio** ,
0 commit comments