-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
106 lines (99 loc) · 2.59 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
plugins {
id 'de.dfki.mary.voicebuilding-festvox' version '5.2.0'
id 'de.dfki.mary.voicebuilding-legacy' version '5.2.0'
}
group 'de.dfki.mary'
version '5.2'
voice {
name = 'ac-irina'
language = 'ru'
region = 'RU'
gender = 'female'
type = 'unit selection'
description = 'A female Russian unit selection voice'
license {
name = 'Creative Commons Attribution-ShareAlike 3.0 Unported'
shortName = 'CC-BY-SA'
url = 'http://mary.dfki.de/download/by-sa-3.0.html'
}
samplingRate = 16000
}
repositories {
ivy {
url 'http://mary.dfki.de/repo'
layout 'maven'
}
ivy {
url 'http://alphacephei.com/tts/'
layout 'pattern', {
artifact '[module]-[revision].[ext]'
}
}
}
dependencies {
data group: 'com.alphacephei', name: 'ac_ru_irina_clunits', version: '0.6', ext: 'tar.bz2'
}
def mapping = [
'pau' : '_',
'ssil': '_',
]
task simpleLab(type: Copy) {
from processDataResources
into "$project.buildDir/lab"
include '*.lab'
filter {
def label = it.trim().split(/\s+/, 3).last()
it.trim().replaceAll(label) {
mapping[it] ?: it
}
}
}
legacyInit {
dependsOn wav, simpleLab, text
def basenameListFile = file("$buildDir/basenames.lst")
outputs.files basenameListFile
doLast {
basenameListFile.withWriter { basenameList ->
fileTree(wav.destDir).collect {
it.name - '.wav'
}.minus([
'utt_000064',
'utt_000208',
'utt_000214',
'utt_000217',
'utt_000255',
'utt_000786',
'utt_001014',
'utt_001026',
'utt_001034',
'utt_001090',
'utt_001172',
'utt_001233',
'utt_001311',
'utt_001419',
'utt_001474',
'utt_001631',
'utt_001635',
'utt_001757',
'utt_001789',
'utt_001827',
'utt_001831',
'utt_001840',
'utt_001861',
'utt_001873',
'utt_001879',
'utt_001961',
'utt_002035',
'utt_002181',
'utt_002194',
'utt_002222',
'utt_002356',
'utt_002370',
'utt_002421',
'utt_002442'
]).each {
basenameList.writeLine it
}
}
}
}