How to add Voice Transformer in our chat app?

As this title, it is similar to Twitter Space Voice Transformer.

I appreciate your help!