| New file |
| | |
| | | <!DOCTYPE html>
|
| | | <html>
|
| | | <head>
|
| | | <meta charset="utf-8" />
|
| | | <meta name="viewport" content="width=device-width,initial-scale=1" />
|
| | | <title>语音识别</title>
|
| | | |
| | | </head>
|
| | | <body style="margin-left: 3%">
|
| | | <script src="recorder-core.js" charset="UTF-8"></script>
|
| | | <script src="wav.js" charset="UTF-8"></script>
|
| | | <script src="pcm.js" charset="UTF-8"></script>
|
| | |
|
| | | |
| | |
|
| | | <h1>FunASR Demo</h1>
|
| | | <div class="div_class_topArea">
|
| | |
|
| | | <div class="div_class_recordControl">
|
| | | asr服务器地址(必填):
|
| | | <br>
|
| | | <input id="wssip" type="text" style=" width: 100%;height:100%" value="wss://127.0.0.1:1095/"/>
|
| | | <br>
|
| | | <br>
|
| | | <div style="border:2px solid #ccc;">
|
| | | 选择asr模型模式:<br/>
|
| | | <label><input name="asr_mode" type="radio" value="2pass" checked="true"/>2pass </label>
|
| | | <label><input name="asr_mode" type="radio" value="online" />online </label>
|
| | | <label><input name="asr_mode" type="radio" value="offline" />offline </label> |
| | | </div>
|
| | | <br>
|
| | | 语音识别结果显示:
|
| | | <br>
|
| | | |
| | | <textarea rows="10" id="varArea" readonly="true" style=" width: 100%;height:100%" ></textarea>
|
| | | <br>
|
| | | <div id="info_div">请点击开始</div>
|
| | | <div class="div_class_buttons">
|
| | | <button id="btnStart">开始</button>
|
| | | <button id="btnStop">停止</button>
|
| | | |
| | | </div>
|
| | | |
| | | <audio id="audio_record" type="audio/wav" controls style="margin-top: 12px; width: 100%;"></audio>
|
| | | </div>
|
| | | </div>
|
| | |
|
| | | <script src="wsconnecter.js" charset="utf-8"></script>
|
| | | <script src="main.js" charset="utf-8"></script>
|
| | | |
| | |
|
| | | |
| | | |
| | | </body>
|
| | | </html>
|