hiexam
microsoft · AI-102 · Q641 · code_completion · speech_to_text, speech_sdk, mp3_encoding

HOTSPOT - You are developing a streaming Speech to Text solution that will use the Speech SDK and MP3 encoding. You n…

HOTSPOT - You are developing a streaming Speech to Text solution that will use the Speech SDK and MP3 encoding. You need to develop a method to convert speech to text for streaming MP3 data. How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. //IMG//
audio_format = speechsdk.audio.{{slot1}}(compressed_stream_format=speechsdk.AudioStreamContainerFormat.MP3)

stream = speechsdk.audio.PullAudioInputStream(stream_format=audio_format, pull_stream_callback=callback)

speech_config = speechsdk.SpeechConfig("18c51a87-3a69-47a8-aedc-a54745f708a1", "westus")

audio_config = speechsdk.audio.AudioConfig(stream=stream)

recognizer = speechsdk.{{slot2}}(speech_config=speech_config, audio_config=audio_config)

result = recognizer.recognize_once()

text = result.text
Correct slot values

Answer hidden

Unlock AI-102

First 5 questions of every exam are free. Unlock the rest.

Includes
  • · All — questions
  • · Verified answers + AI explanations
  • · Spaced-repetition mistake notebook
  • · Phone, tablet, laptop sync

One-time payment. Doesn't auto-renew. · Already paid? Sign in