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.textCorrect slot values