1. Introduction
Description: Easily integrate speech-to-text functionality into your AppInventor2 apps with the MicrosoftSTT extension. This powerful tool leverages Microsoft’s Speech-To-Text API to provide accurate and efficient audio transcription.
Latest Version: 1
Released: July 27, 2024
Last Updated: July 27, 2024
Permissions: android.permission.READ_MEDIA_AUDIO or android.permission.READ_EXTERNAL_STORAGE (depending upon Android version)
Sponsored by @Homie
2. Blocks

3. Documentation
| GotError | Event raised when error occursmethodName | texterrorMsg | text |
| GotTranscript | Event raised when audio was successfully transcriptedresultText | text |
| TranscriptAudio | Get text from audio (wav) fileaudioFile | textaudioLang | text |
| SubscriptionKey | Set Ocp Apim Subscription key Property Type : write-only Accepts : text |
| ResourceRegion | Set resource region Property Type : write-only Accepts : text |
Note: resultText parameter will be json text in case of error. Check if there is RecognitionStatus in result or not. If it is present then an error occurred in backend. In this case, its value can be NoMatch , InitialSilenceTimeout , BabbleTimeout or Error

Success is never returned in resultText
4. Usages
First set credentials.
You can set them from Designer property also.

Now either pick audio or provide its path directly. Extension only supports wav files.

only file paths are supported, so if you got an uri then convert into file path
Get transcripted text

GotError method delivers internal and HTTP request errors only
Read more about Microsoft SpeechToText API here:
Speech to text documentation – Tutorials, API Reference – Azure AI services -… 2
Supported Launguages:
Language support – Speech service – Azure AI services 1
5. Purchase Extension
Terms and Conditions
By purchasing extension you agree to Extension Buying Policy
Thank you.
Hope it helps!