+
    œ°³jp;  ã                   ó¶   € R t ^ RIt^ RIt^ RIHt ^RIHt ^RIHt ]! RR7      ] ! R R]4      4       4       t	]! RR7      ] ! R	 R
]4      4       4       t
RR
.tR# )zSpeechT5 model configurationN)Ústrict)ÚPreTrainedConfig)Úauto_docstringzmicrosoft/speecht5_asr)Ú
checkpointc                   óF  a a€ ] tR t^t oRtRtRRRR/t^QtRt^t	^t
RtR	t^tRt^tR	tR
tR	tR	tR	tR	tRtRtRtRtRtR
tRtRtR tRt^€t ^t!Rt"Rt#^
t$^t%Rt&^
t'^ t(^t)^ t*^t+^t,^Pt-^t.Rt/Rt0Rt1^t2Rt3^t4Rt5^t6Rt7Rt8^ t9Rt:^t;Rt<Rt=Rt>Rt?Rt@V 3R ltAR tBR tCV3R ltDRtEVtFV ;tG# )!ÚSpeechT5ConfigaÔ  
positional_dropout (`float`, *optional*, defaults to 0.1):
    The dropout probability for the text position encoding layers.
feat_extract_norm (`str`, *optional*, defaults to `"group"`):
    The norm to be applied to 1D convolutional layers in the speech encoder pre-net. One of `"group"` for group
    normalization of only the first 1D convolutional layer or `"layer"` for layer normalization of all 1D
    convolutional layers.
feat_proj_dropout (`float`, *optional*, defaults to 0.0):
    The dropout probability for output of the speech encoder pre-net.
feat_extract_activation (`str, `optional`, defaults to `"gelu"`):
    The non-linear activation function (function or string) in the 1D convolutional layers of the feature
    extractor. If string, `"gelu"`, `"relu"`, `"selu"` and `"gelu_new"` are supported.
conv_dim (`tuple[int]` or `list[int]`, *optional*, defaults to `(512, 512, 512, 512, 512, 512, 512)`):
    A tuple of integers defining the number of input and output channels of each 1D convolutional layer in the
    speech encoder pre-net. The length of *conv_dim* defines the number of 1D convolutional layers.
conv_stride (`tuple[int]` or `list[int]`, *optional*, defaults to `(5, 2, 2, 2, 2, 2, 2)`):
    A tuple of integers defining the stride of each 1D convolutional layer in the speech encoder pre-net. The
    length of *conv_stride* defines the number of convolutional layers and has to match the length of
    *conv_dim*.
conv_kernel (`tuple[int]` or `list[int]`, *optional*, defaults to `(10, 3, 3, 3, 3, 3, 3)`):
    A tuple of integers defining the kernel size of each 1D convolutional layer in the speech encoder pre-net.
    The length of *conv_kernel* defines the number of convolutional layers and has to match the length of
    *conv_dim*.
conv_bias (`bool`, *optional*, defaults to `False`):
    Whether the 1D convolutional layers have a bias.
num_conv_pos_embeddings (`int`, *optional*, defaults to 128):
    Number of convolutional positional embeddings. Defines the kernel size of 1D convolutional positional
    embeddings layer.
num_conv_pos_embedding_groups (`int`, *optional*, defaults to 16):
    Number of groups of 1D convolutional positional embeddings layer.
apply_spec_augment (`bool`, *optional*, defaults to `True`):
    Whether to apply *SpecAugment* data augmentation to the outputs of the speech encoder pre-net. For
    reference see [SpecAugment: A Simple Data Augmentation Method for Automatic Speech
    Recognition](https://huggingface.co/papers/1904.08779).
mask_time_prob (`float`, *optional*, defaults to 0.05):
    Percentage (between 0 and 1) of all feature vectors along the time axis which will be masked. The masking
    procedure generates ''mask_time_prob*len(time_axis)/mask_time_length'' independent masks over the axis. If
    reasoning from the probability of each feature vector to be chosen as the start of the vector span to be
    masked, *mask_time_prob* should be `prob_vector_start*mask_time_length`. Note that overlap may decrease the
    actual percentage of masked vectors. This is only relevant if `apply_spec_augment is True`.
mask_time_length (`int`, *optional*, defaults to 10):
    Length of vector span along the time axis.
mask_time_min_masks (`int`, *optional*, defaults to 2),:
    The minimum number of masks of length `mask_feature_length` generated along the time axis, each time step,
    irrespectively of `mask_feature_prob`. Only relevant if ''mask_time_prob*len(time_axis)/mask_time_length <
    mask_time_min_masks''
mask_feature_prob (`float`, *optional*, defaults to 0.0):
    Percentage (between 0 and 1) of all feature vectors along the feature axis which will be masked. The
    masking procedure generates ''mask_feature_prob*len(feature_axis)/mask_time_length'' independent masks over
    the axis. If reasoning from the probability of each feature vector to be chosen as the start of the vector
    span to be masked, *mask_feature_prob* should be `prob_vector_start*mask_feature_length`. Note that overlap
    may decrease the actual percentage of masked vectors. This is only relevant if `apply_spec_augment is
    True`.
mask_feature_length (`int`, *optional*, defaults to 10):
    Length of vector span along the feature axis.
mask_feature_min_masks (`int`, *optional*, defaults to 0),:
    The minimum number of masks of length `mask_feature_length` generated along the feature axis, each time
    step, irrespectively of `mask_feature_prob`. Only relevant if
    ''mask_feature_prob*len(feature_axis)/mask_feature_length < mask_feature_min_masks''
num_mel_bins (`int`, *optional*, defaults to 80):
    Number of mel features used per input features. Used by the speech decoder pre-net. Should correspond to
    the value used in the [`SpeechT5Processor`] class.
speech_decoder_prenet_layers (`int`, *optional*, defaults to 2):
    Number of layers in the speech decoder pre-net.
speech_decoder_prenet_units (`int`, *optional*, defaults to 256):
    Dimensionality of the layers in the speech decoder pre-net.
speech_decoder_prenet_dropout (`float`, *optional*, defaults to 0.5):
    The dropout probability for the speech decoder pre-net layers.
speaker_embedding_dim (`int`, *optional*, defaults to 512):
    Dimensionality of the *XVector* embedding vectors.
speech_decoder_postnet_layers (`int`, *optional*, defaults to 5):
    Number of layers in the speech decoder post-net.
speech_decoder_postnet_units (`int`, *optional*, defaults to 256):
    Dimensionality of the layers in the speech decoder post-net.
speech_decoder_postnet_kernel (`int`, *optional*, defaults to 5):
    Number of convolutional filter channels in the speech decoder post-net.
speech_decoder_postnet_dropout (`float`, *optional*, defaults to 0.5):
    The dropout probability for the speech decoder post-net layers.
reduction_factor (`int`, *optional*, defaults to 2):
    Spectrogram length reduction factor for the speech decoder inputs.
max_speech_positions (`int`, *optional*, defaults to 4000):
    The maximum sequence length of speech features that this model might ever be used with.
max_text_positions (`int`, *optional*, defaults to 450):
    The maximum sequence length of text features that this model might ever be used with.
encoder_max_relative_position (`int`, *optional*, defaults to 160):
    Maximum distance for relative position embedding in the encoder.
use_guided_attention_loss (`bool`, *optional*, defaults to `True`):
    Whether to apply guided attention loss while training the TTS model.
guided_attention_loss_num_heads (`int`, *optional*, defaults to 2):
    Number of attention heads the guided attention loss will be applied to. Use -1 to apply this loss to all
    attention heads.
guided_attention_loss_sigma (`float`, *optional*, defaults to 0.4):
    Standard deviation for guided attention loss.
guided_attention_loss_scale (`float`, *optional*, defaults to 10.0):
    Scaling coefficient for guided attention loss (also known as lambda).

Example:

```python
>>> from transformers import SpeechT5Model, SpeechT5Config

>>> # Initializing a "microsoft/speecht5_asr" style configuration
>>> configuration = SpeechT5Config()

>>> # Initializing a model (with random weights) from the "microsoft/speecht5_asr" style configuration
>>> model = SpeechT5Model(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```Úspeecht5Únum_attention_headsÚencoder_attention_headsÚnum_hidden_layersÚencoder_layersi   i   çš™™™™™¹?Úgelug{®Gáz”?gñhãˆµøä>FÚgroupg        é   Tgš™™™™™©?é   g      à?i   iÂ  gš™™™™™Ù?g      $@c                ó\   <€ \        V P                  4      V n        \        SV `  ! R/ VB  R # )N© )ÚlenÚconv_dimÚnum_feat_extract_layersÚsuperÚ__post_init__)ÚselfÚkwargsÚ	__class__s   &,€Út/home/luca/screen-checking/.venv/lib/python3.14/site-packages/transformers/models/speecht5/configuration_speecht5.pyr   ÚSpeechT5Config.__post_init__É   s$   ø€ Ü'*¨4¯=©=Ó'9ˆÔ$Ü‰ÒÑ' Ô'ó    c           
     óz  € \        V P                  4      V P                  8w  gI   \        V P                  4      V P                  8w  g%   \        V P                  4      V P                  8w  dO   \        R\        V P                  4       R\        V P                  4       R\        V P                  4       R24      hR# )zOPart of `@strict`-powered validation. Validates the architecture of the config.zºConfiguration for convolutional layers is incorrect. It is required that `len(config.conv_dim)` == `len(config.conv_stride)` == `len(config.conv_kernel)`, but is `len(config.conv_dim) = z`, `len(config.conv_stride) = z`, `len(config.conv_kernel) = z`.N)r   Úconv_strider   Úconv_kernelr   Ú
ValueError©r   s   &r   Úvalidate_architectureÚ$SpeechT5Config.validate_architectureÍ   s¦   € ô �×!Ñ!Ó" d×&BÑ&BÔBÜ�D×$Ñ$Ó%¨×)EÑ)EÔEÜ�D—M‘MÓ" d×&BÑ&BÔBäðä˜Ÿ™Ó&Ð'Ð'EÄcÈ$×JZÑJZÓF[ÐE\ð ]/Ü/2°4×3CÑ3CÓ/DÐ.EÀRðIóð ñ Cr   c                ób   € \         P                  ! \        P                  V P                  ^4      # )é   )Ú	functoolsÚreduceÚoperatorÚmulr    r#   s   &r   Úinputs_to_logits_ratioÚ%SpeechT5Config.inputs_to_logits_ratioÛ   s!   € Ü×Ò¤§¡¨d×.>Ñ.>ÀÓBÐBr   c                óv  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   S[S[ ,          ;R&   S[ ;R&   S[ ;R&   S[ ;R	&   S[S[ ,          ;R
&   S[;R&   S[S[ ,          ;R&   S[S[ ,          ;R&   S[S[ ,          ;R&   S[S[ ,          ;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[S[ ,          ;R&   S[;R&   S[S[ ,          S[S[ R3,          ,          ;R&   S[S[ ,          S[S[ R3,          ,          ;R&   S[S[ ,          S[S[ R3,          ,          ;R&   S[;R&   S[ ;R&   S[ ;R&   S[;R&   S[S[ ,          ;R&   S[ ;R&   S[ ;R &   S[S[ ,          ;R!&   S[ ;R"&   S[ ;R#&   S[ R$,          ;R%&   S[ R$,          ;R&&   S[ S[S[ ,          ,          R$,          ;R'&   S[ R$,          ;R(&   S[ ;R)&   S[ ;R*&   S[ ;R+&   S[S[ ,          ;R,&   S[ ;R-&   S[ ;R.&   S[ ;R/&   S[ ;R0&   S[S[ ,          ;R1&   S[ ;R2&   S[ ;R3&   S[ ;R4&   S[ ;R5&   S[;R6&   S[ ;R7&   S[;R8&   S[;R9&   S[;R:&   S[;R;&   S[;R<&   # )=é   Ú
vocab_sizeÚhidden_sizer   r
   Úencoder_ffn_dimÚencoder_layerdropÚdecoder_layersÚdecoder_ffn_dimÚdecoder_attention_headsÚdecoder_layerdropÚ
hidden_actÚpositional_dropoutÚhidden_dropoutÚattention_dropoutÚactivation_dropoutÚinitializer_rangeÚlayer_norm_epsÚscale_embeddingÚfeat_extract_normÚfeat_proj_dropoutÚfeat_extract_activation.r   r    r!   Ú	conv_biasÚnum_conv_pos_embeddingsÚnum_conv_pos_embedding_groupsÚapply_spec_augmentÚmask_time_probÚmask_time_lengthÚmask_time_min_masksÚmask_feature_probÚmask_feature_lengthÚmask_feature_min_masksNÚpad_token_idÚbos_token_idÚeos_token_idÚdecoder_start_token_idÚnum_mel_binsÚspeech_decoder_prenet_layersÚspeech_decoder_prenet_unitsÚspeech_decoder_prenet_dropoutÚspeaker_embedding_dimÚspeech_decoder_postnet_layersÚspeech_decoder_postnet_unitsÚspeech_decoder_postnet_kernelÚspeech_decoder_postnet_dropoutÚreduction_factorÚmax_speech_positionsÚmax_text_positionsÚencoder_max_relative_positionÚuse_guided_attention_lossÚguided_attention_loss_num_headsÚguided_attention_loss_sigmaÚguided_attention_loss_scaleÚ	use_cacheÚis_encoder_decoderÚtie_word_embeddings)ÚintÚfloatÚstrÚboolÚlistÚtuple)ÚformatÚ__classdict__s   "€r   Ú__annotate__ÚSpeechT5Config.__annotate__   sã  ø‡ ‚ ñj Ññk ñl Ññm ñn Ñño ñp !Ñ%ñq ñr Ññs ñt ™s•{Ñ(ñu ñv Ññw ñx Ññy ñz !Ñ%ñ{ ñ| ™s•{Ñ(ñ} ñ~ Ññ ñ@ ¡�Ñ)ñA ñB ™C•KÑ%ñC ñD ™s•{Ñ(ñE ñF ¡�Ñ)ñG ñH Ñ#ñI ñJ Ñ ñK ñL Ñ!ñM ñN Ñ$ñO ñP ™s•{Ñ(ñQ ñR !Ñ)ñS ñT ‘3�i™%¡ S �/Õ)ÑOñU ñV ‘c•™U¡3¨ 8�_Õ,ÑDñW ñX ‘c•™U¡3¨ 8�_Õ,ÑEñY ñZ Ññ[ ñ\ !Ñ&ñ] ñ^ $'Ñ+ñ_ ñ` Ñ#ña ñb ™C•KÑ&ñc ñd Ññe ñf Ñ ñg ñh ™s•{Ñ(ñi ñj Ñ!ñk ñl  Ñ#ñm ñn ˜•*Ñ ño ñp ˜•*Ñ ñq ñr ™™S�	•/ DÕ(Ñ,ñs ñt   $�JÑ*ñu ñv Ññw ñx #&Ñ)ñy ñz "%Ñ*ñ{ ñ| $)©3¥;Ñ4ñ} ñ~ Ñ$ñ ñ@ $'Ñ*ñA ñB #&Ñ+ñC ñD $'Ñ*ñE ñF %*©C¥KÑ5ñG ñH ÑñI ñJ Ñ$ñK ñL Ñ!ñM ñN $'Ñ,ñO ñP  $Ñ*ñQ ñR &)Ñ,ñS ñT "'Ñ,ñU ñV "'Ñ-ñW ñX ÑñY ñZ Ñ#ñ[ ñ\ Ñ$ò] r   )r   )r   r   r   r   r   r   r   )é   r/   r/   r/   r/   r/   r/   )é
   é   rq   rq   rq   r/   r/   )HÚ__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú
model_typeÚattribute_mapr0   r1   r   r
   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   r   r    r!   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   r   r$   r,   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   rl   s   @@r   r   r      s„  ù‡ € ñmð^ €JØ*Ð,EÐGZÐ\lÐm€Mà€JØ€KØ€NØ#%ÐØ€OØ%(ÐØ€NØ€OØ#%ÐØ%(ÐØ€JØ&)ÐØ"%€NØ%(ÐØ&)ÐØ#ÐØ €NØ!€OØ$ÐØ%(ÐØ#)ÐØ,O€HØ/D€KØ/E€KØ€IØ#&ÐØ)+Ð!Ø#ÐØ"&€NØÐØ ÐØ%(ÐØ!ÐØ"#ÐØ €LØ €LØ+,€LØ)*ÐØ€LØ()Ð Ø'*ÐØ14Ð!Ø!$ÐØ)*Ð!Ø(+Ð Ø)*Ð!Ø25Ð"ØÐØ $ÐØ!ÐØ),Ð!Ø&*ÐØ+,Ð#Ø),ÐØ)-ÐØ€IØ#ÐØ $Ðõ(òòC÷E … r   r   c                   ó\   a € ] tR t^ßt o RtRt^PtRtRtRt	Rt
RtRtRtRtRtV 3R ltR	tV tR
# )ÚSpeechT5HifiGanConfiga`  
model_in_dim (`int`, *optional*, defaults to 80):
    The number of frequency bins in the input log-mel spectrogram.
upsample_initial_channel (`int`, *optional*, defaults to 512):
    The number of input channels into the upsampling network.
upsample_rates (`tuple[int]` or `list[int]`, *optional*, defaults to `[4, 4, 4, 4]`):
    A tuple of integers defining the stride of each 1D convolutional layer in the upsampling network. The
    length of *upsample_rates* defines the number of convolutional layers and has to match the length of
    *upsample_kernel_sizes*.
upsample_kernel_sizes (`tuple[int]` or `list[int]`, *optional*, defaults to `[8, 8, 8, 8]`):
    A tuple of integers defining the kernel size of each 1D convolutional layer in the upsampling network. The
    length of *upsample_kernel_sizes* defines the number of convolutional layers and has to match the length of
    *upsample_rates*.
resblock_kernel_sizes (`tuple[int]` or `list[int]`, *optional*, defaults to `[3, 7, 11]`):
    A tuple of integers defining the kernel sizes of the 1D convolutional layers in the multi-receptive field
    fusion (MRF) module.
resblock_dilation_sizes (`tuple[tuple[int]]` or `list[list[int]]`, *optional*, defaults to `[[1, 3, 5], [1, 3, 5], [1, 3, 5]]`):
    A nested tuple of integers defining the dilation rates of the dilated 1D convolutional layers in the
    multi-receptive field fusion (MRF) module.
leaky_relu_slope (`float`, *optional*, defaults to 0.1):
    The angle of the negative slope used by the leaky ReLU activation.
normalize_before (`bool`, *optional*, defaults to `True`):
    Whether or not to normalize the spectrogram before vocoding using the vocoder's learned mean and variance.

Example:

```python
>>> from transformers import SpeechT5HifiGan, SpeechT5HifiGanConfig

>>> # Initializing a "microsoft/speecht5_hifigan" style configuration
>>> configuration = SpeechT5HifiGanConfig()

>>> # Initializing a model (with random weights) from the "microsoft/speecht5_hifigan" style configuration
>>> model = SpeechT5HifiGan(configuration)

>>> # Accessing the model configuration
>>> configuration = model.config
```Úspeecht5_hifigani€>  r   g{®Gáz„?r   Tc                ó>  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[S[ ,          S[S[ R3,          ,          ;R&   S[S[ ,          S[S[ R3,          ,          ;R&   S[S[ ,          S[S[ R3,          ,          ;R&   S[S[,          ;R&   S[;R	&   S[;R
&   S[;R&   # )r/   Úmodel_in_dimÚsampling_rateÚupsample_initial_channel.Úupsample_ratesÚupsample_kernel_sizesÚresblock_kernel_sizesÚresblock_dilation_sizesr=   Úleaky_relu_slopeÚnormalize_before)re   ri   rj   rf   rh   )rk   rl   s   "€r   rm   Ú"SpeechT5HifiGanConfig.__annotate__ß   sÒ   ø‡ ‚ ñX ÑñY ñZ Ññ[ ñ\ "Ñ'ñ] ñ^ ™•I¡¡c¨3 h¥Õ/Ñ>ñ_ ñ`  ¡�9¡u©S°#¨X¥Õ6ÑEña ñb  ¡�9¡u©S°#¨X¥Õ6ÑCñc ñd "¡E�\ÑMñe ñf Ñ#ñg ñh Ñ!ñi ñj Ñ!òk r   r   N)é   r‹   r‹   r‹   )é   rŒ   rŒ   rŒ   )rq   é   é   )©r'   rq   ro   r�   r�   )rr   rs   rt   ru   rv   rw   r�   r‚   rƒ   r„   r…   r†   r‡   r=   rˆ   r‰   ry   rz   r{   )rl   s   @r   r~   r~   ß   sS   ø‡ € ñ%ðN $€Jà€LØ€MØ$'ÐØ2>€NØ9EÐØ9CÐØ,MÐØ#ÐØ!ÐØ!Ð÷k ƒ r   r~   )rv   r(   r*   Úhuggingface_hub.dataclassesr   Úconfiguration_utilsr   Úutilsr   r   r~   Ú__all__r   r   r   Ú<module>r”      s‚   ðñ #ã Û å .å 3Ý #ñ Ð3Ô4ØôACÐ%ó ACó ó 5ðACñH Ð3Ô4Øô3"Ð,ó 3"ó ó 5ð3"ðl Ð4Ð
5‚r   