
    9i                         S SK r S SKJrJr  S SKJr  S SKJr  S SKJ	r	  S SK
JrJr  S/r\	R                  " \R                  \R                   S9 " S	 S\5      5       rg)
    N)AnyDict)Models)Model)MODELS)
FrameworksTasksLauraCodecGenModel)module_namec                   Z   ^  \ rS rSrS\S\S\\\4   4U 4S jjrS\\\4   4S jrSr	U =r
$ )	r
      	model_dir
model_namemodel_configc                    > [         TU ]  " XU/UQ70 UD6  UU[        R                  R	                  X5      US.U l        g)zinitialize the info of model.

Args:
    model_dir (str): the model path.
    model_name (str): the itn model name from configuration.json
    model_config (Dict[str, Any]): the detail config about model from configuration.json
)model_workspacer   
model_pathr   N)super__init__ospathjoin	model_cfg)selfr   r   r   argskwargs	__class__s         g/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/modelscope/models/audio/tts/laura_codec.pyr   LauraCodecGenModel.__init__   sB     	NtNvN  )$'',,y=(	
    returnc                     U R                   $ )z
just return the model config

r   )r   s    r   forwardLauraCodecGenModel.forward&   s     ~~r    r#   )__name__
__module____qualname____firstlineno__strr   r   r   r$   __static_attributes____classcell__)r   s   @r   r
   r
      s?    
# 
3 
#CH~
*c3h  r    )r   typingr   r   modelscope.metainfor   modelscope.models.baser   modelscope.models.builderr   modelscope.utils.constantr   r	   __all__register_moduletext_to_speechlaura_codecr
    r    r   <module>r7      sV    
  & ( , 7
  ,,&:L:LM  Nr    