-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpcm.html
More file actions
58 lines (55 loc) · 2.14 KB
/
pcm.html
File metadata and controls
58 lines (55 loc) · 2.14 KB
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
<!DOCTYPE html>
<!--根据BCP47文档规范, 声明语言为大陆简中普通话-->
<html lang="zh-cmn-Hans-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="./css/bootstrap.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="./css/style.css">
<title>PCM脉冲编码调制</title>
</head>
<body>
<header>
<nav class="navbar" style="background-color: #e3f2fd;">
<div class="container">
<a class="navbar-brand text-info" href="pcm.html">PCM脉冲编码调制</a>
</div>
</nav>
</header>
<main>
<div class="container">
<div class="alert alert-primary" role="alert">
<P>先点击"开始录音", 录音完成后点击"结束录音"</P>
<p>嵌入的js脚本默认以16位采样进行PCM编码</p>
<p>由于浏览器不能直接播放PCM文件, 所以在点击"播放录音"时, 会将PCM编码后的数据转为WAV格式并播放</p>
<p>同时自动下载此WAV文件</p>
</div>
<div class="text-center">
<div class="btn-group" role="group" aria-label="Web PCM">
<button type="button" class="btn btn-outline-primary" id="start">开始录音</button>
<button type="button" class="btn btn-outline-primary" id="end">结束录音</button>
<button type="button" class="btn btn-outline-primary" id="play">播放录音</button>
</div>
</div>
</div>
</main>
<footer class="bg-light">
<div class="container">
<nav class="nav">
<a class="nav-link text-secondary">
© 2019 周淦清 计科11704 201703407
</a>
</nav>
</div>
</footer>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script type="text/javascript" src="./js/jquery.min.js" charset="UTF-8"></script>
<!-- Custom JavaScript -->
<script type="text/javascript" src="./js/pcm.js" charset="UTF-8"></script>
</body>
</html>