STM32L475 - Microphone project from Mbed OS to FreeRTOS

Hi everyone
I am new to the development of mbed os based projects.
I need your help on a university project.
I own a stm32l475 board, and for the project I’m developing I’m using FreeRTOS. Specifically, I am trying to use the board microphone (MP34DT01) to create a voice-to-text translator.
Unfortunately there is not much online, but I managed to find this project:
But since I understand very little about mbed os, I can’t adapt it for FreeRTOS.
Could anyone help me?
I thank you very much
Good evening