
    pik                     H    d dl Z d dlmZmZ g dZg dZdefdZd Zeez   Z	y)    N)dropping_class_supportdropping_support)CTCHypothesis
CTCDecoderCTCDecoderLMCTCDecoderLMStatectc_decoderdownload_pretrained_files)CUCTCDecoderCUCTCHypothesiscuda_ctc_decodernamec                    | t         v r"	 ddlm} t        ||       }|t               | <   |S | t        v rz	 ddlm} t        ||       }t        j                  |      s,t        |dd      r+t        j                  |j                        rt        |      }nt        |      }|t               | <   |S t        dt         d	|        # t        $ r}t	        d      |d }~ww xY w# t        $ r}t	        d      |d }~ww xY w)
N   )_ctc_decoderz\CTC Decoder suit requires flashlight-text package and optionally KenLM. Please install them.)_cuda_ctc_decoderzTTo use CUCTC decoder, please set BUILD_CUDA_CTC_DECODER=1 when building from source.__sphinx_mock__Fzmodule z has no attribute )_CTC_DECODERS r   	ExceptionRuntimeErrorgetattrglobals_CUDA_CTC_DECODERSr   AttributeErrorinspectisclass	__class__r   r   __name__)r   r   erritemr   	orig_items         d/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/torchaudio/models/decoder/__init__.py__getattr__r$      s   }	& |T*	$	#	#	+ -t4	??9% I0%8	 3 34))4D#I.D	$
78*,>tfE
FFC  	n	  	f	s.   C C 	CCC	C9(C44C9c                       t        t              S )N)sorted__all__     r#   __dir__r*   <   s    '?r)   )
r   !torchaudio._internal.module_utilsr   r   r   r   strr$   r*   r'   r(   r)   r#   <module>r-      s;     V %Gc %GP ,
,r)   