forked from ken107/read-aloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-voices.html
113 lines (107 loc) · 3.69 KB
/
custom-voices.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Custom Voices</title>
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<style>
.card {
margin-top: 30px;
}
.card-body {
padding-bottom: .25rem;
}
.container {
min-width: 500px;
}
.dark-mode .card {
background-color: #363636;
}
.dark-mode .card-header {
background-color: #444;
}
</style>
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/aws-sdk.js"></script>
<script src="js/defaults.js"></script>
<script src="js/custom-voices.js"></script>
</head>
<body>
<div class="container">
<h3 class="mt-3">Enable Custom Voices</h3>
<div class="card">
<div class="card-header">
Enter AWS credentials to enable Amazon Polly voices.
</div>
<div class="card-body">
<form>
<div class="form-group">
<div class="input-group">
<input type="text" class="form-control" id="aws-access-key-id" placeholder="Access key ID" />
<input type="text" class="form-control" id="aws-secret-access-key" placeholder="Secret access key" />
<div class="input-group-append">
<button type="button" class="btn btn-primary" id="aws-save-button">Save</button>
</div>
</div>
</div>
<div class="form-group">
<img id="aws-progress" class="status progress" src="img/loading.gif" />
<div id="aws-success" class="status alert alert-success"></div>
<div id="aws-error" class="status alert alert-danger"></div>
</div>
</form>
</div>
</div>
<div class="card">
<div class="card-header">
Enter GCP API key to enable Google Wavenet voices.
</div>
<div class="card-body">
<form>
<div class="form-group">
<div class="input-group">
<input type="text" class="form-control" id="gcp-api-key" placeholder="API key" />
<div class="input-group-append">
<button type="button" class="btn btn-primary" id="gcp-save-button">Save</button>
</div>
</div>
</div>
<div class="form-group">
<img id="gcp-progress" class="status progress" src="img/loading.gif" />
<div id="gcp-success" class="status alert alert-success"></div>
<div id="gcp-error" class="status alert alert-danger"></div>
</div>
</form>
</div>
</div>
<div class="card">
<div class="card-header">
Enter IBM API key to enable IBM Watson voices.
</div>
<div class="card-body">
<form>
<div class="form-group">
<div class="input-group">
<input type="text" class="form-control" id="ibm-api-key" placeholder="API key" />
<input type="text" class="form-control" id="ibm-url" placeholder="URL" />
<div class="input-group-append">
<button type="button" class="btn btn-primary" id="ibm-save-button">Save</button>
</div>
</div>
</div>
<div class="form-group">
<img id="ibm-progress" class="status progress" src="img/loading.gif" />
<div id="ibm-success" class="status alert alert-success"></div>
<div id="ibm-error" class="status alert alert-danger"></div>
</div>
</form>
</div>
</div>
<div class="mt-4 mb-3">
<a href="options.html" class="btn btn-secondary">Back to Options</a>
</div>
</div>
</body>
</html>