-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (59 loc) · 2.35 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.0-beta1/css/bootstrap.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-dark-5@1.1.3/dist/css/bootstrap-nightfall.min.css" rel="stylesheet" media="(prefers-color-scheme: dark)">
<style>
textarea{
width:100%;
height:70px;
}
#output{
height: 200px
}
</style>
</head>
<body>
<div id="app" class="container">
<h1>Tacotron 2 - Transcriptor</h1>
<br>
Add row <input type="text" v-model="amount">
<button type="button" class="btn btn-primary" @click="addWavs">Add</button>
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">audio</th>
<th scope="col">text</th>
</tr>
</thead>
<tbody>
<tr v-for="(wav,index) in wavs">
<th scope="row">{{index+1}}</th>
<td>
<audio controls>
<source type="audio/wav" :src="'wavs/'+(index+1)+'.wav'">
</audio>
</td>
<td>
<textarea type="text" v-model="wavs[index]"></textarea>
</td>
</tr>
</tbody>
</table>
<textarea placeholder="output txt" id="output">{{outputTxt()}}</textarea>
<textarea placeholder="input txt" v-model="inputTxt" id="input"></textarea>
<button id="saveFile" type="button" class="btn btn-primary" @click="saveTxt()">Generate TXT</button>
<button type="button" class="btn btn-primary" @click="importTxt()">Import</button>
<br>
<a href="" id="download">Download TXT</a><br>
<a href="https://azure.microsoft.com/en-us/products/cognitive-services/speech-to-text/#overview">AUDIO TO TEXT</a>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.2.33/vue.global.min.js"></script>
<script src="main.js"></script>
</body>
</html>