Text to speech versions not working

Is there a simple API to call device sound system?? I’m getting fed up cuz I’m using capacitor and tried all Cordova plug ins npms etx
In my talking potato app
Cheers