o
    i                     @   s  d dl Z d dlmZ d dlmZ ejZe jdkrd dlm	Z	 nd dl
Z	ddlmZmZ ddlmZmZ ddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z) dd	l*m+Z+m,Z,m-Z- e.ed
re.edre/d e0d d9ZBdS zd dl Z d dl1Z1e j23 d  Z4dZ5e jdk re16dde4 d de5 d d de5 d e7 e jdd dkre16de4 dde5 d d d d de5 d e7 de8fd d!Z9d"d# Z:d$Z;d%Z<d&Z=d'Z>e:e;\Z?Z@e?rFe?e=k rKe16d(e5 d)e; d* e@ d+ e5 d,e; d- d.e< d/e> d d0 d1 d2e; d3 e5 d4 d5 d6e< d7 e; d e7 W d9ZBdS W d9ZBdS W d9ZBdS  eAya   e16d8 Y d9ZBdS w ):    N)gapic_version)      )metadata   )TextToSpeechAsyncClientTextToSpeechClient)*TextToSpeechLongAudioSynthesizeAsyncClient%TextToSpeechLongAudioSynthesizeClient)AdvancedVoiceOptionsAudioConfigAudioEncodingCustomPronunciationParamsCustomPronunciationsCustomVoiceParamsListVoicesRequestListVoicesResponseMultiSpeakerMarkupMultispeakerPrebuiltVoiceMultiSpeakerVoiceConfigSsmlVoiceGenderStreamingAudioConfigStreamingSynthesisInputStreamingSynthesizeConfigStreamingSynthesizeRequestStreamingSynthesizeResponseSynthesisInputSynthesizeSpeechRequestSynthesizeSpeechResponse	TimepointVoiceVoiceCloneParamsVoiceSelectionParams)SynthesizeLongAudioMetadataSynthesizeLongAudioRequestSynthesizeLongAudioResponsecheck_python_versioncheck_dependency_versionsz!google.cloud.texttospeech_v1beta1)r   	   z-You are using a non-supported Python version (z%).  Google will not post any further zupdates to z! supporting this Python version. z3Please upgrade to the latest Python version, or at z%least to Python 3.9, and then update .   z You are using a Python version (z) z%which Google will stop supporting in z in zJanuary 2026. Please z,upgrade to the latest Python version, or at z'least to Python 3.10, before then, and zthen update version_stringc              	   C   sH   g }|  dD ]}z	|t| W q ty   Y  t|S w t|S )a  Safely converts a semantic version string to a comparable tuple of integers.
            Example: "4.25.8" -> (4, 25, 8)
            Ignores non-numeric parts and handles common version formats.
            Args:
                version_string: Version string in the format "x.y.z" or "x.y.z<suffix>"
            Returns:
                Tuple of integers for the parsed version string.
            r*   )splitappendint
ValueErrortuple)r,   partspart r4   ^/home/ubuntu/.local/lib/python3.10/site-packages/google/cloud/texttospeech_v1beta1/__init__.pyparse_version_to_tuplef   s   	r6   c                 C   s2   zt | }t|}||fW S  ty   Y dS w )N)Nz--)r   versionr6   	Exception)dependency_namer,   parsed_versionr4   r4   r5   _get_versionz   s   

r;   zgoogle.protobufz4.25.8)      r   z (we recommend 6.x)zPackage z depends on z!, currently installed at version z. Future updates to z will require z at zversion z
 or higherz Please ensure z8that either (a) your Python environment doesn't pin the zversion of z, so that updates to z$ can require the higher version, or z:(b) you manually update your Python environment to use at zleast version z of zCould not determine the version of Python currently being used. To continue receiving updates for {_package_label}, ensure you are using a supported version of Python; see https://devguide.python.org/versions/)r   r	   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r#   r$   r%   r   r   r   r
   r   r    r!   r"   )Csysgoogle.api_coreapi_core!google.cloud.texttospeech_v1beta1r   package_version__version__version_info	importlibr   importlib_metadataservices.text_to_speechr   r   -services.text_to_speech_long_audio_synthesizer	   r
   types.cloud_ttsr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   types.cloud_tts_lrsr#   r$   r%   hasattrr&   r'   warningsr7   r-   _py_version_str_package_labelwarnFutureWarningstrr6   r;   _dependency_package_next_supported_version_next_supported_version_tuple_recommendation_version_used_version_used_stringr8   __all__r4   r4   r4   r5   <module>   s   
h

Z










	

