I'm trying to use the Google Speech API using PHP client library. Following the documentation I have created the service key, copied it to the vm where my application sits and set the GOOGLE_APPLICATION_CREDENTIALS env variable. However when I try to use the service, I'm getting an error saying the credentials file does not exist, even though I can access the file and it's contents by copying the exact same path as shown in the error message.
So to sum it up, the env variable is being correctly set, the path it's being set to is correct, but for some reason the service can't see the file. Any ideas please?