mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 05:11:20 -08:00
test(asr): [PKG-ASR-05] checkpoint local editor and adjacent core coverage
This commit is contained in:
1 parent
6d7b9292f8
commit
2cede66933
18 files changed
+10908
-240
No files matched your search
@@ -118,6 +118,10 @@ From the repository root:
|
||||
modes, verifies offline frozen reinstall and file hashes, exercises actual
|
||||
import/require exports, and rejects invalid uses. Historical declaration errors
|
||||
are explicit expectations and never counted as candidate success.
|
||||
- `yarn test:asr-demo`: actual localhost:8082 docs/Monaco/Run flow in Chromium
|
||||
and Firefox, served script hashes, local PCM statistics, stop/play and destroy.
|
||||
Requires a free port 8082; owns only its temporary dev server. The exact AdSense
|
||||
request is isolated in this test; recognition requests must remain absent.
|
||||
- `yarn dev artplayer-plugin-asr` and `yarn build artplayer-plugin-asr`: normal
|
||||
repository development and three-format production builds.
|
||||
|
||||
|
||||
@@ -46,6 +46,13 @@ known migration gaps and test commands.
|
||||
|
||||
[https://artplayer.org](https://artplayer.org/?libs=./uncompiled/artplayer-plugin-asr/index.js&example=asr)
|
||||
|
||||
For local verification without a recognition service, run
|
||||
`yarn dev artplayer-plugin-asr --no-open` in the repository and open the
|
||||
[local capture demo](http://localhost:8082/?libs=./uncompiled/artplayer-plugin-asr/index.js&example=asr.local).
|
||||
It displays PCM/WAV statistics and clearly labelled simulated subtitles, using
|
||||
the site's sample video. Stop ASR leaves playback running; pause/play resumes
|
||||
capture. The existing `asr` example remains the external-service example.
|
||||
|
||||
## License
|
||||
|
||||
MIT © Harvey Zhao
|
||||
Reference in new issue
Block a user