1. sign up with a voip provider that either terminates on your own pbx (e.g. asterisk/freepbx) or provides voicemail with emailed audio files. setup said service with voicemail.
2. setup your favorite container system and let systemd manage the service
3. create a container that watches for new audio voicemails , when it finds a new voicemail push it to your favorite cloud provider (s3, gcp bucket, azure etc) then trigger that providers speech-to-text function on the audio file in the related cloud storage. store the resulting text message and metadata in a db.
4. create another container that simply watches that db for new messages and push out alerts however you see fit. you have many paths here. i went with a web-based ui that pulled the data ala google voice.
3 years ago mozilla dropped deepspeech which changed everything - https://github.com/mozilla/DeepSpeech i have since replaced step 3 with my own deepspeech server. none of my data goes to any of the major privacy violators with this setup.