@mulingai-npm/redis 3.19.0 → 3.19.2
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.
|
@@ -96,7 +96,9 @@ class MulingstreamChunkManager {
|
|
|
96
96
|
sttProviders.forEach((p) => (stt[p.service] = { transcription: '', model: p.model, status: 'INIT' }));
|
|
97
97
|
const translation = {};
|
|
98
98
|
const tts = {};
|
|
99
|
-
|
|
99
|
+
// Use ISO codes (targetLanguages) for translation/tts keys, NOT short codes
|
|
100
|
+
// This ensures consistency throughout the pipeline - we can always derive short codes from ISO codes when needed
|
|
101
|
+
targetLanguages.forEach((l) => {
|
|
100
102
|
translation[l] = { translation: '', status: 'INIT' };
|
|
101
103
|
tts[l] = { ttsAudioPath: '', status: 'INIT', isEmitted: false };
|
|
102
104
|
});
|