aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ComparisonBox.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/ComparisonBox.tsx')
-rw-r--r--src/client/views/nodes/ComparisonBox.tsx7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/client/views/nodes/ComparisonBox.tsx b/src/client/views/nodes/ComparisonBox.tsx
index f7c478729..ef66c2b11 100644
--- a/src/client/views/nodes/ComparisonBox.tsx
+++ b/src/client/views/nodes/ComparisonBox.tsx
@@ -527,12 +527,8 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent<FieldViewProps>()
*/
askGPTPhonemes = async (phonemes: string) => {
const sentence = StrCast(RTFCast(DocCast(this.dataDoc[this.fieldKey + '_1']).text)?.Text);
- const phon = 'w ʌ ɪ z j ɔː ɹ n e ɪ m ';
- const phon2 = 'h ʌ ɛ r j ʌ t ʌ d eɪ';
const phon6 = 'huː ɑɹ juː tədeɪ';
- const phon3 = 'ʃ eɪ oʊ s i ʃ oʊ z b aɪ ð ə s iː ʃ oʊ';
const phon4 = 'kamo estas hɔi';
- const phon5 = 'la s e n a l';
const promptEng =
'Consider all possible phonetic transcriptions of the intended sentence "' +
sentence +
@@ -574,14 +570,11 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent<FieldViewProps>()
* @param e
*/
handleResult = (e: SpeechRecognitionEvent) => {
- let interimTranscript = '';
let finalTranscript = '';
for (let i = e.resultIndex; i < e.results.length; i++) {
const transcript = e.results[i][0].transcript;
if (e.results[i].isFinal) {
finalTranscript += transcript;
- } else {
- interimTranscript += transcript;
}
}
this._inputValue += finalTranscript;