MAUIverse MAUIverse

Speech recognition with .NET MAUI

MAUI already has TextToSpeech.Default.SpeakAsync, but nothing for the opposite direction. Vladislav fills that gap with an ISpeechToText interface whose Listen method takes a culture, an IProgress<string> for intermediate results, and a cancellation token, and returns the final recognized text.

Each platform gets its own implementation. On Android, a SpeechRecognizer with a custom SpeechRecognitionListener handles the states, and a speech intent carries the language and partial-results settings. On iOS and MacCatalyst, it creates the recognizer, configures an audio engine, and reads results from the recognition task. A Windows version follows the same pattern. The article lists the permissions each platform needs: microphone and internet access in the Android manifest, microphone access in Info.plist, and the matching capabilities in Package.appxmanifest.

If you want voice input in your app and prefer to avoid a third-party SDK, this gives you a working base to build on. The code is on GitHub.

View Source →

← Back to Community Feed

}