Create an instance of TextToSpeechClient() and ApplicationDefaultCredentials ...

Hi, this might be occurring because you don’t have the proper composer package in your composer json file. You need to have the next package installed within your JSON..

{

“require”: {

“google/cloud-text-to-speech”: “^1.0”

}

}