'How to put text and get audio discord.js like google translate?

Is there a way or a module on discord.js that allows you to say vocally some text?

I would need it to make a kind of voice log, a trivial example would be that when someone connects to a voice channel the bot says "$username has entered the voice channel".

Does anyone know how to do this? I would also accept a solution of the web type that I send and it returns a file that I then run, since it does not have to be instantaneous.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source