Skip to main content
100%

Falcon API with Azure SR

✓ Published0🌍 Public
CCheckroth
Last edited Aug 19, 2019
Created on Aug 19, 2019

This example shows a Falcon web API endpoint that transcribes speech from an uploaded audio file using Azure’s Speech SDK. It receives audio bytes in a POST request, streams them through a custom `BytesIOPullAudioInputStream` into `PullAudioInputStream`, and configures a `SpeechRecognizer` with credentials from environment variables. The handler connects event callbacks for session stop and recognition results, then returns the recognized JSON or error details as HTTP responses. The code relies on Falcon’s routing and request/response objects, alongside Azure’s `speechsdk` recognition and audio configuration classes.

AI-generated description

Similar vizzes