-
Notifications
You must be signed in to change notification settings - Fork 25
/
finetuneas.html
150 lines (139 loc) · 7.34 KB
/
finetuneas.html
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE HTML>
<html>
<head>
<title>finetuneas, an HTML interface for fine tuning aeneas sync maps</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="finetuneas.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
<!-- BEGIN container -->
<div class="container-fluid">
<!-- BEGIN directions -->
<div class="row b-header">
<div class="col-sm">
<p class="logo-text">finetuneas</p>
<!-- BEGIN player -->
<div id="player">
<audio controls id="audioplayer" src="" ontimeupdate="ticker(this.currentTime);"></audio>
<div id="sectionScrubberContainer">
<input id="playerprogress" type="range" step="0.01" value="0" min="0" max="100"/>
<span id="sectionTimer">0.000 / 0.000</span>
</div>
<span id="step1">
<label class="btn btn-secondary">
Select Audio <input type="file" id="audioinput" accept="audio/*" autocomplete="off" style="display: none;"/>
</label>
<span id="audioLabel"></span>
</span>
<span id="step2">
<label class="btn btn-secondary">
Select Syncmap (JSON, SRT or CSV) <input type="file" id="fileinput" accept=".json,.csv,.srt" autocomplete="off" style="display: none;"/>
</label>
<span id="jsonLabel"></span>
</span>
</div>
<!-- <div style="display:inline-block;">
<div class="progress" style="height: 5px;width:100px;">
</div>
</div> -->
<!-- <div id="audiocontrols">
<span id="audioticker"></span>
<a class="pause" id="stop">ıı</a>
</div> -->
<!-- END player -->
<!-- BEGIN loadbuttons -->
<!-- do not remove the next line -->
<!-- AENEAS_REPLACE_COMMENT_BEGIN -->
<!-- <div id="step1" style="display:inline;">
<p class="file-label">Audio:</p>
<input type="file" id="audioinput" accept="audio/*" autocomplete="off" style="width:250px;"/>
</div>
<div id="step2" style="display:inline;">
<p class="file-label">JSON:</p>
<input type="file" id="fileinput" accept=".json" autocomplete="off" style="width:250px;"/>
</div> -->
<!--<div id="fileinfo"></div> -->
<!-- AENEAS_REPLACE_COMMENT_END -->
<!-- do not remove the line above -->
<!-- END loadbuttons -->
<!-- BEGIN loadauto -->
<!-- do not remove the next line -->
<!-- AENEAS_REPLACE_UNCOMMENT_BEGIN
<div id="loadauto">
<button id="buttonAutoLoad">Got it, let's start!</button>
</div>
AENEAS_REPLACE_UNCOMMENT_END -->
<!-- do not remove the line above -->
<!-- END loadauto -->
</div>
</div>
<!-- END directions -->
<div class="row b-content">
<div class="col-3">
<div class="settings">
<label for="timeStep" style="display:block">Time increment (s):</label>
<input id="timeStep" type="number" min="0.010" step="0.010" value="0.100" style="display:block"/>
<label for="couple" style="display:block">Couple ends/starts:</label>
<button class="btn btn-primary btn-sm" id="couple" style="display:block">OFF</button>
<label for="buttonShowID" style="display:block">Show ID:</label>
<button class="btn btn-primary btn-sm" id="buttonShowID" style="display:block">OFF</button>
<label for="alignText" style="display:block">Text alignment:</label>
<select name="alignText" id="alignText" style="display:block">
<option value="left">Left</option>
<option value="center" selected="selected">Center</option>
<option value="right">Right</option>
<option value="justify">Justify</option>
</select>
<hr style="display:block"/>
<label for="playbackRate" style="display:block">Playback rate:</label>
<input id="playbackRate" type="number" min="0.1" max="4.0" step="0.1" value="1.0"
style="display:block"/>
<label for="buttonContinuousPlay">Continuous play:</label>
<button class="btn btn-primary btn-sm" id="buttonContinuousPlay" style="display:block">OFF</button>
<label for="buttonTimeFormat" style="display:block">Time format:</label>
<button class="btn btn-primary btn-sm" id="buttonTimeFormat" style="display:block">DECIMAL</button>
<label for="transitionOffset" style="display:block">Transition offset (s):</label>
<input id="transitionOffset" type="number" min="0" max="0.400" step="0.010" value="0.100"
style="display:block"/>
<label for="playWindowTime" style="display:block">Play window time (s):</label>
<input id="playWindowTime" type="number" min="0.1" max="100" step="0.10" value="2.0"
style="display:inline-block"/>
<button class="btn btn-primary btn-sm" id="buttonPlayWindow" style="display:inline-block">OFF</button>
<hr style="display:block"/>
<label for="outputFormat" style="display:block">Format:</label>
<select name="outputFormat" id="outputFormat" style="display:block">
<option value="csv">CSV</option>
<option value="json" selected="selected">JSON</option>
<option value="smil">SMIL</option>
<option value="srt">SRT</option>
<option value="ssv">SSV</option>
<option value="ttml">TTML</option>
<option value="tsv">TSV</option>
<option value="txt">TXT</option>
<option value="vtt">VTT</option>
<option value="xml">XML</option>
</select>
<input id="smilAudioRef" style="display:none" type="text" placeholder="audio_ref"/>
<input id="smilPageRef" style="display:none" type="text" placeholder="page_ref"/>
<button class="btn btn-primary btn-sm" id="download" style="display:block;margin-top:5px;margin-bottom:5px;">Save</button>
</div>
</div>
<div class="col-sm">
<div id="tb" class="tg"></div>
</div>
</div>
<!--<div class="footer b-footer">
<a href="https://github.com/ozdefir/finetuneas">finetuneas v1.0.2</a>
<br/>© 2015 Firat Özdemir
</div>-->
</div>
<!-- END container -->
<!-- BEGIN script -->
<script type="text/javascript" src="./finetuneas.js"></script>
<!-- END script -->
</body>
</html>