I have tried performing factory reset on the device, but the issue still exists. the voice comes when i reconnect to the bluetooth speaker again or headsets, but not otherwise.
Welcome to Android Central! Which phone? Do you mean the earpiece speaker, where you listen to a caller during normal phone operation? It was working normally prior to connecting the Bluetooth speaker? It might be coincidental--perhaps the earpiece speaker happened to fail at this very time.