Speak voice, save to temporary audio file, playback that file over TTS?

Has anyone managed to do something similar?

I have TTS configured using: GitHub - s-knibbs/snapcast-ha-player: Home Assistant custom integration to enable TTS playback through a snapcast server

Basically I can play any HA local audio file, so I thought of just saving preset mp3 files to talk with my dog, but then I realized it would be way better if I could somehow speak whatever I want to my phone or browser, have that audio saved to a temporary mp3 file, and then have that file played back over TTS.