@classmethod
def from_service_account_file(cls, filename, *args, **kwargs):
    'Creates an instance of this client using the provided credentials\n        file.\n\n        Args:\n            filename (str): The path to the service account private key json\n                file.\n            args: Additional arguments to pass to the constructor.\n            kwargs: Additional arguments to pass to the constructor.\n\n        Returns:\n            TextToSpeechClient: The constructed client.\n        '
    credentials = service_account.Credentials.from_service_account_file(filename)
    kwargs['credentials'] = credentials
    return cls(*args, **kwargs)
Creates an instance of this client using the provided credentials
file.

Args:
    filename (str): The path to the service account private key json
        file.
    args: Additional arguments to pass to the constructor.
    kwargs: Additional arguments to pass to the constructor.

Returns:
    TextToSpeechClient: The constructed client.
@classmethod
def from_service_account_file(cls, filename, *args, **kwargs):
    'Creates an instance of this client using the provided credentials\n        file.\n\n        Args:\n            filename (str): The path to the service account private key json\n                file.\n            args: Additional arguments to pass to the constructor.\n            kwargs: Additional arguments to pass to the constructor.\n\n        Returns:\n            TextToSpeechClient: The constructed client.\n        '
    credentials = service_account.Credentials.from_service_account_file(filename)
    kwargs['credentials'] = credentials
    return cls(*args, **kwargs)