# Path: google/cloud/texttospeech_v1/types/cloud_tts.py
# class SsmlVoiceGender(proto.Enum):
# class AudioEncoding(proto.Enum):
# class ListVoicesRequest(proto.Message):
# class ListVoicesResponse(proto.Message):
# class Voice(proto.Message):
# class SynthesizeSpeechRequest(proto.Message):
# class SynthesisInput(proto.Message):
# class VoiceSelectionParams(proto.Message):
# class AudioConfig(proto.Message):
# class SynthesizeSpeechResponse(proto.Message):
#     SSML_VOICE_GENDER_UNSPECIFIED = 0
#     MALE = 1
#     FEMALE = 2
#     NEUTRAL = 3
#     AUDIO_ENCODING_UNSPECIFIED = 0
#     LINEAR16 = 1
#     MP3 = 2
#     OGG_OPUS = 3
#     MULAW = 5
#     ALAW = 6


import abc
import pkg_resources
import google.auth  # type: ignore
import google.api_core
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials  # type: ignore
from google.oauth2 import service_account  # type: ignore
from google.cloud.texttospeech_v1.types import cloud_tts
        ):
            credentials = credentials.with_always_use_jwt_access(True)

        # Save the credentials.
        self._credentials = credentials

    def _prep_wrapped_messages(self, client_info):
        # Precompute the wrapped methods.
        self._wrapped_methods = {
            self.list_voices: gapic_v1.method.wrap_method(
                self.list_voices, default_timeout=None, client_info=client_info,
            ),
            self.synthesize_speech: gapic_v1.method.wrap_method(
                self.synthesize_speech, default_timeout=None, client_info=client_info,
            ),
        }

    def close(self):
        """Closes resources associated with the transport.

       .. warning::
            Only call this method if the transport is NOT shared
            with other clients - this may cause errors in other clients!
        """
        raise NotImplementedError()

    @property
    def list_voices(
        self,
    ) -> Callable[

# Path: google/cloud/texttospeech_v1/types/cloud_tts.py
# class SsmlVoiceGender(proto.Enum):
# class AudioEncoding(proto.Enum):
# class ListVoicesRequest(proto.Message):
# class ListVoicesResponse(proto.Message):
# class Voice(proto.Message):
# class SynthesizeSpeechRequest(proto.Message):
# class SynthesisInput(proto.Message):
# class VoiceSelectionParams(proto.Message):
# class AudioConfig(proto.Message):
# class SynthesizeSpeechResponse(proto.Message):
#     SSML_VOICE_GENDER_UNSPECIFIED = 0
#     MALE = 1
#     FEMALE = 2
#     NEUTRAL = 3
#     AUDIO_ENCODING_UNSPECIFIED = 0
#     LINEAR16 = 1
#     MP3 = 2
#     OGG_OPUS = 3
#     MULAW = 5
#     ALAW = 6


# Path: google/cloud/texttospeech_v1/services/text_to_speech/transports/base.py
import abc
import pkg_resources
import google.auth  # type: ignore
import google.api_core
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials  # type: ignore
from google.oauth2 import service_account  # type: ignore
from google.cloud.texttospeech_v1.types import cloud_tts

        ):
            credentials = credentials.with_always_use_jwt_access(True)

        # Save the credentials.
        self._credentials = credentials

    def _prep_wrapped_messages(self, client_info):
        # Precompute the wrapped methods.
        self._wrapped_methods = {
            self.list_voices: gapic_v1.method.wrap_method(
                self.list_voices, default_timeout=None, client_info=client_info,
            ),
            self.synthesize_speech: gapic_v1.method.wrap_method(
                self.synthesize_speech, default_timeout=None, client_info=client_info,
            ),
        }

    def close(self):
        """Closes resources associated with the transport.

       .. warning::
            Only call this method if the transport is NOT shared
            with other clients - this may cause errors in other clients!
        """
        raise NotImplementedError()

    @property
    def list_voices(
        self,
    ) -> Callable[

        [cloud_tts.ListVoicesRequest],