@mux/ai 0.23.0 → 0.24.0
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.
- package/dist/{index-ePt2EMpB.d.ts → index-C5zhbQHK.d.ts} +8 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.js +59 -8
- package/dist/index.js.map +1 -1
- package/dist/primitives/index.js +2 -1
- package/dist/primitives/index.js.map +1 -1
- package/dist/workflows/index.d.ts +1 -1
- package/dist/workflows/index.js +58 -7
- package/dist/workflows/index.js.map +1 -1
- package/package.json +1 -1
package/dist/primitives/index.js
CHANGED
|
@@ -1483,7 +1483,8 @@ function getReliableLanguageCode(track, confidenceThreshold = LOW_CONFIDENCE_THR
|
|
|
1483
1483
|
return void 0;
|
|
1484
1484
|
if (isUndeterminedLanguageCode(track.language_code))
|
|
1485
1485
|
return void 0;
|
|
1486
|
-
|
|
1486
|
+
const { auto_language_confidence: autoLanguageConfidence } = track;
|
|
1487
|
+
if (autoLanguageConfidence !== void 0 && autoLanguageConfidence < confidenceThreshold) {
|
|
1487
1488
|
return void 0;
|
|
1488
1489
|
}
|
|
1489
1490
|
return track.language_code;
|