exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 3 question 58 discussion

Actual exam question from Microsoft's AI-102
Question #: 58
Topic #: 3
[All AI-102 Questions]

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.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jangotango
Highly Voted 1 year, 3 months ago
Pretty sure the second one is add_target_language
upvoted 29 times
nastolgia
1 year ago
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
upvoted 3 times
upliftinghut
8 months, 2 weeks ago
Agree, the requirement should changed to translate from speech to text, look at the function name
upvoted 2 times
...
...
...
evangelist
Highly Voted 11 months, 1 week ago
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")
upvoted 17 times
...
Skyhawks
Most Recent 3 months ago
There is a distinction between speech-to-speech translation and speech-to-text-to-speech translation. Some questions refer natural language processing (NLP) and this simple mention changes the approach completely. Based on my experience, speech-to-speech translation requires both SpeechRecognitionLanguage and SpeechSynthesisLanguage. However, when performing speech-to-text-to-speech translation—where NLP is implicitly involved, since the speech is first converted to text before translation—you also need to specify the AddTargetLanguage. In this particular case, the answer would be: SpeechRecognitionLanguage and SpeechSynthesisLanguage because there is no mention to NLP.
upvoted 4 times
...
anto69
5 months ago
Repeated question
upvoted 1 times
...
krzkrzkra
5 months, 4 weeks ago
1. speech_recognition_language 2. add_target_language
upvoted 1 times
...
HaraTadahisa
6 months, 3 weeks ago
1. speech_recognition_language 2. add_target_language
upvoted 4 times
...
omankoman
7 months, 2 weeks ago
speech_recognition_language add_target_language
upvoted 4 times
...
takaimomoGcup
7 months, 3 weeks ago
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.
upvoted 2 times
...
Florin83
11 months, 2 weeks ago
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"
upvoted 2 times
...
tdctdc
1 year, 1 month ago
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
upvoted 3 times
idcanymore
11 months ago
rdemontis should be getting paid
upvoted 2 times
...
...
rdemontis
1 year, 2 months ago
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
upvoted 4 times
...
jangotango
1 year, 3 months ago
Proof - https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-speech-translation?tabs=windows%2Cterminal&pivots=programming-language-python
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago