View Source ExAzureSpeech.SpeechToText.Recognizer (ex_azure_speech v0.2.0)
Speech-to-Text Recognizer module, which provides the functionality to recognize speech from audio input.
Internals
The communication with the Speech-to-Text API is done through a WebSocket connection. For safety and isolation purposes, each recognition request is handled by a separate WebSocket connection. This is achieved by spawning a new WebSocket process thats supervised by a DynamicSupervisor, which will guarantee that the WebSocket connection is properly terminated after the recognition process is done.