17 lines
1.7 KiB
HTML
17 lines
1.7 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>AI Call · ASR 接入验证</title><link rel="stylesheet" href="/style.css"><script src="/app.js" defer></script></head>
|
|
<body><main>
|
|
<header><p class="eyebrow">AI CALL / 参数验证</p><h1>ASR 语音接入测试</h1><p>麦克风 → 16 kHz 单声道 PCM → ASR。此页面不是电话外呼,也不代表 MQ/OSS 已对接。</p></header>
|
|
<section aria-labelledby="settings"><h2 id="settings">连接参数</h2>
|
|
<label for="token">服务访问令牌(仅保存在当前页面内存)</label><input id="token" type="password" autocomplete="off" placeholder="ASR_WEB_TOKEN,不是供应商 API Key">
|
|
<button id="load" type="button">读取可用模型</button>
|
|
<label for="model">ASR 模型</label><select id="model"><option value="">请先读取模型</option></select>
|
|
<p class="note">供应商密钥与上游地址只在服务端配置。使用 HTTPS 或 localhost;不要关闭浏览器安全机制。</p>
|
|
<div class="actions"><button id="start" type="button" disabled>连接并开始识别</button><button id="finish" type="button" disabled>结束本轮</button><button id="cancel" type="button" disabled>取消连接</button></div>
|
|
<p id="status" role="status" aria-live="polite">未连接</p><p id="audio">音频:未采集</p>
|
|
</section>
|
|
<section aria-labelledby="results"><h2 id="results">识别结果</h2><p id="partial" aria-live="polite">等待语音…</p><div id="finals" aria-label="最终识别文字"></div></section>
|
|
<section><h2>尚未启用</h2><p>LLM / TTS:等待用户新规范,未沿用调研仓库实现,也不会自动发起相关请求。</p></section>
|
|
</main></body></html>
|