coursecode 0.1.40 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38,8 +38,7 @@ import {
|
|
|
38
38
|
parseSlideNarration as parseSlideNarrationShared,
|
|
39
39
|
hashContent,
|
|
40
40
|
loadNarrationCache,
|
|
41
|
-
narrationCacheKey
|
|
42
|
-
VOICE_SETTING_KEYS as _SHARED_VOICE_KEYS
|
|
41
|
+
narrationCacheKey
|
|
43
42
|
} from './narration-parser.js';
|
|
44
43
|
|
|
45
44
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -54,9 +53,6 @@ const AUDIO_DIR = path.join(ASSETS_DIR, 'audio');
|
|
|
54
53
|
const SLIDES_DIR = path.join(COURSE_DIR, 'slides');
|
|
55
54
|
const CACHE_FILE = path.join(SCORM_TEMPLATE_DIR, '.narration-cache.json');
|
|
56
55
|
|
|
57
|
-
// Reserved keys for voice settings (not narration content) — re-exported from shared module
|
|
58
|
-
const VOICE_SETTING_KEYS = _SHARED_VOICE_KEYS;
|
|
59
|
-
|
|
60
56
|
// Parse command line arguments
|
|
61
57
|
const args = process.argv.slice(2);
|
|
62
58
|
const FORCE_REGENERATE = args.includes('--force');
|
|
@@ -382,7 +378,7 @@ Examples:
|
|
|
382
378
|
const contentHash = hashContent(text + JSON.stringify(settings));
|
|
383
379
|
|
|
384
380
|
// Cache key includes the item key for multi-key narration
|
|
385
|
-
const cacheKey =
|
|
381
|
+
const cacheKey = narrationCacheKey(source.src, key);
|
|
386
382
|
const cachedHash = cache[cacheKey];
|
|
387
383
|
const outputExists = fs.existsSync(outputPath);
|
|
388
384
|
|