@pompeii-labs/audio 0.2.1 → 0.2.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.
- package/dist/voice.js +0 -5
- package/dist/voice.mjs +0 -5
- package/package.json +1 -1
package/dist/voice.js
CHANGED
|
@@ -694,11 +694,6 @@ var DeepgramSTT = class extends MagmaFlowSpeechToText {
|
|
|
694
694
|
} else {
|
|
695
695
|
if (currentTurn) {
|
|
696
696
|
currentTurn.confidence = currentTurnConfidence / currentTurnWordCount;
|
|
697
|
-
if (currentTurn.confidence < 0.5) {
|
|
698
|
-
currentTurn.text = "[inaudible]";
|
|
699
|
-
} else if (currentTurn.confidence < 0.75) {
|
|
700
|
-
currentTurn.text = `[unclear, confidence=${currentTurn.confidence.toFixed(2)}] ${currentTurn.text}`;
|
|
701
|
-
}
|
|
702
697
|
turns.push(currentTurn);
|
|
703
698
|
}
|
|
704
699
|
currentTurn = { speaker, text: utterance, confidence: 0 };
|
package/dist/voice.mjs
CHANGED
|
@@ -688,11 +688,6 @@ var DeepgramSTT = class extends MagmaFlowSpeechToText {
|
|
|
688
688
|
} else {
|
|
689
689
|
if (currentTurn) {
|
|
690
690
|
currentTurn.confidence = currentTurnConfidence / currentTurnWordCount;
|
|
691
|
-
if (currentTurn.confidence < 0.5) {
|
|
692
|
-
currentTurn.text = "[inaudible]";
|
|
693
|
-
} else if (currentTurn.confidence < 0.75) {
|
|
694
|
-
currentTurn.text = `[unclear, confidence=${currentTurn.confidence.toFixed(2)}] ${currentTurn.text}`;
|
|
695
|
-
}
|
|
696
691
|
turns.push(currentTurn);
|
|
697
692
|
}
|
|
698
693
|
currentTurn = { speaker, text: utterance, confidence: 0 };
|