-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
71 lines (64 loc) · 1.56 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
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-nsh'
language = 'ru'
region = 'RU'
gender = 'male'
type = 'unit selection'
description = 'A male 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_nsh_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'
}.each {
basenameList.writeLine it
}
}
}
}