Exam AI-102 All QuestionsBrowse all questions from this exam
Question 162

DRAG DROP

-

You develop a Python app named App1 that performs speech-to-speech translation.

You need to configure App1 to translate English to German.

How should you complete the SpeechTranslationConfig object? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

    Correct Answer:

Discussion
jangotango

Pretty sure the second one is add_target_language

nastolgia

you do speech-to-speech. so your output should be voice, but proposed answer is incomplete. You also need to specify the type of voice for the synthesizer

upliftinghut

Agree, the requirement should changed to translate from speech to text, look at the function name

evangelist

The answer is WRONG! Correct Answer is below: def translate_speech_to_text(): translation_config = speechsdk.translation.SpeechTranslationConfig(subscription=speech_key, region=service_region) translation_config.speech_recognition_language = "en-US" translation_config.add_target_language("de")

HaraTadahisa

1. speech_recognition_language 2. add_target_language

omankoman

speech_recognition_language add_target_language

tdctdc

How is it even possible that ET provides us witth SO MANY wrong answers? I agree with rdemontis and jangotango, the second one is add_target_language

idcanymore

rdemontis should be getting paid

rdemontis

The second is wrong. it should be add_target_language https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-speech-translation?tabs=windows%2Cterminal&pivots=programming-language-python#translate-speech-from-a-microphone

jangotango

Proof - https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-speech-translation?tabs=windows%2Cterminal&pivots=programming-language-python

takaimomoGcup

It MUST be translation_config.speech_recognition_language = "en-US" and translation_config.add_target_language("de"). What exactly have you studied? Memorization is not enough.

Florin83

Similar with Question #40 (language is C#, not Python) I believe it's 1.translation_config.speech_recognition_value = "en-us" 2.translation_config.add_target_language("de") the second one is a method, not a property, thus the "add"

krzkrzkra

1. speech_recognition_language 2. add_target_language