Hi @ganeyvim ,
If you use UIFlow to do this, you can try this block:
[image: 1628477476503-60f02e32-a5db-4554-b2a3-38f0936b42e6-image-resized.png]
And arduino code can refer here:
https://github.com/m5stack/M5Core2/blob/master/examples/Basics/speak/speak.ino