A couple seconds? Which project does this?
I'm sure you could have used google
https://elevenlabs.io/app/voice-lab
https://app.resemble.ai/users/sign_in
https://github.com/neonbjb/tortoise-tts
https://coqui.ai/blog/tts/open_xtts
it was even possible 5 years ago