-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
82 lines (72 loc) · 1.97 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
buildscript {
repositories {
exclusiveContent {
forRepository {
maven {
name 'DFKI-MLT'
url 'https://raw.githubusercontent.com/DFKI-MLT/Maven-Repository/main'
}
}
filter {
includeGroup 'de.dfki.lt.jtok'
}
}
}
}
plugins {
id 'de.undercouch.download' version '5.6.0'
id 'org.m2ci.msp.flaml' version '0.4.0'
id 'de.dfki.mary.voicebuilding-legacy'
}
group 'de.dfki.mary'
version '0.1.0-SNAPSHOT'
repositories {
mavenCentral()
}
configurations.configureEach {
resolutionStrategy {
force 'de.dfki.mary:marytts-lang-dsb:0.2.1'
}
}
marytts {
voice {
name = 'serbski-institut-dsb-juro'
gender = 'male'
language = 'dsb'
type = 'unit selection'
samplingRate = 16000
}
}
def downloadDataTask = tasks.register('downloadData') {
ext.flacFile = objects.fileProperty()
.convention(layout.buildDirectory.file('serbski-institut-dsb-data.flac'))
ext.yamlFile = objects.fileProperty()
.convention(layout.buildDirectory.file('serbski-institut-dsb-data.yaml'))
outputs.file flacFile
outputs.file yamlFile
doLast {
def baseUrl = 'https://github.com/marytts/serbski-institut-dsb-data/releases/download/v0.2.1'
download.run {
src([
"$baseUrl/serbski-institut-dsb-data.flac",
"$baseUrl/serbski-institut-dsb-data.yaml"
])
dest buildDir
overwrite false
}
}
}
flaml {
flacFile = downloadDataTask.get().flacFile
yamlFile = downloadDataTask.get().yamlFile
}
extractWavFiles {
destDir = layout.buildDirectory.dir('wavOrig')
}
wav {
srcDir = tasks.named('extractWavFiles').get().destDir
}
basenames {
textDir = tasks.named('extractTextFiles').get().destDir
labDir = tasks.named('extractLabFiles').get().destDir
}