-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
433 lines (375 loc) · 18.8 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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
<html lang="en">
<head>
<title>Audio Samples</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link rel="shortcut icon" href="#">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<meta name="theme-color" content="#ffffff">
<style>
/* .logo {
margin-left: 5px;
}
.case {
font-weight: bold;
text-transform: capitalize;
}*/
body {
margin: 20;
}
#topBtn {
display: none;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
font-size: 18px;
border: none;
outline: none;
background-color: #555;
color: white;
cursor: pointer;
padding: 15px;
border-radius: 4px;
}
#topBtn:hover {
background-color: #3265C2;
}
/* table {
border-collapse: collapse;
}
th {
text-align: center;
background-color: #3265C2;
color: white;
height: 30px;
} */
/*td {
text-align: center;
}
tr {
border-bottom: 2px solid black;
} */
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
<button onclick="topFunction()" id="topBtn" title="Go to top">Top</button>
<!-- <div>
</div> -->
<!-- <div class="row">
</div> -->
<div class = "container-fluid">
<div class="row">
<img src="./img/logo_combination.png" style="width: 35em;">
</div>
<div class="row">
<h3>Audio Samples</h3>
<p>
This is the sample page for the paper <em>'Evaluation of BLE-based Audio Broadcasting Under Probabilistic Interference'</em>, published in Computer Communications (Elsevier).<br />
The goal of these samples is to provide a reader with examples illustrating the variable listening experience that is expected from audio samples that have a PESQ score either in zone A, B or C.
<!-- Reference: <br/>
<code>@article{}</code>
<br/> -->
<br />
<br />
Before encoding, all samples have been rescaled to -26 dB, to provide a more streamlined listening experience over all degraded audio samples.<br />
<br />
Each row presented in the table below contains every Packet Loss Concealment (PLC) technique for a single experiment (i.e. same packet loss rate and pattern) on either the male or female audio file. The experiment that is presented in a single row is based on one of the associated PLC techniques leading to a PESQ score in zone A, B or C. The PESQ score of the cell containing the PLC technique on which the current row's experiment selection is based, is indicated in <strong style="color: teal;">bold green</strong>.
<br />
<br />
The presented PLC techniques are:
</p>
<ul style="margin-left: 50px;">
<li><strong>Zero Filling PLC</strong>: Filling up lost frames with all zeroes.</li>
<li><strong>Repeat Previous PLC</strong>: Replacing lost frame(s) with the last correctly received frame.</li>
<li><strong>LC3 PLC</strong>: PLC algorithm based on repeating the last correctly received frame but applying random sign scrambling on it too.</li>
<li><strong>LC3 Plus Sign Scrambling (SS) PLC</strong>: Employing the LC3 Plus version of a PLC algorithm based on sign scrambling for all lost frames. The decision to perform sign scrambling or not, is now also influenced by the current number of consecutive lost frames and whether a pitch is present in the last correctly received frame.</li>
<li><strong>LC3 Plus PLC</strong>: Complete LC3 Plus PLC feature set, i.e. deciding on one of three concealment approaches per loss burst based on several characteristics in the last correctly received frame(s).</li>
</ul>
<br />
<p>
The <strong>Baseline</strong> column contains the audio sample after decoding but without being subjected to any packet loss beforehand.
</p>
</div>
<div class="row">
<table class="table table-bordered">
<thead>
<tr>
<th>Zone</th>
<th>Audio File</th>
<th>Zero Filling PLC</th>
<th>Repeat Previous PLC</th>
<th>LC3 PLC</th>
<th>LC3 Plus SS PLC</th>
<th>LC3 Plus PLC</th>
<th>Baseline</th>
</tr>
</thead>
<tbody id="samples">
</tbody>
</table>
</div>
</div>
<script>
// Top button
//Get the button
var mybutton = document.getElementById("topBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function () { scrollFunction() };
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
function processData(csvText, isOriginal, dictionary)
{
var csvTextLines = csvText.split(/\r\n|\n/);
var headers = csvTextLines[0].split(',');
for (var i=1; i<csvTextLines.length; i++) {
var data = csvTextLines[i].split(',');
if(isOriginal)
{
if(data.length != 5)
{
continue;
}
if(data[2] == "32")
{
dictionary[data[0]] = data[3];
}
}
else
{
if(data.length != 9)
{
continue;
}
dictionary[data[0]][data[4]][data[5]][data[6]][data[1]] = data[7];
}
}
}
var maleAudioFile = "mic_M01_si453";
var femaleAudioFile = "mic_F01_sa2";
var audioFiles = [maleAudioFile, femaleAudioFile];
var scoreOriginalFilePath = "./originalAudio/scoresOutputScaledToMin26dB.csv";
var scoreLC3FilePath = "./LC3/Summary/scoresOutput.csv";
var scoreLC3PlusFilePath = "./LC3PlusPattern/Summary/scoresOutput.csv";
var scoreLC3PlusSSFilePath = "./LC3PlusPatternSS/Summary/scoresOutput.csv";
var scoreOriginalDict = {};
var scoreLC3Dict = {};
var scoreLC3PlusDict = {};
var scoreLC3PlusSSDict = {};
var BIGConfs = ["0", "1", "2", "3", "7"];
var PERs = ["0.3"];
var experimentAmount = 10;
for (let BIGConfInd in BIGConfs)
{
BIGConf = BIGConfs[BIGConfInd];
scoreLC3Dict[BIGConf] = {};
scoreLC3PlusDict[BIGConf] = {};
scoreLC3PlusSSDict[BIGConf] = {};
for (let PERInd in PERs)
{
PER = PERs[PERInd];
scoreLC3Dict[BIGConf][PER] = {};
scoreLC3PlusDict[BIGConf][PER] = {};
scoreLC3PlusSSDict[BIGConf][PER] = {};
for (let exp = 0; exp < experimentAmount; exp++)
{
scoreLC3Dict[BIGConf][PER][exp] = {};
scoreLC3PlusDict[BIGConf][PER][exp] = {};
scoreLC3PlusSSDict[BIGConf][PER][exp] = {};
scoreLC3Dict[BIGConf][PER][exp]["AllZeroesPLC"] = {};
scoreLC3Dict[BIGConf][PER][exp]["RepeatPreviousPLC"] = {};
scoreLC3Dict[BIGConf][PER][exp]["Pattern"] = {};
scoreLC3PlusDict[BIGConf][PER][exp]["Pattern"] = {};
scoreLC3PlusSSDict[BIGConf][PER][exp]["Pattern"] = {};
}
}
}
$.when(
$.ajax({
type: "GET",
url: scoreOriginalFilePath,
dataType: "text",
success: function(data) {processData(data, true, scoreOriginalDict);}
}),
$.ajax({
type: "GET",
url: scoreLC3FilePath,
dataType: "text",
success: function(data) {processData(data, false, scoreLC3Dict);}
}),
$.ajax({
type: "GET",
url: scoreLC3PlusFilePath,
dataType: "text",
success: function(data) {processData(data, false, scoreLC3PlusDict);}
}),
$.ajax({
type: "GET",
url: scoreLC3PlusSSFilePath,
dataType: "text",
success: function(data) {processData(data, false, scoreLC3PlusSSDict);}
})).done(function()
{
var maleExpPerPLCPerZone = [ // [BIGConf, PER, exp]
// Zone A
["2", "0.3", "5"], // zero filling
// ["3", "0.3", "8"], // repeat previous
["3", "0.3", "3"], // repeat previous
["2", "0.3", "7"], // LC3 PLC
// ["3", "0.3", "5"], // LC3 Plus SS
["2", "0.3", "4"], // LC3 Plus SS
// ["2", "0.3", "4"], // LC3 Plus
["2", "0.3", "6"], // LC3 Plus
// Zone B
["2", "0.3", "0"], // zero filling
["2", "0.3", "3"], // repeat previous
["2", "0.3", "1"], // LC3 PLC
// ["1", "0.3", "0"], // LC3 Plus SS
["1", "0.3", "3"], // LC3 Plus SS
["1", "0.3", "4"], // LC3 Plus
// Zone C
["1", "0.3", "5"], // zero filling
["0", "0.3", "0"], // repeat previous
["0", "0.3", "2"], // LC3 PLC
["1", "0.3", "1"], // LC3 Plus SS
["0", "0.3", "5"] // LC3 Plus
];
var femaleExpPerPLCPerZone = [ // [BIGConf, PER, exp]
// Zone A
// ["3", "0.3", "5"], // zero filling
["3", "0.3", "4"], // zero filling
["3", "0.3", "2"], // repeat previous
// ["3", "0.3", "9"], // LC3 PLC
["3", "0.3", "0"], // LC3 PLC
["3", "0.3", "1"], // LC3 Plus SS
// ["2", "0.3", "4"], // LC3 Plus
["2", "0.3", "1"], // LC3 Plus
// Zone B
// ["2", "0.3", "1"], // zero filling
["2", "0.3", "4"], // zero filling
["2", "0.3", "3"], // repeat previous
["2", "0.3", "0"], // LC3 PLC
["2", "0.3", "5"], // LC3 Plus SS
["1", "0.3", "1"], // LC3 Plus
// Zone C
["1", "0.3", "0"], // zero filling
["0", "0.3", "4"], // repeat previous
["0", "0.3", "0"], // LC3 PLC
["0", "0.3", "1"], // LC3 Plus SS
["0", "0.3", "2"] // LC3 Plus
];
var expsPerAudioFile = {};
expsPerAudioFile[maleAudioFile] = maleExpPerPLCPerZone;
expsPerAudioFile[femaleAudioFile] = femaleExpPerPLCPerZone;
var zoneInfo = [
"A",
"B",
"C"
];
var PLCMethods = [
"AllZeroesPLC",
"RepeatPreviousPLC",
"Pattern", // LC3
"Pattern", // LC3 Plus SS
"Pattern", // LC3 Plus
"Baseline"
];
var BIGConfToStr = {
"0" : "MandBIGNoDelay",
"1" : "MandBIG1RepNoDelay",
"2" : "MandBIG2RepNoDelay",
"3" : "MandBIG3RepNoDelay",
"7" : "MandBIG7RepNoDelay"
};
const elementWidth = '250';
var tbody = document.getElementById("samples");
for (let entry = 0; entry < maleExpPerPLCPerZone.length; entry++)
{
for (audioFileInd in audioFiles)
{
audioFile = audioFiles[audioFileInd];
var tr = document.createElement('tr');
tbody.appendChild(tr);
if (entry % 5 == 0 && audioFileInd == 0)
{
var tdZone = document.createElement('td');
tdZone.setAttribute("rowspan", 5 * audioFiles.length);
tdZone.innerHTML = zoneInfo[entry / 5];
tr.appendChild(tdZone);
}
var tdAudioFile = document.createElement('td');
if(audioFile.includes("_M"))
{
tdAudioFile.innerHTML = "Male";
}
else
{
tdAudioFile.innerHTML = "Female";
}
tr.appendChild(tdAudioFile);
expRow = expsPerAudioFile[audioFile][entry]
for (let PLCIndex = 0; PLCIndex < PLCMethods.length; PLCIndex++)
{
var td = document.createElement("td");
td.width = elementWidth;
tr.appendChild(td);
// Find out the audio file path and PESQ score
var pesq = 0;
var audioFilePath = "";
if (PLCIndex < 3)
{
pesq = scoreLC3Dict[expRow[0]][expRow[1]][expRow[2]][PLCMethods[PLCIndex]][audioFile];
audioFilePath = "./LC3/" + BIGConfToStr[expRow[0]] + "/PerBinary/" + audioFile + "_10ms_32000bps/" + expRow[1] + "/" + expRow[2] + "/" + audioFile + "_10ms_32000bps" + PLCMethods[PLCIndex] + ".wav";
}
else if (PLCIndex == 3)
{
pesq = scoreLC3PlusSSDict[expRow[0]][expRow[1]][expRow[2]][PLCMethods[PLCIndex]][audioFile];
audioFilePath = "./LC3PlusPatternSS/" + BIGConfToStr[expRow[0]] + "/PerBinary/" + audioFile + "_10ms_32000bps/" + expRow[1] + "/" + expRow[2] + "/" + audioFile + "_10ms_32000bps" + PLCMethods[PLCIndex] + ".wav";
}
else if (PLCIndex == 4)
{
pesq = scoreLC3PlusDict[expRow[0]][expRow[1]][expRow[2]][PLCMethods[PLCIndex]][audioFile];
audioFilePath = "./LC3PlusPattern/" + BIGConfToStr[expRow[0]] + "/PerBinary/" + audioFile + "_10ms_32000bps/" + expRow[1] + "/" + expRow[2] + "/" + audioFile + "_10ms_32000bps" + PLCMethods[PLCIndex] + ".wav";
}
else
{
pesq = scoreOriginalDict[audioFile];
audioFilePath = "./originalAudio/degradedWavFilesScaledToMin26dB/" + audioFile + "_10ms_32000bps_decoded.wav";
}
// Add the audio
var audio = document.createElement("audio");
audio.src = audioFilePath;
audio.controls = true;
audio.style.width = elementWidth;
td.appendChild(audio);
// Add the PESQ score
var textnode = document.createTextNode("PESQ: " + pesq);
if (PLCIndex < 5 && ((entry % 5) == PLCIndex)) // Current PLC method from which the score was taken related to the zone (excluding baseline)
{
var score = document.createElement('strong');
score.setAttribute("style", "color: teal");
score.appendChild(textnode);
}
else
{
var score = textnode;
}
td.appendChild(score);
}
}
}
}
);
</script>
</body>