Skip to content

Commit 3357f4e

Browse files
committed
Fix modalities mixup in Azure Translate
1 parent 426ed0c commit 3357f4e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

services/azure/src/translate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ impl Service for AzureTranslate {
127127
Event::StartDetected(_, _) => {}
128128
Event::EndDetected(_, _) => {}
129129
Event::Translating(_, text, _, _, _) => {
130-
if output_modalities.text {
130+
if output_modalities.interim_text {
131131
output.text(false, text, None, None)?;
132132
}
133133
}
134134
Event::Translated(_, text, _, _, _) => {
135-
if output_modalities.interim_text {
135+
if output_modalities.text {
136136
output.text(true, text, None, None)?;
137137
}
138138
}

0 commit comments

Comments
 (0)