Skip to content

Commit 94ccb4a

Browse files
committed
Merge pull request #32 from readbeyond/devel
Better README for PyPI
2 parents 32ff522 + eb0f15a commit 94ccb4a

File tree

4 files changed

+201
-80
lines changed

4 files changed

+201
-80
lines changed

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ prune docs/build
66
include LICENSE
77
recursive-include licenses *
88
include README.md
9-
include README.txt
9+
include README.rst
1010
include requirements.txt
1111
recursive-include thirdparty *
1212
include VERSION

README.md

+60-15
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
1. [System Requirements](#system-requirements)
1515
2. [Supported Platforms](#supported-platforms)
1616
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)
2021
3. [Usage](#usage)
2122
4. [Documentation](#documentation)
2223
5. [Supported Features](#supported-features)
@@ -39,8 +40,8 @@ and an audio file containing the narration of the text.
3940
In computer science this task is known as
4041
(automatically computing a) **forced alignment**.
4142

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),
4445
**aeneas** determines, for each fragment, the corresponding time interval in the audio file:
4546

4647
```
@@ -121,14 +122,37 @@ and [Vagrant](http://www.vagrantup.com/).
121122

122123
### Installation
123124

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+
124147
#### Linux
125148

126149
1. If you are a user of a `deb`-based Linux distribution
127150
(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)
130153

131154
```bash
155+
$ wget https://raw.githubusercontent.com/readbeyond/aeneas/master/install_dependencies.sh
132156
$ sudo bash install_dependencies.sh
133157
```
134158

@@ -154,6 +178,14 @@ you can install all the dependencies by running
154178
you have all the required dependencies installed
155179
and you can confidently run **aeneas** in production.
156180

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+
157189
#### Windows
158190

159191
Please follow the installation instructions
@@ -237,12 +269,22 @@ Feel free to jump to step 9 if you already have
237269
you have all the required dependencies installed
238270
and you can confidently run **aeneas** in production.
239271

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+
240280
## Usage
241281

242282
1. Install `aeneas` as described above. (Only the first time!)
243283

244284
2. Open a command prompt/shell/terminal and go to the root directory
245285
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.)
246288

247289
3. To compute a synchronization map `map.json` for a pair
248290
(`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
346388
* Multilevel sync map granularity (e.g., multilevel SMIL output)
347389
* Better documentation
348390
* Testing other approaches, like HMM
349-
* Publishing the package on PyPI
350391
* Publishing the package on Debian repo
351392

352393
Would you like to see one of the above points done?
@@ -383,43 +424,43 @@ To be written. Eventually. Some day.
383424

384425
**aeneas** is released under the terms of the
385426
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.
387428

388429
The pure Python code for computing the MFCCs
389430
`aeneas/mfcc.py`
390431
is a verbatim copy from the
391432
[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.
393434

394435
The pure Python code for reading and writing WAVE files
395436
`aeneas/wavfile.py`
396437
is a verbatim copy from the
397438
[scipy project](https://github.com/scipy/scipy/),
398439
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.
400441

401442
The C header `speak_lib.h` for `espeak`
402443
is a verbatim copy from the
403444
[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.
405446

406447
The HTML file `aeneas/res/finetuneas.html`
407448
is a verbatim copy from the
408449
[finetuneas project](https://github.com/ozdefir/finetuneas),
409450
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.
411452

412453
Audio files contained in the unit tests `aeneas/tests/res/` directory
413454
are adapted from recordings produced by
414455
the [LibriVox Project](http://www.librivox.org)
415456
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.
417458

418459
Text files contained in the unit tests `aeneas/tests/res/` directory
419460
are adapted from files produced by
420461
the [Project Gutenberg](http://www.gutenberg.org)
421462
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.
423464

424465
No copy rights were harmed in the making of this project.
425466

@@ -527,6 +568,10 @@ including calling espeak via its C API (on Linux)
527568
for faster audio synthesis, and the possibility
528569
of downloading audio from YouTube
529570

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+
530575
## Acknowledgments
531576

532577
Many thanks to **Nicola Montecchio**,

0 commit comments

Comments
 (0)