I have question about how to do programming for text to speech conversion using PWM pin in ARDUINO mega2560. Is there any existing library that may help me for this? Also can u help me with the compatible speakers that I can use in this.
Have you seen any examples using an arduino mega? Most text to speech libraries require far more memory and processing than is available. It might be possible, but tricky... Thinking back to the BBC micro
Do you want true text to speech, or only certain phrases?
Using the PWM isn't relevant to the T2S, text to speech will give you a buffer of output values. PWM is just one method of outputting these, it's DAC (digital to analogue conversion)