o
    i0!                     @   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$ dd	l%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1 dd
l2m3Z3m4Z4m5Z5m6Z6 e7edre7edre8d e9d nzd dl Z d dl:Z:e j;< d  Z=dZ>e jdk re:?dde= d de> d d de> d e@ e jdd dkre:?de= dde> d d d d de> d e@ d eAfd!d"ZBd#d$ ZCd%ZDd&ZEd'ZFd(ZGeCeD\ZHZIeHrReHeFk rRe:?d)e> d*eD d+ eI d, e> d-eD d. d/eE d0eG d d1 d2 d3eD d4 e> d5 d6 d7eE d8 eD d e@ W n eJyb   e:?d9 Y nw d d:lKmLZL G d;d< d<eLeZd=ZMdS )>    N)gapic_version)      )metadata   )AdaptationAsyncClientAdaptationClient)SpeechAsyncClientSpeechClient)LongRunningRecognizeMetadataLongRunningRecognizeRequestLongRunningRecognizeResponseRecognitionAudioRecognitionConfigRecognitionMetadataRecognizeRequestRecognizeResponseSpeakerDiarizationConfigSpeechAdaptationInfoSpeechContextSpeechRecognitionAlternativeSpeechRecognitionResultStreamingRecognitionConfigStreamingRecognitionResultStreamingRecognizeRequestStreamingRecognizeResponseTranscriptOutputConfigWordInfo)CreateCustomClassRequestCreatePhraseSetRequestDeleteCustomClassRequestDeletePhraseSetRequestGetCustomClassRequestGetPhraseSetRequestListCustomClassesRequestListCustomClassesResponseListPhraseSetRequestListPhraseSetResponseUpdateCustomClassRequestUpdatePhraseSetRequest)CustomClass	PhraseSetSpeechAdaptationTranscriptNormalizationcheck_python_versioncheck_dependency_versionszgoogle.cloud.speech_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.
            r2   )splitappendint
ValueErrortuple)r4   partspart r<   S/home/ubuntu/.local/lib/python3.10/site-packages/google/cloud/speech_v1/__init__.pyparse_version_to_tuplen   s   	r>   c                 C   s2   zt | }t|}||fW S  ty   Y dS w )N)Nz--)r   versionr>   	Exception)dependency_namer4   parsed_versionr<   r<   r=   _get_version   s   

rC   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/)SpeechHelpersc                   @   s   e Zd ZejZdS )r
   N)__name__
__module____qualname__r
   __doc__r<   r<   r<   r=   r
      s    
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   r   r   r   r   r-   r   r(   r)   r   )Nsysgoogle.api_coreapi_coregoogle.cloud.speech_v1r   package_version__version__version_info	importlibr   importlib_metadataservices.adaptationr   r   services.speechr	   r
   types.cloud_speechr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   types.cloud_speech_adaptationr   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   types.resourcer*   r+   r,   r-   hasattrr.   r/   warningsr?   r5   _py_version_str_package_labelwarnFutureWarningstrr>   rC   _dependency_package_next_supported_version_next_supported_version_tuple_recommendation_version_used_version_used_stringr@   google.cloud.speech_v1.helpersrF   __all__r<   r<   r<   r=   <module>   s   
T8











	

		