o
    ik                     @   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( dd	l)m*Z*m+Z+m,Z, e-ed
re-edre.d e/d d9ZAdS zd dl Z d dl0Z0e j12 d  Z3dZ4e jdk re05dde3 d de4 d d de4 d e6 e jdd dkre05de3 dde4 d d d d de4 d e6 de7fd d!Z8d"d# Z9d$Z:d%Z;d&Z<d'Z=e9e:\Z>Z?e>rDe>e<k rIe05d(e4 d)e: d* e? d+ e4 d,e: d- d.e; d/e= d d0 d1 d2e: d3 e4 d4 d5 d6e; d7 e: d e6 W d9ZAdS W d9ZAdS W d9ZAdS  e@y_   e05d8 Y d9ZAd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VoiceVoiceCloneParamsVoiceSelectionParams)SynthesizeLongAudioMetadataSynthesizeLongAudioRequestSynthesizeLongAudioResponsecheck_python_versioncheck_dependency_versionszgoogle.cloud.texttospeech_v1)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 r3   Y/home/ubuntu/.local/lib/python3.10/site-packages/google/cloud/texttospeech_v1/__init__.pyparse_version_to_tuplee   s   	r5   c                 C   s2   zt | }t|}||fW S  ty   Y dS w )N)Nz--)r   versionr5   	Exception)dependency_namer+   parsed_versionr3   r3   r4   _get_versiony   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!   )Bsysgoogle.api_coreapi_coregoogle.cloud.texttospeech_v1r   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!   types.cloud_tts_lrsr"   r#   r$   hasattrr%   r&   warningsr6   r,   _py_version_str_package_labelwarnFutureWarningstrr5   r:   _dependency_package_next_supported_version_next_supported_version_tuple_recommendation_version_used_version_used_stringr7   __all__r3   r3   r3   r4   <module>   s   
d

Z










	

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