语音转文字
在线实时流式与离线文件转写:在线模式麦克风边说边出字(可选浏览器云端识别或本地离线引擎),离线模式选择音频/视频文件本地解码、VAD 分段并保留时间轴,可导出 TXT/SRT;本地引擎默认用 VibeASR(LiteRT-LM 运行时,装载 litert-community 的单个 .litertlm —— VibeVoice-ASR-BitNet,约 1.98GB,音频前端 / 编码器 / LM / 提示模板全打在一个包里,能给出真实时间轴与说话人),也可切成 Whisper(onnxruntime-web,int8 约 76 MB,另有 tiny 约 43 MB,体积小得多但没有说话人),模型可联网下载(下载源按官方 huggingface.co → 镜像 hf-mirror.com → ModelScope 魔搭国内源依次尝试,连不上自动换下一个)、可选择文件夹(自动扫描并填好模型文件、同时作为下载落盘目标)、也可直接选择文件装载,支持 SHA-256 完整性校验与断网装载;下载过程显示总量/百分比、实时速度、预计剩余时间与当前文件,断线或 5xx 时自动重连(最多 5 次、指数退避)并从断点续传;采集链路支持 WebRTC 3A(回声消除/降噪/自动增益);在线模式带麦克风拾音的**实时波形与电平**(画的是 3A 之后真正送进引擎的那一轨音频,波形不动就是没采到声音),录音全程保留在页面里:点「停止」即按偏好**自动保存**(默认 WebM/Opus,也可只存 WAV 或两个都存,可关掉自动保存),也可随时手动下载 WAV / WebM 或用「录音另存为…」写到自己选的目录(Chrome/Edge,其余浏览器退化为下载);WAV 是送进引擎那一轨(24kHz 约 48KB/秒),WebM 是麦克风原始轨的 Opus 副本(约为 WAV 的 1/8),两者不是一个文件的两种格式。页面内置 WebGPU 环境监测:在下 2GB 之前就探测适配器型号、关键 limit(maxBufferSize、maxStorageBufferBindingSize)与可用 feature,与 WebGPU 规范最低 limit 对照判定实现是否合规,并算出显存是充足还是偏紧(靠流式分块),结论分「就绪 / 可用但有保留 / 装不了」三档;设备运行中丢失(驱动重置、显卡拔出)也会被监测并当场提示。环境就绪且模型已在本地缓存时会自动装载离线模型(不自动下载 1.98GB),开关可随时关掉。注意事项如实写在页面上:VibeASR 的模型有 1.9GB,需要 WebGPU(流式装载)才装得下,选 CPU 会因 wasm 堆上限而中止;音频编码器固定在 CPU(模型卡要求)。
它属于「AI 本地推理」分类:用 WASM 在浏览器本地跑模型:语音合成、本地对话(含酒馆玩法)可完全离线,音视频与聊天内容不上传服务器;语音转文字的离线引擎默认用 Whisper(int8 权重约 43/76 MB),可选的 LiteRT-LM 档位受上游运行时限制,详见工具页说明。
- 下载时会显示完整信息:已下载 / 总量、实时速度、预计剩余时间、当前文件与来源;**断线自动重连** —— 网络中断、连接被重置或源返回 5xx 时自动重试最多 5 次(指数退避),并带 Range 从断点继续,已下好的部分不会白下,状态栏会提示「连接中断,正在重连(第 n/5 次)」。
- 下载源顺序:官方 huggingface.co → 镜像 hf-mirror.com → ModelScope(魔搭,国内源),前一个连不上自动换下一个。实测(2026-10-22)hf-mirror.com 当下完全不可达、huggingface.co 在国内被墙,所以国内用户实际走 ModelScope(实测 4~10 MB/s,文件与官方仓库逐字节一致,SHA-256 同样通过)。模型设置里可手动指定「只用 ModelScope」。
- 在线实时流式:麦克风音频边录边送进识别引擎,文字随说话实时追加,适合会议记录、实时字幕。
- 离线文件转写:选择或拖入音频/视频文件,本地解码后自动语音分段、逐段转写并保留时间轴,可导出 TXT 与 SRT。
- 本地离线引擎有两套可选:**VibeASR(默认,LiteRT-LM 运行时 @litert-lm/core,单个 .litertlm 包约 1.98 GB,音频前端 / 编码器 / LM / tokenizer / 提示模板全在里面)**与 Whisper(onnxruntime-web,int8 约 76 MB,另有 tiny 约 43 MB)。两套共用同一套下载 / 缓存 / SHA-256 校验 / 断线重连逻辑,首次下载一次即可离线装载、音频不出浏览器。
- **下 2GB 之前就知道能不能跑**:页面里的「WebGPU 环境」面板会探测适配器型号、关键 limit(maxBufferSize、maxStorageBufferBindingSize)、可用 feature,并拿它们和 WebGPU 规范的最低 limit 对照 —— 低于下限就是实现不合规,「刚好卡在下限」会提示没有余量;同时按 maxBufferSize 和模型体积算出显存是「充足」还是「偏紧(靠流式分块)」。结论分「就绪 / 可用但有保留 / 装不了」三档,装不了时会直接建议改用 Whisper 运行时。设备运行中丢失(驱动重置、显卡被拔出)也会被监测到并当场提示。
- **自动装载**:打开页面就会做一次环境检测;环境就绪且模型**已在本地缓存**时,页面会自动把离线模型装上,不用点任何按钮。模型没下载过时**不会自动拉 1.98GB**(这么大的下载必须你确认),而是把「下载离线模型」按钮高亮并说明原因。开关在「WebGPU 环境」面板里,随时可以关掉。
- 重要限制(实测,不是推测):**VibeASR 需要 WebGPU 才能装载。** 模型有 1.9 GB,走 GPU 的流式装载(不进 wasm 堆)才装得下;选「CPU」会把它整份读进 wasm 堆,而 wasm32 的堆上限是 4 GB——实测直接中止(Aborted)。音频编码器固定在 CPU(模型卡要求)。若这台机器没有 WebGPU,VibeASR 就装不下,请改用 Whisper 运行时(体积小一个数量级)。
- 模型文件先查本地缓存,命中就直接装载;未命中才下载,下载后写入浏览器缓存,之后断网可用。
- 也支持「本地装载」:直接选择磁盘上的 .litertlm 文件(可拖入或点选),全程不联网,适合内网或已经提前下好模型的场景;Chrome/Edge 上可勾选「记住这个文件」,下次打开页面授权一次即可复用。
- 联网下载时可以指定「文件夹」,模型会直接写进你选的那个文件夹(支持断点续传),之后从该目录读取,不再重复下载;目录里的模型是普通文件,能拷走、也能提前用其它工具下载好放进去。
- 官方源 huggingface.co 在国内经常连不上:页面会自动改用镜像 hf-mirror.com 重试,模型地址是固定的,不需要你填。哪个源成功过会被记住,下次优先使用;也可以用「下载源」下拉锁定单一源,或点「恢复官方优先」清掉记忆。若两个源都连不上(被墙,或被网络中间层剥掉了跨域响应头),面板会在「下载源」下方给出这两个文件的直达下载链接——点开即由浏览器直接下载,放进「文件夹」就能装载。
- 本地 Whisper 的实测速度(int8 权重、浏览器 wasm、CPU 单线程):5.4 秒中文语音约 1.7 秒转完,实时率约 0.3。超过 30 秒的音频按 30 秒窗口切分(与 whisper.cpp / transformers.js 的 chunked 策略一致,窗口边界会丢一点上下文),所以长时间的连续实时识别仍建议用「浏览器云端」引擎,本地引擎更适合短音频与文件转写。
- 装载前会对每个模型文件做 SHA-256 校验:期望值优先取你手动填的哈希,其次是模型清单,再其次是官方仓库 API 与服务器 ETag。校验不通过会中止装载并给出「期望 vs 实际」的警告,你可以重新下载,也可以确认后选择忽略继续。拿不到期望值时会如实显示「未校验」,不会假装通过。
- 每条记录严格包含 who(对话人)、when(起止时间戳)、what(话术内容)三块:数据层统一规范化(缺结束时间自动补齐、空内容显式标注),渲染层每块固定三列,整列对齐。
- 瀑布流一块一行、垂直依次排列;导出同样保持三块——TXT 每行「说话人 | 00:03 - 00:07 | 内容」,SRT 带说话人,JSON 给出结构化字段。
- 采集链路可开启 WebRTC 3A:回声消除 AEC、噪声抑制 ANS、自动增益 AGC,并回读浏览器真正生效的参数。
- **先看波形,再怀疑识别**:点「开始实时识别」后,面板里的波形画的是 3A 处理**之后**、真正送进引擎的那一轨音频,不是另开一路的旁路 —— 波形是一条直线就说明没采到声音(浏览器没授权、麦克风被别的程序占用、或系统输入设备选错),跟识别快慢无关;电平给出实时 dBFS 与峰值保持,长时间贴到顶(显示「过载」)说明离麦太近或 AGC 推得太狠,识别率会明显下降,往后坐一点或关掉 AGC 再试。
- **录音不会丢,停止即落盘**:采集到的音频全程留在页面里,实时模式下就显示已录时长与体积(WAV 16bit 单声道,采样率与采集一致,约每秒 48 KB;WebM/Opus 约为它的 1/8)。点「停止」后按「录音保存」偏好自动落盘,默认存 WebM(可以只存 WAV 或两个都存),也可以关掉自动保存纯手动。任何时候都能「下载录音 WAV / WebM」,或用「录音另存为…」在 Chrome/Edge 上弹系统保存对话框、自己选目录与文件名;Firefox / Safari 没有这个接口,会退化成普通下载并当场说明。只有点「清空」才会丢弃录音。
- **WAV 和 WebM 不是一个文件的两种格式**:WAV 来自 AudioWorklet / ScriptProcessor 交给引擎的那一轨(3A 之后、按 AudioContext 采样率),用来复现识别结果;WebM 是 MediaRecorder 直接从麦克风流上录的 Opus 副本,用来留档与回听,录制中就能导出(部分播放器读不出此时长)。想复查"识别为什么错"就用 WAV,想留一份小的就用 WebM。
完全免费、无需注册;所有处理都在浏览器本地完成,文件不会上传到任何服务器。
相关关键词:语音转文字、AI 本地推理、asr、语音识别、实时流式、离线、vibevoice、litertlm、litert-lm、whisper、降噪、3a、字幕、hf-mirror、镜像、sha256、speech to text、在线工具、免费
- 打开工具:打开「语音转文字」页面,无需注册、无需安装任何软件。
- 准备输入:在线模式允许麦克风后直接说话,边说边出字,同时显示麦克风拾音的实时波形与电平(画的就是送进引擎的那一轨音频,波形不动说明没采到声音);录音全程留在页面里,点「停止」即按偏好自动保存(默认存 WebM/Opus,也可存 WAV 或两个都存),之后仍可手动下载或用「录音另存为…」写到指定位置。WAV 是送进引擎那一轨(24 kHz 约 48 KB/秒),WebM 是麦克风原始轨的 Opus 副本(约 WAV 的 1/8),两者不是一个文件的两种格式。离线模式选择音频或视频文件在本地解码转写。本地引擎默认用 VibeASR(.litertlm 约 1.98GB,需 WebGPU),也可切成 Whisper(int8 约 43/76 MB,纯 CPU)。页面会做 WebGPU 环境检测并如实报告当前链路是否可用。
- 填入内容:把内容粘贴进输入框,或把文件拖入页面;也可以点击「示例」先填入样例数据试一下。
- 设置选项并处理:按需调整页面上的选项,然后点击处理 / 转换 / 生成按钮。
- 获取结果:处理完全在浏览器本地完成,结果可直接复制或下载,文件不会上传到任何服务器。
- 在线模式和离线模式有什么区别?
- 在线模式是实时流式:一边采集麦克风一边出字,可选用本地 LiteRT-LM 引擎(断网可用)或浏览器云端识别服务(需联网,音频会发给浏览器厂商)。离线模式是文件转写:选择本地音频/视频文件后本地解码、本地推理,不依赖麦克风。
- 输出的 who / when / what 三块是怎么来的?
- 模型按 JSON 输出时(Start/End/Speaker/Content),说话人与时间戳由模型直接给出;如果模型只给了纯文本,就按句切分、用本段音频区间按字数比例分配时间,说话人标记为「说话人 1」。数据层会强制补齐缺失项:没有结束时间就按起始 + 2 秒兜底,内容为空显示「(无内容)」,因此每块必然三块齐全且顺序固定为 who → when → what。
- 实时流式是怎么做到「边说边出字」的?
- 按窗口分块流式:累积到设定窗口(默认 5 秒)或检测到说话停顿时,把这一段送进引擎,结果与上一段做重叠去重后追加。它不是逐 token 流式,但停顿即可出字,延迟就是窗口大小。
- 3A 是什么,为什么有些开关没生效?
- 3A 指 AEC 回声消除、ANS 噪声抑制、AGC 自动增益,由浏览器内置的 WebRTC 音频处理模块提供,本工具通过 getUserMedia 约束开关并回读 getSettings()。是否生效取决于浏览器与设备,面板会显示实际生效值;不支持的扩展项(人声隔离、AEC 模式)会自动跳过。
- 为什么第一次离线转写很慢?
- 首次需要下载一个 .litertlm 模型包(约 1.85 GB,音频前端 / 编码器 / LM 都在里面),页面会显示实时下载进度;下载完成后写入浏览器缓存,之后显示「已缓存(可离线使用)」并不再联网。
- 离线识别用的是什么引擎?
- 本地引擎默认走 **VibeASR(LiteRT-LM 运行时,@litert-lm/core)**:装载 litert-community 的单个 .litertlm(VibeVoice-ASR-BitNet,约 1.98 GB),音频前端、编码器、LM、分词器与提示模板全在包里,运行时自己解码并重采样到 24 kHz,转写结果带真实时间轴与说话人。也可以切成 **Whisper**(onnxruntime-web,int8 约 76 MB、tiny 约 43 MB)——体积小一个数量级,但只有文本、没有说话人与真实时间戳。两种 wasm 都由 npm run copy-ort-wasm / copy-litert-wasm 拷到站内自托管,不依赖 CDN。
- 浏览器跑近 2GB 模型会有问题吗?
- 有:建议 8 GB 以上内存的桌面浏览器,并保持页面在前台。选 GPU 时模型走流式装载(不会在 wasm 堆里再复制一份,峰值更低);选 CPU 时整个包会先读进 wasm 堆,内存峰值明显更高但更贴近模型卡的推荐配置(音频编码器必须留在 CPU)。
- 波形是一条直线 / 一直在「过载」,分别说明什么?
- 波形画的是 3A 处理之后、真正送进引擎的那一轨音频。一条直线 = 没采到声音:检查浏览器是否授权麦克风、系统输入设备是否选对、麦克风有没有被会议软件独占(关掉占用它的程序再重试)。一直「过载」= 输入电平贴顶被削波:离麦太近或 AGC 推得太狠,削波后的音频识别率会明显下降,往后坐一点或关掉 AGC。
- 麦克风录音能保存下来吗?
- 能,而且点「停止」就自动保存,不用再点按钮。采集到的音频全程留在页面里(实时中就显示已录时长与 WAV / WebM 体积),停止后波形冻结在最后一屏,录音仍然可用:按「录音保存」偏好自动落盘(默认 WebM,也可只存 WAV 或两个都存,还能关掉自动保存),也可以随时手动「下载录音 WAV / WebM」,或用「录音另存为…」—— Chrome / Edge 会弹系统保存对话框,自己选目录与文件名;Firefox / Safari 不支持该接口,会退化成普通下载并提示。WAV 是 16bit 单声道、采样率与采集一致(默认 24 kHz),约每秒 48 KB;WebM 是 Opus 压缩,约为它的 1/8。只有点「清空」才会丢弃。
- 自动保存的文件存到哪了?为什么会有两个?
- 自动保存走浏览器的默认下载目录(Chrome 可在「设置 → 下载内容」里查看或改),文件名形如 recording-20261028-0031.wav / .webm,按本次录音的开始时刻命名。选「两个都存」时会有 WAV 与 WebM 两份,因为它们的来源不同:WAV 是送进引擎那一轨(3A 之后、按采集采样率),WebM 是 MediaRecorder 从麦克风流上录的 Opus 副本。只想留一份就选 WebM(体积约 WAV 的 1/8)。一次下载两个文件时,Chrome 可能弹一次「是否允许下载多个文件」,点允许即可。
- 识别结果不准怎么办?
- 安静环境、距麦克风 20~40 厘米;开启 ANS 抑制底噪、AGC 拉齐音量;长音频分段处理;语言选择与实际语种一致时准确率更高。
Speech to Text
Live streaming and offline file transcription: in live mode the microphone transcribes as you speak (browser cloud recognition or the local offline engine), in file mode a local audio/video file is decoded, split by voice activity and transcribed with timestamps, exportable as TXT/SRT. The local engine runs **VibeASR by default** (the LiteRT-LM runtime loading a single litert-community `.litertlm` — VibeVoice-ASR-BitNet, ~1.98GB, with the audio front end, encoder, LM and prompt template bundled in one package, so it yields a real timeline and speaker labels) and can be switched to Whisper (onnxruntime-web, ~76MB int8, or ~43MB tiny — far smaller, but no speaker labels): the model can be downloaded (sources are tried in order: huggingface.co → hf-mirror.com → ModelScope, the China-hosted mirror, skipping whichever is unreachable), saved into a folder you pick (also used as the download target), or loaded from a file you choose, with SHA-256 verification and offline loading; downloads show total/percentage, live speed, estimated time left and the current file, and a dropped connection or 5xx triggers an automatic reconnect (up to 5 attempts, exponential backoff) that resumes from the last byte; the capture chain supports WebRTC 3A (echo cancellation / noise suppression / auto gain). Live mode shows a **real-time microphone waveform and level meter** (drawn from the exact audio fed to the engine after 3A — a flat line means nothing is being captured), and the recording is kept on the page: pressing "Stop" **auto-saves it per your preference** (WebM/Opus by default, or WAV only, or both; auto-save can be switched off), and you can always download WAV / WebM manually or use "Save recording as…" to write it into a folder you pick (Chrome/Edge; other browsers fall back to a download). WAV is the track fed to the engine (~48 KB/s at 24 kHz); WebM is an Opus copy of the raw mic track (~1/8 the size) — they are not two formats of one file. The page ships a WebGPU environment check: before you download 2 GB it probes the adapter, the key limits (maxBufferSize, maxStorageBufferBindingSize) and the available features, checks them against the WebGPU spec minimums to see whether the implementation is conformant, and works out whether VRAM is roomy or tight (streamed chunks) — the verdict has three levels (ready / usable with caveats / cannot load). Device loss during a run (driver reset, card unplugged) is monitored and reported immediately. When the environment is ready and the model is already cached, the offline model is loaded automatically (it never pulls 1.98 GB on its own) and the switch can be turned off. Stated honestly on the page: the VibeASR model is 1.9GB and needs WebGPU (streaming load) to fit — picking CPU aborts at the wasm heap limit; the audio encoder always stays on the CPU (model card requirement).
Belongs to “Local AI”: Run models locally in your browser with WASM: speech synthesis and local chat (with tavern features) work fully offline and never upload audio or conversations; the offline speech-to-text engine uses Whisper by default (int8 weights, ~43/76 MB), while the optional LiteRT-LM path is limited by the upstream runtime — see the tool page for details.
- While downloading you see downloaded / total, live speed, estimated time left, the current file and where it comes from; **automatic reconnect** — on a dropped connection, a reset or a 5xx the page retries up to 5 times (exponential backoff) and resumes with a Range request, so bytes already fetched are kept. The status line shows "Connection dropped — reconnecting (attempt n/5)".
- Source order: huggingface.co → hf-mirror.com → ModelScope (China-hosted), skipping whichever is unreachable. Measured on 2026-10-22: hf-mirror.com is entirely unreachable and huggingface.co is blocked in China, so China-based users actually pull from ModelScope (measured 4–10 MB/s, byte-identical to the official repo, SHA-256 still verified). You can force "ModelScope only" in the model settings.
- Live streaming: microphone audio is fed to the engine continuously and text is appended as you speak — good for meeting notes and live captions.
- File transcription: pick or drop an audio/video file; it is decoded locally, split by voice activity, transcribed segment by segment with timestamps, and exportable as TXT/SRT.
- Two offline runtimes are available: **VibeASR (default, the LiteRT-LM runtime @litert-lm/core, a single ~1.98 GB .litertlm bundle with the audio front end, encoder, LM, tokenizer and prompt template inside)** and Whisper (onnxruntime-web, ~76 MB int8, ~43 MB tiny). Both share the same download / cache / SHA-256 verification / reconnect pipeline: download once, then load offline with the audio never leaving the browser.
- **You know whether it can run before downloading 2 GB**: the "WebGPU environment" panel probes the adapter, the key limits (maxBufferSize, maxStorageBufferBindingSize) and the available features, then checks them against the WebGPU spec minimums — below the minimum means a non-conformant implementation, exactly at the minimum is flagged as having no headroom. It also works out from maxBufferSize and the model size whether VRAM is "roomy" or "tight (streamed chunks)". The verdict has three levels (ready / usable with caveats / cannot load), and a "cannot load" verdict points you at the Whisper runtime. Device loss during a run (driver reset, card unplugged) is monitored and reported immediately.
- **Auto-load**: the page runs an environment check on open; once the environment is ready and the model is **already cached locally**, it loads the offline model for you — no clicking. If the model has never been downloaded it will **not** pull 1.98 GB on its own (a download that large needs your say-so); instead the "Download offline model" button is highlighted and the reason is stated. The switch lives in the "WebGPU environment" panel.
- Important limitation (measured, not guessed): **VibeASR needs WebGPU to load.** The model is 1.9 GB, so it only fits via the GPU streaming load (never copied into the wasm heap); picking "CPU" reads it into the wasm heap whole, and the wasm32 heap caps at 4 GB — measured, it aborts outright. The audio encoder always stays on the CPU (model card requirement). On a machine without WebGPU VibeASR cannot load at all — use the Whisper runtime there (an order of magnitude smaller).
- Model files are looked up in local cache first and loaded if present; only missing files are downloaded, then cached, so later sessions work offline.
- You can also load the model locally: pick the .litertlm file from disk (or drag it in) and nothing touches the network — handy for intranets or when you already have the file. On Chrome/Edge, tick "Remember" to reuse it next visit after a single permission prompt.
- When downloading you can pick a folder: models are written straight into it (resumable) and read from there afterwards, so they are never downloaded twice. The files are plain files — copy them around, or drop in models fetched with another tool.
- huggingface.co is often unreachable from mainland China: downloads are retried through the hf-mirror.com mirror automatically, and the model URL is fixed so there is nothing to fill in. The source that worked is remembered and preferred next time; you can also lock one source in the dropdown, or click "Prefer official again" to clear that memory. If both sources fail (blocked, or a middlebox strips the cross-origin headers), the panel shows direct download links under "Download source" — clicking them downloads via the browser, and dropping the files into the folder is all it takes.
- Measured local Whisper speed (int8, browser wasm, single-threaded CPU): a 5.4 s Chinese clip transcribes in about 1.7 s — real-time factor ~0.3. Audio longer than 30 s is split into 30 s windows (same chunking strategy as whisper.cpp / transformers.js; a little context is lost at each boundary), so for long continuous live recognition the browser-cloud engine is still recommended; the local engine suits short clips and file transcription.
- Every model file is checked with SHA-256 before loading: the expected value comes from your manual entry, then the manifest, then the official repo API or the server ETag. A mismatch stops loading and shows an expected-vs-actual warning — re-download, or confirm and continue anyway. When no expected value is available it says "not checked" rather than pretending to pass.
- Every record strictly contains who (speaker), when (start–end timestamps) and what (the utterance): normalized in the data layer (missing end time is filled in, empty content is marked explicitly) and rendered as three aligned columns per block.
- The waterfall lists one block per line, vertically; exports keep the same three fields — TXT lines as "speaker | 00:03 - 00:07 | content", SRT with speaker prefix, JSON with structured fields.
- The capture chain supports WebRTC 3A: echo cancellation (AEC), noise suppression (ANS) and auto gain control (AGC), with the actually applied parameters read back from the browser.
- **Read the waveform before blaming recognition**: once you start live recognition, the panel draws the audio **after** 3A — the exact signal fed to the engine, not a side channel. A flat line means nothing is being captured (permission denied, the mic is held by another app, or the wrong input device is selected), which has nothing to do with recognition speed. The level meter shows live dBFS and a peak-hold value; sitting at the top (labelled "clipping") means you are too close to the mic or AGC is pushing too hard, and accuracy drops sharply — move back or turn AGC off.
- **The recording is never lost, and stopping saves it**: captured audio stays on the page, and while recording you see elapsed time and size (WAV is 16-bit mono at the capture sample rate, roughly 48 KB per second; WebM/Opus is about 1/8 of that). Pressing "Stop" auto-saves it per the "Save" preference — WebM by default, or WAV only, or both, and auto-save can be turned off entirely. You can always "Download WAV / WebM", or use "Save recording as…" — on Chrome/Edge that opens the system save dialog so you pick the folder and file name; Firefox and Safari lack that API and fall back to a plain download, which the page says out loud. Only "Clear" discards the recording.
- **WAV and WebM are not two formats of one file**: WAV comes from the AudioWorklet / ScriptProcessor track that feeds the engine (after 3A, at the AudioContext sample rate) and reproduces the recognition input; WebM is an Opus copy recorded straight off the mic stream by MediaRecorder, meant for archiving and playback, and it can be exported mid-recording (some players cannot read its duration). Use WAV to investigate "why was this transcribed wrong", and WebM when you just want a small copy.
Free, no sign-up; everything runs locally in your browser and files are never uploaded.
Keywords: Speech to Text, Local AI, speech to text, asr, speech recognition, live streaming, offline, vibevoice, litertlm, litert-lm, whisper, noise suppression, 3a, subtitles, hf-mirror, mirror, sha256, stt, online tool, free
- Open the tool:Open the “Speech to Text” page — no sign-up and nothing to install.
- Prepare the input:Online mode transcribes as you speak once the microphone is allowed, and shows a live waveform plus level meter (the exact audio fed to the engine — a flat line means nothing is being captured); the recording stays on the page and pressing "Stop" auto-saves it per your preference (WebM/Opus by default, or WAV, or both), and it can still be downloaded manually or written to a location you pick with "Save recording as…". WAV is the exact track fed to the engine (~48 KB/s at 24 kHz); WebM is an Opus copy of the raw mic track (~1/8 the size) — they are not two formats of one file. Offline mode decodes local audio or video files. The local engine defaults to VibeASR (~1.98 GB .litertlm, needs WebGPU) and can be switched to Whisper (~43/76 MB int8, pure CPU). The page runs a WebGPU environment check and honestly reports which path is usable.
- Provide the input:Paste your content into the input box or drop a file onto the page; you can also click “Sample” to try example data first.
- Adjust options and run:Adjust the options if needed, then click the process / convert / generate button.
- Get the result:Everything runs locally in your browser; copy or download the result — your files are never uploaded.
- What is the difference between live mode and file mode?
- Live mode streams: it transcribes while capturing the microphone, using either the local WASM engine (works offline) or the browser cloud service (needs network, audio is sent to the browser vendor). File mode transcribes a local audio/video file — fully local, no microphone needed.
- Where do the who / when / what fields come from?
- When the model outputs JSON (Start/End/Speaker/Content), speaker and timestamps come straight from the model; with plain text, sentences are split and the segment range is distributed by character count, with the speaker falling back to "Speaker 1". The data layer fills any gap: a missing end time becomes start + 2 s, empty content becomes "(no content)", so every block always has all three fields in the fixed order who → when → what.
- How does live streaming produce text while I speak?
- It uses chunked streaming: once the buffer reaches the window length (5 s by default) or a pause is detected, that slice is sent to the engine and the result is de-duplicated against the previous chunk before being appended. It is not token-level streaming, but text appears at every pause — latency equals the window size.
- What is 3A and why do some switches not take effect?
- 3A means AEC (echo cancellation), ANS (noise suppression) and AGC (auto gain), provided by the browser's built-in WebRTC audio module. This tool toggles them via getUserMedia constraints and reads the result back with getSettings(). Whether they apply depends on browser and device — the panel shows the effective values, and unsupported extras (voice isolation, AEC mode) are skipped automatically.
- Why is the first transcription slow?
- The first run downloads a single .litertlm bundle (~1.85 GB, holding the audio front-end, encoder and LM); the page shows live download progress. Once downloaded it is cached in the browser, after which it says "cached (offline ready)" and never goes online again.
- What engine does offline recognition use?
- The local engine defaults to **VibeASR (the LiteRT-LM runtime, @litert-lm/core)**: it loads a single litert-community `.litertlm` (VibeVoice-ASR-BitNet, ~1.98 GB) with the audio front end, encoder, LM, tokenizer and prompt template bundled in; the runtime decodes and resamples to 24 kHz itself, and the transcript carries a real timeline and speaker labels. You can also switch to **Whisper** (onnxruntime-web, ~76 MB int8, ~43 MB tiny) — an order of magnitude smaller, but text only, with no speakers and no real timestamps. Both wasm bundles are self-hosted via "npm run copy-ort-wasm" / "copy-litert-wasm" — no CDN dependency.
- Any caveats running a ~2 GB model in a browser?
- Yes: use a desktop browser with 8 GB+ RAM and keep the tab in the foreground. On GPU the model is streamed (never copied into the wasm heap, so the peak is lower); on CPU the whole bundle is read into the wasm heap first — a notably higher peak, but closer to the model card's recommended setup (the audio encoder must stay on CPU).
- The waveform is flat / always clipping — what does that mean?
- The waveform is the signal fed to the engine, after 3A. A flat line means no audio is coming in: check that the browser has microphone permission, that the right input device is selected, and that no meeting app is holding the mic exclusively (close it and retry). Constant clipping means the input is saturated: you are too close or AGC is pushing too hard, and clipped audio transcribes far worse — move back or turn AGC off.
- Can I keep the microphone recording?
- Yes — and pressing "Stop" auto-saves it, no extra click needed. Captured audio stays on the page (you see elapsed time and WAV / WebM size while recording); after stopping, the waveform freezes on the last screen and the recording is still available — it is saved per the "Save" preference (WebM by default, or WAV only, or both, and auto-save can be switched off), and you can always manually "Download WAV / WebM" or use "Save recording as…" — on Chrome/Edge that opens the system save dialog so you pick the folder and file name; Firefox and Safari lack that API and fall back to a plain download, which is stated. WAV is 16-bit mono at the capture sample rate (24 kHz by default), roughly 48 KB per second; WebM is Opus, about 1/8 of that. Only "Clear" discards it.
- Where do auto-saved files go, and why are there two?
- Auto-save goes to the browser download folder (Chrome: Settings → Downloads to check or change it), with names like recording-20261028-0031.wav / .webm, stamped with when the recording started. Choosing "Both" yields WAV and WebM because they come from different places: WAV is the track fed to the engine (after 3A, at the capture sample rate), WebM is an Opus copy recorded by MediaRecorder off the mic stream. Pick WebM alone (about 1/8 the size) if you only want one. When two files download at once, Chrome may ask once whether to allow multiple downloads — just allow it.
- What if the transcript is inaccurate?
- Use a quiet room and stay 20–40 cm from the mic; enable ANS for background noise and AGC for level; split long recordings; accuracy improves when the selected language matches what is spoken.