PedroDKE commited on
Commit
f2ae8fd
1 Parent(s): ac83a1c

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +82 -0
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LibriS2S
2
+ This repo contains scripts and alignment data to create a dataset build further upon [librivoxDeEn](https://www.cl.uni-heidelberg.de/statnlpgroup/librivoxdeen/) such that it contains (German audio, German transcription, English audio, English transcription) quadruplets and can be used for Speech-to-Speech translation research. Because of this, the alignments are released under the same [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/) <div>
3
+ These alignments were collected by downloading the English audiobooks and using [aeneas](https://github.com/readbeyond/aeneas) to align the book chapters to the transcripts. For more information read the original [paper](https://arxiv.org/abs/2204.10593) (Presented at LREC 2022)
4
+
5
+ ### The data
6
+ The English/German audio are available in the folder EN/DE respectively and can be downloaded from [this onedrive](https://1drv.ms/u/s!Aox92ivMmuTc-i1Hf4iTugnhQ0Yi?e=pvvPeH). In case there are any problems with the download, feel free to open an issue <br/>
7
+ The repo structure is as follow:
8
+ - Alignments : Contains all the alignments for each book and chapter
9
+ - DE : Contains the German audio for each chapter per book.
10
+ - EN : Contains the English audio for each chapter per book.
11
+ - Example : contains example files on for the scraping and aligning explanations that were used to build this dataset.
12
+ - LibrivoxDeEn_alignments : Contains the base alignments from the LibrivoxDeEn dataset. <br/>
13
+
14
+ In case you feel a part of the data is missing, feel free to open an issue!
15
+ The full zipfile is about 52 GB of size.
16
+
17
+ ### Scraping a book from Librivox
18
+ To download all chapters from a librivox url the following command can be used:
19
+ ```
20
+ python scrape_audio_from_librivox.py \
21
+ --url https://librivox.org/undine-by-friedrich-de-la-motte-fouque/ \
22
+ --save_dir ./examples
23
+ ```
24
+
25
+ ### Allign a book from Librivox with the text from LibrivoxDeEn
26
+ To allign the previously downloaded book with the txt files and tsv tables provided by LibrivoxDeEn the following command, based on the example provided with this repo, can be used:
27
+ ```
28
+ python align_text_and_audio.py \
29
+ --text_dir ./example/en_text/ \
30
+ --audio_path ./example/audio_chapters/ \
31
+ --aeneas_path ./example/aeneas/ \
32
+ --en_audio_export_path ./example/sentence_level_audio/ \
33
+ --total_alignment_path ./example/bi-lingual-alignment/ \
34
+ --librivoxdeen_alignment ./example/undine_data.tsv \
35
+ --aeneas_head_max 120 \
36
+ --aeneas_tail_min 5 \
37
+ ```
38
+ **note:** the example folder in this repo already contains the first two chapters from [Undine](https://librivox.org/undine-by-friedrich-de-la-motte-fouque/) scraped from librivox and their transcripts and (modified to only contain the first 2 chapters) tsv table retrieved from LibrivoxDeEn.
39
+ Additional data to align can be scraped by using the same file shown previously and combined with the provided data from LibriVoxDeEn
40
+
41
+ Additionally with this repo the full alignment for the 8 following books with following LibrivoxDeEn id's are also given:
42
+ [9](https://librivox.org/the-picture-of-dorian-gray-1891-version-by-oscar-wilde/), [10](https://librivox.org/pandoras-box-by-frank-wedekind/), [13](https://librivox.org/survivors-of-the-chancellor-by-jules-verne/), [18](https://librivox.org/undine-by-friedrich-de-la-motte-fouque/), [23](https://librivox.org/around-the-world-in-80-days-by-jules-verne/), [108](https://librivox.org/elective-affinities-by-johann-wolfgang-von-goethe/), [110](https://librivox.org/candide-by-voltaire-3/), [120](https://librivox.org/the-metamorphosis-by-franz-kafka/).
43
+
44
+ Other books such as [11](https://librivox.org/the-castle-of-otranto-by-horace-walpole/), [36](https://librivox.org/the-rider-on-the-white-horse-by-theodor-storm/), [67](https://librivox.org/frankenstein-or-the-modern-prometheus-1818-by-mary-wollstonecraft-shelley/) and [54](https://librivox.org/white-nights-other-stories-by-fyodor-dostoyevsky/) are also inside of the librivoxDeEn dataset but the chapters do not correspond in a 1:1 mannner(for example: the German version of book 67 has 27 chapters but the English version has 29 and thus need to be re-aligned before the allignment script in this repo will work). Therefore these alignments are given but might have be different if you scrape them yourselves as the re-alignments might be different for you.
45
+ ### Metrics on the alignment given in this repo.
46
+ Using the alignments given in this repo some metrics were collected and quickly displayed here, for this table and the next figure the books which were manually alligned, although provided in the zip, were not accounted for, but the full table can be found in the original paper.
47
+ | | German | English |
48
+ | :---: | :-: | :-: |
49
+ |number of files | 18868 | 18868 |
50
+ |total time (hh:mm:ss) | 39:11:08 | 40:52:31 |
51
+ |Speakers | 41 |22 |
52
+
53
+ note: the speakers were counted for each book seperatly so some speakers might be counter more than once.
54
+
55
+ the number of hours for each book aligned in this repo:<br>
56
+ <img src="https://user-images.githubusercontent.com/43861296/122250648-1f5f7f80-ceca-11eb-84fd-344a2261bf47.png" width="500">
57
+
58
+ when using this work, please cite the original paper and the LibrivoxDeEn authors
59
+ ```
60
+ @misc{jeuris2022,
61
+ title = {LibriS2S: A German-English Speech-to-Speech Translation Corpus},
62
+ author = {Jeuris, Pedro and Niehues, Jan},
63
+ doi = {10.48550/ARXIV.2204.10593},
64
+ url = {https://arxiv.org/abs/2204.10593},
65
+ publisher = {arXiv},
66
+ year = {2022},
67
+ copyright = {Creative Commons Attribution Non Commercial Share Alike 4.0 International}
68
+ }
69
+ ```
70
+ ```
71
+ @article{beilharz19,
72
+ title = {LibriVoxDeEn: A Corpus for German-to-English Speech Translation and Speech Recognition},
73
+ author = {Beilharz, Benjamin and Sun, Xin and Karimova, Sariya and Riezler, Stefan},
74
+ journal = {Proceedings of the Language Resources and Evaluation Conference},
75
+ journal-abbrev = {LREC},
76
+ year = {2020},
77
+ city = {Marseille, France},
78
+ url = {https://arxiv.org/pdf/1910.07924.pdf}
79
+ }
80
+ ```
81
+
82
+