Skip to content

Conversation

@vyagh
Copy link
Contributor

@vyagh vyagh commented Jan 29, 2026

Description:
The meSpeak (TTS) library is currently disabled in activity.js (init code commented out), but its assets (116KB) and scripts were still listed in sw.js for caching.

This PR:

  1. Removes lib/voices/en/en.json, lib/mespeak.js, and config from sw.js to reduce the PWA cache size.
  2. Removes the dead initialization code from js/activity.js.
  3. Fixes a bug in js/logo.js: processSpeak was checking this.meSpeak !== null, but this.meSpeak is undefined (the real property is this._meSpeak). This would have caused a runtime error if a "Say" block was executed without the library loaded. Changed it to a safe check: if (this._meSpeak) ....

Validation:

  • npm test: Passed (ensures no regressions in blocks/logic).
  • Verified en.json is no longer cached in Application > Service Workers.

@github-actions
Copy link
Contributor

❌ Some Jest tests failed. Please check the logs and fix the issues before merging.

Failed Tests:

logo.test.js

@github-actions
Copy link
Contributor

❌ Some Jest tests failed. Please check the logs and fix the issues before merging.

Failed Tests:

logo.test.js

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant