https://support.duolingo.com/hc/en-us/articles/204642264-My-microphone-is-not-working-How-can-I-fix-it-
Looks like Duolingo uses Google services to recognize speech. My best guess would be to try the web browser version, otherwisee not sure if there's a way to use the app without g services (or at least Google speech services).