+
    ¤÷Îj: ã                   óÞ  € ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIHtHt ^ RIH	t	 ^ RI
Ht ^ RIHtHtHtHtHtHt ^ RIHt ^ RIt^ RIt^ RIt^ RIHt ^ RIHtHt ^ R	IHt ^ R
IH t H!t! ^ RI"H#t#H$t$H%t%H&t& ^ RI'H(t(H)t)H*t*H+t+ ] ! R R4      4       t,] ! R R4      4       t-] ! R R4      4       t.] ! R R4      4       t/ ! R R4      t0 ! R R4      t1R R lt2R R lt3R R lt4R R  lt5R! R" lt6R# )#é    N)ÚasdictÚ	dataclass)Ú	signature)Úceil)ÚBinaryIOÚIterableÚListÚOptionalÚTupleÚUnion)Úwarn)Útqdm)Údecode_audioÚpad_or_trim)ÚFeatureExtractor)Ú_LANGUAGE_CODESÚ	Tokenizer)Údownload_modelÚformat_timestampÚget_endÚ
get_logger)ÚSpeechTimestampsMapÚ
VadOptionsÚcollect_chunksÚget_speech_timestampsc                   ó2   a € ] tR t^t o R tV 3R ltRtV tR# )ÚWordc                ó:   € \        R \        ^4       \        V 4      # )zIWord._asdict() method is deprecated, use dataclasses.asdict(Word) instead©r   ÚDeprecationWarningr   ©Úselfs   &ÚO/opt/data/home/.local/lib/python3.14/site-packages/faster_whisper/transcribe.pyÚ_asdictÚWord._asdict&   s   € ÜØWÜØô	
ô
 �d‹|Ðó    c                óJ   <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[;R&   S[ ;R&   # )é   ÚstartÚendÚwordÚprobability)ÚfloatÚstr)ÚformatÚ__classdict__s   "€r#   Ú__annotate__ÚWord.__annotate__   s4   ø‡ ‚ á�Lñ ñ 
�Jñ ñ �Iñ	 ñ
 Ñò r&   © N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r$   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__©r0   s   @r#   r   r      s   ø‡ € ò÷ ƒ r&   r   c                   ó2   a € ] tR t^/t o R tV 3R ltRtV tR# )ÚSegmentc                ó:   € \        R \        ^4       \        V 4      # )zOSegment._asdict() method is deprecated, use dataclasses.asdict(Segment) insteadr   r!   s   &r#   r$   ÚSegment._asdict=   s   € ÜØ]ÜØô	
ô
 �d‹|Ðr&   c                óÞ   <€ 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[S[,          ,          ;R
&   S[S[,          ;R&   # )r(   ÚidÚseekr)   r*   ÚtextÚtokensÚavg_logprobÚcompression_ratioÚno_speech_probÚwordsÚtemperature)Úintr-   r.   r	   r
   r   )r/   r0   s   "€r#   r1   ÚSegment.__annotate__/   sž   ø‡ ‚ á�Gñ ñ �Iñ ñ �Lñ	 ñ
 
�Jñ ñ �Iñ ñ ‘�IÑñ ñ Ññ ñ Ññ ñ Ññ ñ ‘D™•JÕÑñ ñ ™%•Ñ ò r&   r3   Nr4   r<   s   @r#   r>   r>   /   s   ø‡ € ò÷ ƒ r&   r>   c                   ó,   a € ] tR t^Ft o V 3R ltRtV tR# )ÚTranscriptionOptionsc                óN  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[;R&   S[;R&   S[;R&   S[ ;R&   S[S[,          ;R&   S[S[,          ;R&   S[S[,          ;R	&   S[;R
&   S[;R&   S[S[,          ;R&   S[S[S[S[S[ ,          3,          ,          ;R&   S[S[,          ;R&   S[;R&   S[S[S[ ,          ,          ;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[S[ ,          ;R&   S[S[S[S[,          3,          ;R&   S[S[,          ;R&   S[S[,          ;R&   # )r(   Ú	beam_sizeÚbest_ofÚpatienceÚlength_penaltyÚrepetition_penaltyÚno_repeat_ngram_sizeÚlog_prob_thresholdÚno_speech_thresholdÚcompression_ratio_thresholdÚcondition_on_previous_textÚprompt_reset_on_temperatureÚtemperaturesÚinitial_promptÚprefixÚsuppress_blankÚsuppress_tokensÚwithout_timestampsÚmax_initial_timestampÚword_timestampsÚprepend_punctuationsÚappend_punctuationsÚmultilingualÚmax_new_tokensÚclip_timestampsÚhallucination_silence_thresholdÚhotwords)rK   r-   r
   Úboolr	   r   r.   r   )r/   r0   s   "€r#   r1   Ú!TranscriptionOptions.__annotate__F   sœ  ø‡ ‚ á�Nñ ñ �Lñ ñ �Oñ	 ñ
 Ññ ñ Ññ ñ Ññ ñ !¡�Ñ'ñ ñ "¡%�Ñ(ñ ñ "*©%¥Ñ0ñ ñ !%Ñ$ñ ñ "'Ñ&ñ ñ ‘u•+Ññ ñ ™U¡3©±­Ð#5Õ6Õ7Ñ7ñ ñ ‘S�MÑñ ñ  Ññ! ñ" ™d¡3�iÕ(Ñ(ñ# ñ$ Ññ% ñ& !Ñ ñ' ñ( Ññ) ñ* Ññ+ ñ, Ññ- ñ. Ññ/ ñ0 ™S•MÑ!ñ1 ñ2 ™3¡¡U¥Ð+Õ,Ñ,ñ3 ñ4 &.©e¥_Ñ4ñ5 ñ6 ‘s�mÑò7 r&   r3   N©r5   r6   r7   r8   r9   r:   r;   r<   s   @r#   rN   rN   F   ó   ø‡ ‡ „ r&   rN   c                   ó,   a € ] tR t^dt o V 3R ltRtV tR# )ÚTranscriptionInfoc                ó¤   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[;R&   S[;R&   S[S[S[S[ S[3,          ,          ,          ;R&   S[;R&   S[;R&   # )r(   ÚlanguageÚlanguage_probabilityÚdurationÚduration_after_vadÚall_language_probsÚtranscription_optionsÚvad_options)r.   r-   r
   r	   r   rN   r   )r/   r0   s   "€r#   r1   ÚTranscriptionInfo.__annotate__d   so   ø‡ ‚ á�Mñ ñ  Ññ ñ �Oñ	 ñ
 Ññ ñ !¡¡e©C±¨JÕ&7Õ!8Õ9Ñ9ñ ñ 0Ñ/ñ ñ Ñò r&   r3   Nrl   r<   s   @r#   ro   ro   d   rm   r&   ro   c            #       ó¦   a € ] tR t^ot o R tR tV 3R lR ltRRR^^^^^^ . ROR
RRRRRRRR.RR	RRRRRRRRRR^RR^3#V 3R lR lltR tRt	V t
R# )ÚBatchedInferencePipelinec                ó    € Wn         R V n        R# )ç        N)ÚmodelÚlast_speech_timestamp)r"   r}   s   &&r#   Ú__init__Ú!BatchedInferencePipeline.__init__p   s   € ð $)Œ
Ø%(ˆÖ"r&   c                óz  € V P                  WV4      w  rV. p. p\        W64       EF7  w  ršV	R ,          p\        \        V4      V P                  P
                  ,          4      pVP                  V4       V P                  P                  VV
R,          V	R,          VV^ R7      w  pppTP                  V Uu. uF™  p\        VP                  VR,          4      V
R,          V
R,          VR,          VR,          VR,          \        VP                  VR,          4      4      \        V	R,          V P                  P
                  ,          4      R7      NK›  	  up4       EK:  	  VP                  '       dE   V P                  P                  VVVVVP                  VP                  V P                  4      V n        V# u upi )	rs   rE   Úoffset©Ú	tokenizerrE   Útime_offsetÚsegment_sizeÚsegment_durationrC   rF   rH   r)   r*   )rD   rF   rH   rE   r)   r*   rG   rC   )Úgenerate_segment_batchedÚziprK   r   r}   Úframes_per_secondÚappendÚ_split_segments_by_timestampsÚdictÚdecodeÚget_compression_ratiorb   Úadd_word_timestampsrc   rd   r~   )r"   Úfeaturesr„   Úchunks_metadataÚoptionsÚencoder_outputÚoutputsÚsegmented_outputsÚsegment_sizesÚchunk_metadataÚoutputrs   r†   ÚsubsegmentsrC   Úsingle_timestamp_endingÚ
subsegments   &&&&&            r#   ÚforwardÚ BatchedInferencePipeline.forwardw   sº  € Ø"&×"?Ñ"?Ø ó#
Ñˆð ÐØˆÜ&)¨/×&CÑ"ˆNØ% jÕ1ˆHÜœt H›~°·
±
×0LÑ0LÕLÓMˆLØ× Ñ  Ô.ð
 —
‘
×8Ñ8Ø#Ø˜hÕ'Ø*¨8Õ4Ø)Ø!)Øð 9ó ñ	ØØØ'ð ×$Ñ$ñ  '2óñ '2˜
ô Ø&×-Ñ-¨j¸Õ.BÓCØ$*¨=Õ$9Ø'-Ð.>Õ'?Ø)¨(Õ3Ø(¨Õ1Ø& uÕ-Ü*?Ø%×,Ñ,¨Z¸Õ-AÓBó+ô !Ø*¨8Õ4°t·z±z×7SÑ7SÕSó÷ñ '2ñ÷ñ! 'DðF ×"×"Ð"Ø)-¯©×)GÑ)GØ!ØØØØ×,Ñ,Ø×+Ñ+Ø×*Ñ*ó*ˆDÔ&ð !Ð ùò;s   Â5BF8
c                ó@   <€ V ^8„  d   QhRS[ P                  RS[RS[/# )r(   r‘   r„   r“   )ÚnpÚndarrayr   rN   )r/   r0   s   "€r#   r1   Ú%BatchedInferencePipeline.__annotate__®   s2   ø€ ÷ N&ñ N&á—*‘*ðN&ñ ðN&ñ &ñ	N&r&   c                ó~  € VP                   ^ ,          pV P                  P                  TVP                  e   VP	                  VP                  4      M. VP
                  VP                  R7      pVP                  e   \        V4      VP                  ,           pMV P                  P                  pW`P                  P                  8”  d]   \        R\        V4       RV\        V4      ,
           RV RV P                  P                   RV P                  P                   R24      hV P                  P	                  V4      p\        V4       Uu. uF  q…P                  4       NK  	  p	pVP                  '       d–   V P                  P                  P                  V4       U
u. uF,  p
VP                  P!                  V
^ ,          ^ ,          4      NK.  	  pp
VP#                  VP$                  4      p\'        V4       F  w  rÞWéV,          V&   K  	  V P                  P                  P)                  VV	VP*                  VP,                  VP.                  VVP0                  VP2                  RRVP4                  ^ ,          VP6                  VP8                  R	7      p. pV F�  p\        VP:                  ^ ,          4      pVP<                  ^ ,          VVP.                  ,          ,          pVP?                  \A        VV^,           ,          VPB                  VP:                  ^ ,          R
7      4       K’  	  VV3# u upi u up
i )r   )Úprevious_tokensr`   ri   úThe length of the prompt is ú, and the `max_new_tokens` úC. Thus, the combined length of the prompt and `max_new_tokens` is: ú6. This exceeds the `max_length` of the Whisper model: úŠ. You should either reduce the length of your prompt, or reduce the value of `max_new_tokens`, so that their combined length is less that Ú.T)rP   rR   rS   Ú
max_lengthr^   r_   Úreturn_scoresÚreturn_no_speech_probÚsampling_temperaturerT   rU   )rF   rH   rE   )"Úshaper}   Ú
get_promptr\   Úencoder`   ri   rf   Úlenr«   Ú
ValueErrorÚrangeÚcopyre   Údetect_languager„   Útoken_to_idÚindexrq   Ú	enumerateÚgeneraterP   rR   rS   r^   r_   r[   rT   rU   Úsequences_idsÚscoresr‹   r�   rH   )r"   r‘   r„   r“   Ú
batch_sizeÚpromptr«   r”   Ú_ÚpromptsÚsegment_langsÚlanguage_tokensÚlanguage_token_indexÚiÚlanguage_tokenÚresultsr™   ÚresultÚseq_lenÚcum_logprobs   &&&&                r#   rˆ   Ú1BatchedInferencePipeline.generate_segment_batched®   sí  € ð —^‘^ AÕ&ˆ
à—‘×&Ñ&Øð ×)Ñ)Ò5ð × Ñ  ×!7Ñ!7Ô8àà&×9Ñ9Ø×%Ñ%ð 'ó 	
ˆð ×!Ñ!Ò-Ü˜V› w×'=Ñ'=Õ=‰JàŸ™×.Ñ.ˆJàŸ
™
×-Ñ-Ô-ÜØ.¬s°6«{¨mÐ;VØ¤ F£Õ+Ð,ð -,Ø,6¨<ð 86Ø6:·j±j×6KÑ6KÐ5Lð M>ð ?C¿j¹j×>SÑ>SÐ=TÐTUðWóð ð Ÿ™×*Ñ*¨8Ó4ˆÜ*/°
Ô*;Ó<Ñ*; Q—;‘;–=Ñ*;ˆÐ<à××Ðð &*§Z¡Z×%5Ñ%5×%EÑ%EÀnÔ%Uóá%U�Mð ×#Ñ#×/Ñ/°¸aÕ0@ÀÕ0CÖDÙ%Uð ð ð $*§<¡<°	×0BÑ0BÓ#CÐ ä%.¨Ö%?Ñ!�Ø3A˜•
Ð/Ó0ñ &@ð —*‘*×"Ñ"×+Ñ+ØØØ×'Ñ'Ø×%Ñ%Ø"×1Ñ1Ø!Ø"×1Ñ1Ø#×3Ñ3ØØ"&Ø!(×!5Ñ!5°aÕ!8Ø&×9Ñ9Ø!(×!=Ñ!=ð ,ó 
ˆð  ˆÛˆFä˜&×.Ñ.¨qÕ1Ó2ˆGØ Ÿ-™-¨Õ*¨g°w×7MÑ7MÕ.MÕNˆKà�M‰MÜØ +¨w¸­{Õ ;Ø#)×#8Ñ#8Ø!×/Ñ/°Õ2ôöñ ð ˜vÐ%Ð%ùòU =ùòs   ÅL5Æ"2L:NÚ
transcribeFç333333ã?ç      ð?ç333333@Tç      à?õ   "'â€œÂ¿([{-õ   "'.ã€‚,ï¼Œ!ï¼�?ï¼Ÿ:ï¼šâ€�)]}ã€�c          L      óÆ  <€ V ^8„  d   QhRS[ S[S[S[P                  3,          RS[S[,          RS[RS[RS[RS[RS[RS[R	S[R
S[RS[ S[S[	S[,          S[
S[R3,          3,          RS[S[,          RS[S[,          RS[S[,          RS[RS[RS[S[ S[S[S[,          3,          ,          RS[S[,          RS[RS[S[	S[,          ,          RS[RS[RS[RS[RS[RS[RS[RS[S[ S[S[3,          ,          RS[S[,          RS[S[,          R S[S[	S[,          ,          R!S[S[,          R"S[R#S[S[,          R$S[S[,          R%S[R&S[
S[S[,          S[3,          /%# )'r(   Úaudiorq   ÚtaskÚlog_progressrP   rQ   rR   rS   rT   rU   rJ   .rX   rV   rW   rY   rZ   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   Ú
vad_filterÚvad_parametersrf   Úchunk_lengthrg   rh   r½   ri   Úlanguage_detection_thresholdÚlanguage_detection_segmentsÚreturn©r   r.   r   r    r¡   r
   rj   rK   r-   r	   r   r   r�   r   r>   ro   )r/   r0   s   "€r#   r1   r¢   þ   sU  ø€ ÷ Dñ Dá‘S™(¡B§J¡JÐ.Õ/ðDñ ™3•-ðDñ ð	Dñ
 ðDñ ðDñ ðDñ ðDñ ðDñ "ðDñ "ðDñ ™5¡$¡u¥+©u±U¸C°ZÕ/@Ð@ÕAðDñ( &.©e¥_ð)Dñ* %¡U�Oð+Dñ, &¡e�_ð-Dñ. %)ð/Dñ0 &+ð1Dñ2 !¡¡s©H±S­MÐ'9Õ!:Õ;ð3Dñ4 ™•ð5Dñ6 ð7Dñ8 "¡$¡s¥)Õ,ð9Dñ: !ð;Dñ<  %ð=Dñ> ð?Dñ@ "ðADñB !ðCDñD ðEDñF ðGDñH !¡¡t©ZÐ'7Õ!8Õ9ðIDñJ !¡�ðKDñL ™s•mðMDñN "¡$¡t¥*Õ-ðODñP *2±%­ðQDñR ðSDñT ™3•-ðUDñV '/©u¥oðWDñX &)ðYDñZ 
‰x™Õ Ñ"3Ð3Õ	4ñ[Dr&   c%                óÊ  € V P                   P                  P                  p%V'       dN   V P                   P                   P                  '       g(   V P                   P                  P                  R4       Rp\        V\        P                  4      '       g   \        VV%R7      pVP                  ^ ,          V%,          p&V P                   P                  P                  R\        V&4      4       T;'       g!    V P                   P                  P                  pV'       g²   V'       dk   Vf   \        V^ R7      pMK\        V\        4      '       d6   RVP!                  4       9   d   VP#                  R4       \        R:/ VBRV/B p\%        VV4      pM+V&V8  d   R^ R	VP                  ^ ,          /.pM\'        R
4      hRp'\)        VVVR7      w  p(p)M÷Rp'V U*U+U,u. uF9  p*V*P+                  4        U+U,u/ uF  w  p+p,V+\-        V,V%,          4      bK  	  up,p+NK;  	  pp+p*p,. . p)p(\/        V4       F™  w  p-p.V(P1                  VV.R,          V.R	,           4       V.R	,          V.R,          ,
          V%,          p/V/^8”  d'   V P                   P                  P                  RV-4       V)P1                  RV.R,          V%,          RV/RV../4       K›  	  \3        R V 4       4      V%,          p0V P                   P                  P                  R\        V&V0,
          4      4       V0'       d7   V( U1u. uF)  p1V P                   P                  V14      RRR;13,          NK+  	  up1M. p2Rp3VfË   V P                   P                   P                  '       g   Rp^p4MüV P                   P5                  \        P6                  ! V2\        P8                  ! V P                   P                   P:                  ^3R<RR7      .,           ^R7      V$V#R7      w  pp4p3V P                   P                  P                  RVV44       M]V P                   P                   P                  '       g6   VR8w  d/   V P                   P                  P                  RV,          4       Rp^p4\=        V P                   P>                  V P                   P                   P                  VVR7      p5V2'       d0   \        P@                  ! V2 U6u. uF  p6\C        V64      NK  	  up64      M. p2\E        R:/ RVbRVbRVbRVbR V	bR!V
bR"VbR#VbR$VbR%\        V\F        \H        34      '       d
   VR&,          MV.bR'VbR(VbR)VbR*V'       d   \K        V5V4      MTbR+VbR,VbR-VbR.V"bR/VbR0RbR1RbR2VbR3R4bR5VbR6VbR7R8b p7\M        VV4V&V0V7VV3R97      p8V PO                  V2V5V)V!V7V4      p9V''       g   \Q        V9VV%4      p9V9V83# u up,p+i u up,p+p*i u up1i u up6i )=a4  transcribe audio in chunks in batched fashion and return with language info.

Arguments:
    audio: Path to the input file (or a file-like object), or the audio waveform.
    language: The language spoken in the audio. It should be a language code such
        as "en" or "fr". If not set, the language will be detected in the first 30 seconds
        of audio.
    task: Task to execute (transcribe or translate).
    log_progress: whether to show progress bar or not.
    beam_size: Beam size to use for decoding.
    best_of: Number of candidates when sampling with non-zero temperature.
    patience: Beam search patience factor.
    length_penalty: Exponential length penalty constant.
    repetition_penalty: Penalty applied to the score of previously generated tokens
        (set > 1 to penalize).
    no_repeat_ngram_size: Prevent repetitions of ngrams with this size (set 0 to disable).
    temperature: Temperature for sampling. If a list or tuple is passed,
        only the first value is used.
    initial_prompt: Optional text string or iterable of token ids to provide as a
        prompt for the each window.
    suppress_blank: Suppress blank outputs at the beginning of the sampling.
    suppress_tokens: List of token IDs to suppress. -1 will suppress a default set
        of symbols as defined in `tokenizer.non_speech_tokens()`.
    without_timestamps: Only sample text tokens.
    word_timestamps: Extract word-level timestamps using the cross-attention pattern
        and dynamic time warping, and include the timestamps for each word in each segment.
        Set as False.
    prepend_punctuations: If word_timestamps is True, merge these punctuation symbols
        with the next word
    append_punctuations: If word_timestamps is True, merge these punctuation symbols
        with the previous word
    multilingual: Perform language detection on every segment.
    vad_filter: Enable the voice activity detection (VAD) to filter out parts of the audio
        without speech. This step is using the Silero VAD model
        https://github.com/snakers4/silero-vad.
    vad_parameters: Dictionary of Silero VAD parameters or VadOptions class (see available
        parameters and default values in the class `VadOptions`).
    max_new_tokens: Maximum number of new tokens to generate per-chunk. If not set,
        the maximum will be set by the default max_length.
    chunk_length: The length of audio segments. If it is not None, it will overwrite the
        default chunk_length of the FeatureExtractor.
    clip_timestamps: Optionally provide list of dictionaries each containing "start" and
        "end" keys that specify the start and end of the voiced region within
        `chunk_length` boundary. vad_filter will be ignored if clip_timestamps is used.
    batch_size: the maximum number of parallel requests to model for decoding.
    hotwords:
        Hotwords/hint phrases to the model. Has no effect if prefix is not None.
    language_detection_threshold: If the maximum probability of the language tokens is
        higher than this value, the language is detected.
    language_detection_segments: Number of segments to consider for the language detection.

Unused Arguments
    compression_ratio_threshold: If the gzip compression ratio is above this value,
        treat as failed.
    log_prob_threshold: If the average log probability over sampled tokens is
        below this value, treat as failed.
    no_speech_threshold: If the no_speech probability is higher than this value AND
        the average log probability over sampled tokens is below `log_prob_threshold`,
        consider the segment as silent.
    condition_on_previous_text: If True, the previous output of the model is provided
        as a prompt for the next window; disabling may make the text inconsistent across
        windows, but the model becomes less prone to getting stuck in a failure loop,
        such as repetition looping or timestamps going out of sync. Set as False
    prompt_reset_on_temperature: Resets prompt if temperature is above this value.
        Arg has effect only if condition_on_previous_text is True. Set at 0.5
    prefix: Optional text to provide as a prefix at the beginning of each window.
    max_initial_timestamp: The initial timestamp cannot be later than this, set at 0.0.
    hallucination_silence_threshold: Optional[float]
        When word_timestamps is True, skip silent periods longer than this threshold
        (in seconds) when a possible hallucination is detected. set as None.
Returns:
  A tuple with:

    - a generator over transcribed segments
    - an instance of TranscriptionInfo
úiThe current model is English-only but the multilingual parameter is set toTrue; setting to False instead.F©Úsampling_rateú!Processing audio with duration %sN)Úmax_speech_duration_sÚmin_silence_duration_msrâ   r)   r*   zPNo clip timestamps found. Set 'vad_filter' to True or provide 'clip_timestamps'.)Úmax_durationTzSSegment %d is longer than 30 seconds, only the first 30 seconds will be transcribedr‚   rs   Úsegmentsc              3   óN   "  € T F  qR ,          VR,          ,
          x € K  	  R# 5i)r*   r)   Nr3   )Ú.0Úsegments   & r#   Ú	<genexpr>Ú6BatchedInferencePipeline.transcribe.<locals>.<genexpr>Æ  s   é € ÐSÁ?¸˜• '¨'Õ"2×2Ò2Ã?ùs   ‚#%úVAD filter removed %s of audio.ÚenÚfloat32)Údtype©Úaxis©r‘   rÚ   rÙ   ú,Detected language '%s' with probability %.2fú`The current model is English-only but the language parameter is set to '%s'; using 'en' instead.©rÔ   rq   rP   rQ   rR   rS   rT   rU   rV   rW   rX   r[   :Né   Nr\   r]   r^   r_   rc   rd   rf   ri   rb   rh   rY   rg   rZ   rÏ   re   r`   ra   r|   ©rq   rr   rs   rt   rv   rw   ru   r3   éÿÿÿÿg      ø¿))r}   Úfeature_extractorrà   Úis_multilingualÚloggerÚwarningÚ
isinstancer    r¡   r   r¯   Úinfor   rØ   r   r�   ÚkeysÚpopr   ÚRuntimeErrorr   ÚitemsrK   r¹   r‹   Úsumr¶   ÚconcatenateÚfullÚn_melsr   Úhf_tokenizerÚstackr   rN   ÚlistÚtupleÚget_suppressed_tokensro   Ú_batched_segments_generatorÚrestore_speech_timestamps):r"   rÓ   rq   rÔ   rÕ   rP   rQ   rR   rS   rT   rU   rJ   rX   rV   rW   rY   rZ   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rÖ   r×   rf   rØ   rg   rh   r½   ri   rÙ   rÚ   rà   rs   Úclip_timestamps_providedÚaudio_chunksr’   rè   ÚkÚvrÄ   ÚclipÚclip_durationrt   Úchunkr‘   ru   rr   r„   Úfeaturer“   rý   rå   s:   &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&                     r#   rË   Ú#BatchedInferencePipeline.transcribeþ   sH  € ðv Ÿ
™
×4Ñ4×BÑBˆç §
¡
× 0Ñ 0× @× @Ð @Ø�J‰J×Ñ×%Ñ%ð2ôð !ˆLä˜%¤§¡×,Ò,Ü  °mÔDˆEØ—;‘;˜q•> MÕ1ˆà�
‰
×Ñ×ÑØ/Ô1AÀ(Ó1Kô	
ð $×PÐP t§z¡z×'CÑ'C×'PÑ'PˆçßØ!Ò)Ü%/Ø.:Ø03ô&‘Nô   ´×5Ò5Ø.°.×2EÑ2EÓ2GÔGØ&×*Ñ*Ð+BÔCä%/ñ &Ø(ñ&Ø@Lò&�Nô #8¸¸~Ó"N‘à˜LÔ(Ø$+¨Q°°u·{±{À1µ~Ð#FÐ"G‘ä"ðMóð ð
 (-Ð$Ü,:Ø�°\ô-Ñ)ˆL™/ð
 (,Ð$ñ  /õá.�Gð 8?·}±}´ÔG±©t¨q°!�”C˜˜MÕ)Ó*Ò*±ÕGÙ.ð ò ð
 -/°˜/ˆLÜ$ _Ö5‘��4Ø×#Ñ# E¨$¨w­-¸$¸u½+Ð$FÔGà!% e¥¨t°G­}Õ!<ÀÕ M�Ø  2Ô%Ø—J‘J×%Ñ%×-Ñ-ðHàôð  ×&Ñ&à  $ w¥-°-Õ"?Ø" MØ" T Fðöñ 6ô( ÑSÁ?ÓSÓSØõð 	ð
 	�
‰
×Ñ×ÑØ,Ü˜XÐ(:Õ:Ó;ô	
÷ "ñ IUÓUÉ¸uˆT�Z‰Z×)Ñ)¨%Ó0°°c°r°c°×:Ð:ÉÒUàð 	ð "ÐàÒØ—:‘:×#Ñ#×3×3Ð3Ø�Ø'(Ñ$ð —J‘J×.Ñ.ÜŸ^š^Ø äŸGšG T§Z¡Z×%5Ñ%5×%<Ñ%<¸aÐ$@À$ÈiÔXðõð ôð 1LØ1Mð /ó 
ñ	ØØ(Ø&ð —
‘
×!Ñ!×&Ñ&ØBØØ(õð —:‘:×#Ñ#×3×3Ð3¸ÀDÔ8HØ—
‘
×!Ñ!×)Ñ)ð*Ø,4õ5ôð  �à#$Ð äØ�J‰J×#Ñ#Ø�J‰J×Ñ×,Ñ,ØØô	
ˆ	÷ IQŒB�HŠH¹(ÓC¹(¨w”k 'Ö*¹(ÑCÔDÐVXð 	ô 'ò #
Ùð#
áð#
ñ ð#
ñ *ð	#
ñ
  2ð#
ñ "6ð#
ñ  2ð#
ñ !4ð#
ñ )Dð#
ô ˜k¬D´%¨=×9Ò9ð ˜B–à!�]øð#
ñ *ð#
ñ  ð!#
ñ" *ð##
÷( #ô & i°ÔAà$øð+#
ñ. "6ð/#
ñ0 !4ð1#
ñ2 *ð3#
ñ4 ð5#
ñ6 ,ð7#
ñ8 -1ð9#
ñ: (-ð;#
ñ< ,ð=#
ñ> ),ð?#
ñ@ &ðA#
ñB  2ðC#
ñD #&ðE#
ˆôJ !ØØ!5ØØ1Ø")Ø&Ø1ô
ˆð ×3Ñ3ØØØØØØó
ˆ÷ (Ü0Ø˜/¨=óˆHð ˜ˆ~Ðùók HùôùòH Vùòf Ds$   ÇWÇ/WÈWÌ!/WÓW ×Wc              #  ó®  "  € \        \        V4      V'       * ^ R7      p^ p\        ^ \        V4      V4       Fü  p	V P                  WW”,            VW9W”,            V4      p
V
 FÏ  pV Fµ  pV^,          p\	        VR,          TVR,          \        VR,          ^4      \        VR,          ^4      VP                  '       g   RM!VR,           Uu. uF  p\        R/ VB NK  	  upVR,          VR	,          VR
,          VR,          VP                  ^ ,          R7      x € K·  	  VP                  ^4       KÑ  	  Kþ  	  VP                  4        RV n        R# u upi 5i)r   )ÚtotalÚdisableÚpositionrC   rD   r)   r*   NrI   rE   rF   rH   rG   )rC   rB   rD   r)   r*   rI   rE   rF   rH   rG   rJ   r|   r3   )r   r²   r´   r�   r>   Úroundrb   r   r[   ÚupdateÚcloser~   )r"   r‘   r„   r’   r½   r“   rÕ   ÚpbarÚseg_idxrÄ   rÆ   rÇ   rè   r+   s   &&&&&&&       r#   r  Ú4BatchedInferencePipeline._batched_segments_generatorD  sB  é € ô œ#˜h›-°\Ô1AÈAÔNˆØˆÜ�qœ#˜h›-¨Ö4ˆAØ—l‘lØ˜Q�^Ð,ØØ A¥NÐ3Øó	ˆGó "�Û%�GØ˜q•L�GÜ!Ø$ V�_Ø"Ø$ V�_Ü# G¨GÕ$4°aÓ8Ü! '¨%¥.°!Ó4ð $+×#:×#:Ð#:ñ !à;BÀ7Ö;KÓ!LÑ;K°4¤$¡,¨¤,Ñ;KÑ!Là& xÕ0Ø$+¨MÕ$:Ø'.Ð/?Õ'@Ø*1Ð2EÕ*FØ$+×$8Ñ$8¸Õ$;ôô ñ  &ð( —‘˜A–ó+ "ñ 5ð> 	�
‰
ŒØ%(ˆÖ"ùò "Mùs   ‚CEÃ
EÃA7E)r~   r}   ©r|   gš™™™™™É?gš™™™™™Ù?rÌ   gš™™™™™é?rÍ   ç      ð¿r÷   )r5   r6   r7   r8   r   r�   rˆ   rË   r  r:   r;   r<   s   @r#   rz   rz   o   s§   ø‡ € ò)ò5!÷nN&ð N&ðf #'Ø Ø"ØØØØ !Ø$%Ø$%òE
ð 8;Ø.2Ø/2Ø+/Ø-0Ø>BØ $Ø#Ø02¨tØ#'Ø'*Ø %Ø$2Ø#EØ"ØØ<@Ø(,Ø&*Ø04Ø;?ØØ"&Ø8;Ø+,÷YDò D÷L
%)ð %)r&   rz   c            "       óh  a € ] tR tRt o R&V 3R lR llt]V 3R lR l4       tR'V 3R lR	 lltRR
R^^^^^^ . R(ORR)RRRRRRR*.RRRRRRRRRRRRRR^3"V 3R lR lltV 3R lR lt	R'V 3R lR llt
V 3R lR ltV 3R lR ltR+V 3R lR lltV 3R lR  ltR,V 3R! lR" lltR-V 3R# lR$ lltR%tV tR# ).ÚWhisperModelil  NFc                óÈ   <€ V ^8„  d   QhRS[ RS[ RS[S[S[S[,          3,          RS[ RS[RS[RS[S[ ,          RS[R	S[R
S[S[ ,          RS[S[S[ S[3,          ,          /# )r(   Úmodel_size_or_pathÚdeviceÚdevice_indexÚcompute_typeÚcpu_threadsÚnum_workersÚdownload_rootÚlocal_files_onlyÚfilesÚrevisionÚuse_auth_token)r.   r   rK   r	   r
   rj   r�   )r/   r0   s   "€r#   r1   ÚWhisperModel.__annotate__m  s©   ø€ ÷ eñ eáðeñ ðeñ ™C¡¡c¥˜NÕ+ð	eñ
 ðeñ ðeñ ðeñ  ¡•}ðeñ ðeñ ðeñ ™3•-ðeñ !¡¡s©D yÕ!1Õ2ñer&   c                óÂ  € \        4       V n        RRríV	'       d(   TpV	P                  RR4      pV	P                  RR4      pM8\        P                  P                  V4      '       d   TpM\        VVVV
VR7      p\        P                  P                  ! V3RVRVRVRVR	VR
V	/VB V n
        \        P                  P                  VR4      pV'       d&   \        P                  P                  V4      V n        M“\        P                  P!                  V4      '       d&   \        P                  P#                  V4      V n        MI\        P                  P%                  RV P                  P&                  '       d   RMR,           4      V n        V P)                  Wþ4      V n        \-        R/ V P*                  B V n        ^V n        V P.                  P2                  V P0                  ,          V n        V P.                  P6                  V P.                  P2                  ,          V n        V P.                  P6                  V P4                  ,          V n        RV n        RV n        R# )a6  Initializes the Whisper model.

Args:
  model_size_or_path: Size of the model to use (tiny, tiny.en, base, base.en,
    small, small.en, distil-small.en, medium, medium.en, distil-medium.en, large-v1,
    large-v2, large-v3, large, distil-large-v2, distil-large-v3, large-v3-turbo, or turbo),
    a path to a converted model directory, or a CTranslate2-converted Whisper model ID from
    the HF Hub. When a size or a model ID is configured, the converted model is downloaded
    from the Hugging Face Hub.
  device: Device to use for computation ("cpu", "cuda", "auto").
  device_index: Device ID to use.
    The model can also be loaded on multiple GPUs by passing a list of IDs
    (e.g. [0, 1, 2, 3]). In that case, multiple transcriptions can run in parallel
    when transcribe() is called from multiple Python threads (see also num_workers).
  compute_type: Type to use for computation.
    See https://opennmt.net/CTranslate2/quantization.html.
  cpu_threads: Number of threads to use when running on CPU (4 by default).
    A non zero value overrides the OMP_NUM_THREADS environment variable.
  num_workers: When transcribe() is called from multiple Python threads,
    having multiple workers enables true parallelism when running the model
    (concurrent calls to self.model.generate() will run in parallel).
    This can improve the global throughput at the cost of increased memory usage.
  download_root: Directory where the models should be saved. If not set, the models
    are saved in the standard Hugging Face cache directory.
  local_files_only:  If True, avoid downloading the file and return the path to the
    local cached file if it exists.
  files: Load model files from the memory. This argument is a dictionary mapping file names
    to file contents as file-like or bytes objects. If this is set, model_path acts as an
    identifier for this model.
  revision:
    An optional Git revision id which can be a branch name, a tag, or a
    commit hash.
  use_auth_token: HuggingFace authentication token or True to use the
    token stored by the HuggingFace config folder.
Nztokenizer.jsonúpreprocessor_config.json)r,  Ú	cache_dirr.  r/  r&  r'  r(  Úintra_threadsÚinter_threadsr-  zopenai/whisper-tinyÚ z.eng{®Gáz”?iÀ  r3   ) r   rú   rÿ   ÚosÚpathÚisdirr   Úctranslate2ÚmodelsÚWhisperr}   ÚjoinÚ
tokenizersr   Úfrom_bufferr  ÚisfileÚ	from_fileÚfrom_pretrainedrù   Ú_get_feature_kwargsÚfeat_kwargsr   rø   Úinput_strideÚ
hop_lengthÚnum_samples_per_tokenrà   rŠ   Útokens_per_secondÚtime_precisionr«   )r"   r%  r&  r'  r(  r)  r*  r+  r,  r-  r.  r/  Úmodel_kwargsÚtokenizer_bytesÚpreprocessor_bytesÚ
model_pathÚtokenizer_files   &&&&&&&&&&&&,    r#   r   ÚWhisperModel.__init__m  s  € ôd !“lˆŒà.2°DÐ+ßØ+ˆJØ#Ÿi™iÐ(8¸$Ó?ˆOØ!&§¡Ð+EÀtÓ!LÑÜ�W‰W�]‰]Ð-×.Ò.Ø+‰Jä'Ø"Ø!1Ø'Ø!Ø-ôˆJô !×'Ñ'×/Ò/Øñ	
àð	
ð &ð	
ð &ð		
ð
 &ð	
ð &ð	
ð ð	
ð ñ	
ˆŒ
ô Ÿ™Ÿ™ jÐ2BÓCˆßÜ *× 4Ñ 4× @Ñ @ÀÓ QˆDÕÜ�W‰W�^‰^˜N×+Ò+Ü *× 4Ñ 4× >Ñ >¸~Ó NˆDÕä *× 4Ñ 4× DÑ DØ%¨t¯z©z×/I×/IÐ/I©ÈuÕUó!ˆDÔð  ×3Ñ3°JÓSˆÔÜ!1Ñ!E°D×4DÑ4DÑ!EˆÔØˆÔà×"Ñ"×-Ñ-°×0AÑ0AÕAð 	Ô"ð ×"Ñ"×0Ñ0°D×4JÑ4J×4UÑ4UÕUð 	Ôð ×"Ñ"×0Ñ0°D×4NÑ4NÕNð 	Ôð #ˆÔØˆŽr&   c                ó0   <€ V ^8„  d   QhRS[ S[,          /# ©r(   rÛ   )r	   r.   )r/   r0   s   "€r#   r1   r0  Õ  s   ø€ ÷ Oñ O¡T©#¥Yñ Or&   c                ó^   € V P                   P                  '       d   \        \        4      # R.# )z%The languages supported by the model.rì   )r}   rù   r  r   r!   s   &r#   Úsupported_languagesÚ WhisperModel.supported_languagesÔ  s%   € ð )-¯
©
×(B×(BÐ(BŒt”OÓ$ÐNÈÈÐNr&   c                ó    <€ V ^8„  d   QhRS[ /# rQ  )r�   )r/   r0   s   "€r#   r1   r0  Ù  s   ø€ ÷ ñ É$ñ r&   c                óª  € / p \         P                  P                  VR 4      pV'       d   \        P                  ! V4      pM]\         P                  P                  V4      '       d7   \        VRRR7      ;_uu_ 4       p\        P                  ! V4      pRRR4       MV# \        \        P                  4      P                  P                  4       pVP                  4        UUu/ uF  w  rxWv9   g   K  WxbK  	  upp#   + '       g   i     Lm; iu uppi   \        P                   d(   p	T P                  P!                  RT	4        Rp	?	T# Rp	?	ii ; i)r2  Úrúutf-8)ÚencodingNz&Could not load preprocessor config: %s)r7  r8  r=  ÚjsonÚloadsr@  ÚopenÚloadr   r   r   Ú
parametersrþ   r  ÚJSONDecodeErrorrú   rû   )
r"   rM  rL  ÚconfigÚconfig_pathÚfileÚ
valid_keysr  r  Úes
   &&&       r#   rC  Ú WhisperModel._get_feature_kwargsÙ  sü   € Øˆð	MÜŸ'™'Ÿ,™, zÐ3MÓNˆKß!ÜŸšÐ$6Ó7‘Ü—‘—‘ ×,Ò,Ü˜+ s°W×=Õ=ÀÜ!ŸYšY t›_�F÷ >Ð=ð �Ü"Ô#3×#<Ñ#<Ó=×HÑH×MÑMÓOˆJØ%+§\¡\¤^ÔG¡^™T˜Q°q±”D�A’D¡^ÒGÐG÷ >×=üó
 HøÜ×#Ñ#ô 	MØ�K‰K×ÑÐ HÈ!×LÐLàˆûð	MúsS   „'D ¬;D Á(D Á>C=Â
D Â AD Ã$
DÃ3DÃ9D Ã=D	ÄD ÄEÄ+EÅErË   rÌ   rÍ   rÎ   TrÏ   rÐ   rÑ   Ú0c          J      óÆ  <€ V ^8„  d   QhRS[ S[S[S[P                  3,          RS[S[,          RS[RS[RS[RS[RS[RS[R	S[R
S[RS[ S[S[	S[,          S[
S[R3,          3,          RS[S[,          RS[S[,          RS[S[,          RS[RS[RS[S[ S[S[S[,          3,          ,          RS[S[,          RS[RS[S[	S[,          ,          RS[RS[RS[RS[RS[RS[RS[RS[S[ S[S[3,          ,          RS[S[,          RS[S[,          R S[ S[S[	S[,          3,          R!S[S[,          R"S[S[,          R#S[S[,          R$S[R%S[
S[S[,          S[3,          /$# )&r(   rÓ   rq   rÔ   rÕ   rP   rQ   rR   rS   rT   rU   rJ   .rX   rV   rW   rY   rZ   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rÖ   r×   rf   rØ   rg   rh   ri   rÙ   rÚ   rÛ   rÜ   )r/   r0   s   "€r#   r1   r0  ë  sM  ø€ ÷ Sñ Sá‘S™(¡B§J¡JÐ.Õ/ðSñ ™3•-ðSñ ð	Sñ
 ðSñ ðSñ ðSñ ðSñ ðSñ "ðSñ "ðSñ ™5¡$¡u¥+©u±U¸C°ZÕ/@Ð@ÕAðSñ( &.©e¥_ð)Sñ* %¡U�Oð+Sñ, &¡e�_ð-Sñ. %)ð/Sñ0 &+ð1Sñ2 !¡¡s©H±S­MÐ'9Õ!:Õ;ð3Sñ4 ™•ð5Sñ6 ð7Sñ8 "¡$¡s¥)Õ,ð9Sñ: !ð;Sñ<  %ð=Sñ> ð?Sñ@ "ðASñB !ðCSñD ðESñF ðGSñH !¡¡t©ZÐ'7Õ!8Õ9ðISñJ !¡�ðKSñL ™s•mðMSñN ™s¡D©¥KÐ/Õ0ðOSñP *2±%­ðQSñR ™3•-ðSSñT '/©u¥oðUSñV &)ðWSñX 
‰x™Õ Ñ"3Ð3Õ	4ñYSr&   c$           
     ól  a4€ V P                   P                  o4V'       d:   V P                  P                  '       g   V P                  P                  R4       Rp\        V\        P                  4      '       g   \        VS4R7      pVP                  ^ ,          S4,          p$T$p%V P                  P                  R\        V$4      4       V'       Ed   VR8X  Ed   Vf   \        4       pM!\        V\        4      '       d   \        R// VB p\        VV4      p&\!        VV&4      w  p'p(\        P"                  ! V'^ R7      pVP                  ^ ,          S4,          p%V P                  P                  R\        V$V%,
          4      4       V P                  P%                  \&        P(                  4      '       d6   V P                  P+                  R	R
P-                  V43R lV& 4       4      4       MRp&V P                  VVR7      p)Rp*Rp+Vfô   V P                  P                  '       g   Rp^p,EM\        V\.        4      '       d"   \1        VP3                  R4      ^ ,          4      MV^ ,          p-V)P                  R0,          ^,
          p.V-V P4                  ,          V.8  d   \7        V-V P4                  ,          4      M^ p/V P9                  V)RV/R13,          V#V"R7      w  pp,p+V P                  P                  RVV,4       MIV P                  P                  '       g,   VR8w  d%   V P                  P                  RV,          4       Rp^p,\;        V P<                  V P                  P                  VVR7      p0\?        R// RVbRVbRVbRVbRV	bRV
bRVbRVbRVbRVbRVbR\        V\@        \B        34      '       d   TMV.bR VbR!VbR"VbR#V'       d   \E        V0V4      MTbR$VbR%VbR&VbR'VbR(VbR)VbR*VbR+VbR,V bR-V!b p1V PG                  V)V0V1VV*4      p2V&'       d   \I        V2V&S44      p2\K        VV,V$V%V1VV+R.7      p3V2V33# )1aï  Transcribes an input file.

Arguments:
  audio: Path to the input file (or a file-like object), or the audio waveform.
  language: The language spoken in the audio. It should be a language code such
    as "en" or "fr". If not set, the language will be detected in the first 30 seconds
    of audio.
  task: Task to execute (transcribe or translate).
  log_progress: whether to show progress bar or not.
  beam_size: Beam size to use for decoding.
  best_of: Number of candidates when sampling with non-zero temperature.
  patience: Beam search patience factor.
  length_penalty: Exponential length penalty constant.
  repetition_penalty: Penalty applied to the score of previously generated tokens
    (set > 1 to penalize).
  no_repeat_ngram_size: Prevent repetitions of ngrams with this size (set 0 to disable).
  temperature: Temperature for sampling. It can be a tuple of temperatures,
    which will be successively used upon failures according to either
    `compression_ratio_threshold` or `log_prob_threshold`.
  compression_ratio_threshold: If the gzip compression ratio is above this value,
    treat as failed.
  log_prob_threshold: If the average log probability over sampled tokens is
    below this value, treat as failed.
  no_speech_threshold: If the no_speech probability is higher than this value AND
    the average log probability over sampled tokens is below `log_prob_threshold`,
    consider the segment as silent.
  condition_on_previous_text: If True, the previous output of the model is provided
    as a prompt for the next window; disabling may make the text inconsistent across
    windows, but the model becomes less prone to getting stuck in a failure loop,
    such as repetition looping or timestamps going out of sync.
  prompt_reset_on_temperature: Resets prompt if temperature is above this value.
    Arg has effect only if condition_on_previous_text is True.
  initial_prompt: Optional text string or iterable of token ids to provide as a
    prompt for the first window.
  prefix: Optional text to provide as a prefix for the first window.
  suppress_blank: Suppress blank outputs at the beginning of the sampling.
  suppress_tokens: List of token IDs to suppress. -1 will suppress a default set
    of symbols as defined in `tokenizer.non_speech_tokens()`.
  without_timestamps: Only sample text tokens.
  max_initial_timestamp: The initial timestamp cannot be later than this.
  word_timestamps: Extract word-level timestamps using the cross-attention pattern
    and dynamic time warping, and include the timestamps for each word in each segment.
  prepend_punctuations: If word_timestamps is True, merge these punctuation symbols
    with the next word
  append_punctuations: If word_timestamps is True, merge these punctuation symbols
    with the previous word
  multilingual: Perform language detection on every segment.
  vad_filter: Enable the voice activity detection (VAD) to filter out parts of the audio
    without speech. This step is using the Silero VAD model
    https://github.com/snakers4/silero-vad.
  vad_parameters: Dictionary of Silero VAD parameters or VadOptions class (see available
    parameters and default values in the class `VadOptions`).
  max_new_tokens: Maximum number of new tokens to generate per-chunk. If not set,
    the maximum will be set by the default max_length.
  chunk_length: The length of audio segments. If it is not None, it will overwrite the
    default chunk_length of the FeatureExtractor.
  clip_timestamps:
    Comma-separated list start,end,start,end,... timestamps (in seconds) of clips to
     process. The last end timestamp defaults to the end of the file.
     vad_filter will be ignored if clip_timestamps is used.
  hallucination_silence_threshold:
    When word_timestamps is True, skip silent periods longer than this threshold
     (in seconds) when a possible hallucination is detected
  hotwords:
    Hotwords/hint phrases to provide the model with. Has no effect if prefix is not None.
  language_detection_threshold: If the maximum probability of the language tokens is higher
   than this value, the language is detected.
  language_detection_segments: Number of segments to consider for the language detection.
Returns:
  A tuple with:

    - a generator over transcribed segments
    - an instance of TranscriptionInfo
rÞ   Frß   rá   rf  Nrï   rë   z0VAD filter kept the following audio segments: %sz, c              3   ó–   <"  € T F>  pR \        VR,          S,          4      : R\        VR,          S,          4      : R2x € K@  	  R# 5i)Ú[r)   z -> r*   Ú]N)r   )rç   r  rà   s   & €r#   ré   Ú*WhisperModel.transcribe.<locals>.<genexpr>‡  s@   øé € ð ñ &3™Eô -¨U°7­^¸mÕ-KÖLÜ,¨U°5­\¸MÕ-IÖJõó
 &3ùs   ƒAA	)rØ   rì   Ú,.rñ   rò   ró   rô   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rö   r3   r÷   )&rø   rà   r}   rù   rú   rû   rü   r    r¡   r   r¯   rý   r   r   r�   r   r   r  ÚisEnabledForÚloggingÚDEBUGÚdebugr=  r.   r-   ÚsplitrŠ   rK   r¶   r   r  rN   r  r	  r
  Úgenerate_segmentsr  ro   )5r"   rÓ   rq   rÔ   rÕ   rP   rQ   rR   rS   rT   rU   rJ   rX   rV   rW   rY   rZ   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rÖ   r×   rf   rØ   rg   rh   ri   rÙ   rÚ   rs   rt   Úspeech_chunksr  r’   r‘   r”   ru   rr   Ústart_timestampÚcontent_framesrC   r„   r“   rå   rý   rà   s5   &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&                @r#   rË   ÚWhisperModel.transcribeë  s–  ø€ ðn ×.Ñ.×<Ñ<ˆç §
¡
× :× :Ð :Ø�K‰K×Ñð2ôð !ˆLä˜%¤§¡×,Ò,Ü  °mÔDˆEà—;‘;˜q•> MÕ1ˆØ%Ðà�‰×ÑØ/Ô1AÀ(Ó1Kô	
÷ ˆ:˜/¨SÕ0ØÒ%Ü!+£‘Ü˜N¬D×1Ò1Ü!+Ñ!=¨nÑ!=�Ü1°%¸ÓHˆMÜ,:¸5À-Ó,PÑ)ˆL˜/Ü—N’N <°aÔ8ˆEØ!&§¡¨Q¥°-Õ!?Ðà�K‰K×ÑØ0Ü  Ð,>Õ!>Ó?ôð
 �{‰{×'Ñ'¬¯©×6Ò6Ø—‘×!Ñ!ØFØ—I‘Iô ñ &3óó ô
øð !ˆMà×)Ñ)¨%¸lÐ)ÓKˆàˆØ!Ðð ÒØ—:‘:×-×-Ð-Ø�Ø'(Ò$ô " /´3×7Ò7ô ˜/×/Ñ/°Ó4°QÕ7Ô8à(¨Õ+ð  ð
 "*§¡°Õ!3°aÕ!7�ð '¨×)?Ñ)?Õ?À.ÔPô ˜¨$×*@Ñ*@Õ@ÔAàð ð ×(Ñ(Ø% c¨4©5 jÕ1Ø0KØ1Mð )ó ñ	ØØ(Ø&ð —‘× Ñ ØBØØ(õð —:‘:×-×-Ð-°(¸dÔ2BØ—‘×#Ñ#ð*Ø,4õ5ôð  �à#$Ð äØ×ÑØ�J‰J×&Ñ&ØØô	
ˆ	ô 'ò !
Ùð!
áð!
ñ ð!
ñ *ð	!
ñ
  2ð!
ñ "6ð!
ñ  2ð!
ñ !4ð!
ñ )Dð!
ñ (Bð!
ñ )Dð!
ô  *¨+¼¼e°}×EÒE‘ÈKÈ=øð!
ñ *ð!
ñ  ð!!
ñ" *ð#!
÷( #ô & i°ÔAà$øð+!
ñ.  2ð/!
ñ0 #8ð1!
ñ2 ,ð3!
ñ4 "6ð5!
ñ6 !4ð7!
ñ8 &ð9!
ñ: *ð;!
ñ< ,ð=!
ñ> -Lð?!
ñ@ ðA!
ˆðF ×)Ñ)Ø�i ¨,¸ó
ˆ÷ Ü0°¸=È-ÓXˆHä ØØ!5ØØ1Ø")Ø&Ø1ô
ˆð ˜ˆ~Ðr&   c                ót   <€ V ^8„  d   QhRS[ RS[S[,          RS[RS[RS[RS[RS[S[S[,          ,          /# )r(   r„   rE   r…   r†   r‡   rC   rÛ   )r   r	   rK   r-   )r/   r0   s   "€r#   r1   r0     sf   ø€ ÷ M?ñ M?áðM?ñ ‘S•	ðM?ñ ð	M?ñ
 ðM?ñ  ðM?ñ ðM?ñ 
‰d‘3�i�ñM?r&   c           
     ó  € . p\        V4      ^8¬  ;'       d/    VR,          VP                  u;8  ;'       d    VR,          8*  Mu p\        \        V4      4       U	u. uFG  p	V	^ 8”  g   K  W),          VP                  8¼  g   K%  W)^,
          ,          VP                  8¼  g   KE  V	NKI  	  p
p	\        V
4      ^ 8”  Ed   \        V
4      pV'       d   VP	                  \        V4      4       ^ pV FŽ  pW,V pV^ ,          VP                  ,
          pVR,          VP                  ,
          pW?V P
                  ,          ,           pVVV P
                  ,          ,           pVP	                  \        VVVVR7      4       TpK�  	  V'       d
   Wd,          pMãW,^,
          ,          VP                  ,
          pVVV P                  ,          ,          pM¨TpV Uu. uF  pVVP                  8¼  g   K  VNK  	  pp\        V4      ^ 8”  dF   VR,          VP                  8w  d.   VR,          VP                  ,
          pVV P
                  ,          pVP	                  \        VVVV,           VR7      4       Wd,          pWvV3# u up	i u upi )r(   )rC   r)   r*   rE   éþÿÿÿr÷   )r²   Útimestamp_beginr´   r  r‹   rI  r�   rE  )r"   r„   rE   r…   r†   r‡   rC   Úcurrent_segmentsr›   rÄ   Úconsecutive_timestampsÚslicesÚ
last_sliceÚcurrent_sliceÚsliced_tokensÚstart_timestamp_positionÚend_timestamp_positionÚ
start_timeÚend_timeÚlast_timestamp_positionrs   ÚtokenÚ
timestampss   &&&&&&&                r#   rŒ   Ú*WhisperModel._split_segments_by_timestamps   so  € ð Ðä�‹K˜1Ñ×UÐU ¨¥¨i×.GÑ.G×!UÔ!UÈ6ÐRTÍ:Ô!Uð 	 ô œ3˜v›;Ô'ó"
á'�Ø�1‰uô ð •	˜Y×6Ñ6Ñ6ô ð ˜1•u• ×!:Ñ!:Ñ:÷	 ˆAÙ'ð 	ð "
ô Ð%Ó&¨Õ*ÜÐ0Ó1ˆFß&Ø—‘œc &›kÔ*àˆJÛ!'�Ø &°-Ð @�Ø+8¸Õ+;¸i×>WÑ>WÕ+WÐ(Ø)6°rÕ):¸Y×=VÑ=VÕ)VÐ&à¸T×=PÑ=PÕ"PÕPð ð 'Ð)?À$×BUÑBUÕ)UÕU�à ×'Ñ'ÜØ!Ø(Ø$Ø,ô	ôð +’
ñ# "(÷& 'àÕ$‘ð ¨�>Õ*¨Y×-FÑ-FÕFð (ð Ð/°$×2CÑ2CÕCÕC‘ð (ˆHá#)óÙ#)˜%¨U°i×6OÑ6OÑ-O—�¡6ð ð ô �:‹ Ô" z°"¥~¸×9RÑ9RÔ'RØ*4°R­.¸9×;TÑ;TÕ*TÐ'Ø2°T×5HÑ5HÕH�à×#Ñ#ÜØØ%Ø# hÕ.Ø!ô	ôð Õ ˆDàÐ'>Ð>Ð>ùò"
ùòZs$   Á	I8Á+I8ÂI8Â$I8ÇI=Ç*I=c                ó€   <€ V ^8„  d   QhRS[ P                  RS[RS[RS[S[P                  ,          RS[S[,          /# )r(   r‘   r„   r“   r”   rÛ   )	r    r¡   r   rN   r
   r:  ÚStorageViewr   r>   )r/   r0   s   "€r#   r1   r0  O  sX   ø€ ÷ ^ñ ^á—*‘*ð^ñ ð^ñ &ð	^ñ !¡×!8Ñ!8Õ9ð^ñ 
‘'Õ	ñ^r&   c              #  ól  a8a9"  € VP                   R,          ^,
          p\        W`P                  P                  ,          4      p\	        VP
                  \        4      '       dN   VP
                  '       d   VP
                  P                  R4      M.  Uu. uF  p\        V4      NK  	  upVn        VP
                   Uu. uF  p\        W€P                  ,          4      NK   	  p	p\        V	4      ^ 8X  d   V	P                  ^ 4       \        V	4      ^,          ^8X  d   V	P                  V4       \        \        V	R,          V	R,          4      4      p
Ro8^ p^ pW¬,          ^ ,          p. p^ pVP                  e€   \	        VP                  \        4      '       dE   RVP                  P                  4       ,           pVP!                  V4      pVP#                  V4       MVP#                  VP                  4       \%        VRV'       * R7      pR	pV\        V
4      8  Ed÷   W¬,          w  ppVV8”  d   TpVV8  d   TpVV8¼  d+   V^,          pV\        V
4      8  d   W¬,          ^ ,          pK_  WÐP                  P                  ,          p\        WÐP                  P&                  ,           V P                  P                  ,          4      p\)        V P                  P&                  Wm,
          VV,
          4      pVR
WÝV,           13,          pVV P                  P                  ,          p\+        V4      pV P,                  P/                  \0        P2                  4      '       d&   V P,                  P5                  R\7        V4      4       WïR pV^ 8”  g   Vf   V P!                  V4      pVP8                  '       d[   V P:                  P=                  V4      pV^ ,          ^ ,          w  ppV^R pVP>                  PA                  V4      Vn!        VVn"        T PG                  TTVPH                  V^ 8X  d   VPJ                  MRVPL                  R7      p V PO                  VV W#4      w  p!p"p#p$VPP                  e€   V!PR                  VPP                  8„  p%VPT                  e   V"VPT                  8”  d   Rp%V%'       d>   V P,                  P5                  RV!PR                  VPP                  4       VV,          pEKæ  V!PV                  ^ ,          p&Tp'R R lo9R V8V93R llp(R R lp)V PY                  VV&VVVVR7      w  p*pp+VPZ                  '       EdU   V P]                  V*.VVVVP^                  VP`                  VR7       V+'       g3   \c        V*4      p,V,e$   V,V8”  d   \        V,V P                  ,          4      pVPd                  EeÎ   VPd                  p-V)! V*4      p.V.eL   V(! V.4      '       d>   V.R,          V,
          p/V/V-8”  d'   V'\        V/V P                  ,          4      ,           pEK  Tp0\g        \        V*4      4       EFO  p1V*V1,          pVR,          '       g   K  V(! V4      '       Ed   V)! V*V1^,           R 4      p2V2e   V2R,          ^ ,          R,          p3M	VV,           p3VR,          V0,
          V-8„  ;'       g(    VR,          V-8  ;'       g    VR,          V,
          R8  p4V3VR,          ,
          V-8„  ;'       g$    V(! V24      ;'       g    VVR,          ,
          R8  p5V4'       d[   V5'       dS   \        \i        V^,           VR,          4      V P                  ,          4      pVVR,          ,
          V-8  d   Tp. V*V1R%  MVR,          p0EKR  	  \c        V*4      p,V,e   T,pV* FÈ  pVR,          p&VPk                  V&4      p6VR,          VR,          8X  g   V6P                  4       '       g   KJ  VP#                  V&4       V^,          p\m        TT'VR,          VR,          T6T&T#T"T$V!PR                  VPZ                  '       d#   VR,           U7u. uF  p7\o        R / V7B NK  	  up7MRR7      x € KÊ  	  VPp                  '       d   V#VPr                  8”  dE   VPp                  '       d(   V P,                  P5                  RV#VPr                  4       \        V4      pVPu                  \)        Wm4      V',
          V P                  P                  ,          4       EK  VPw                  4        R# u upi u upi u up7i 5i)!rõ   rm  :NNr(   :rõ   Nr(   u*   "'â€œÂ¿([{-"'.ã€‚,ï¼Œ!ï¼�?ï¼Ÿ:ï¼šâ€�)]}ã€�NÚ Úseconds)r  Úunitr  r|   :NNNzProcessing segment at %s)r`   r]   ri   Fz$No speech threshold is met (%f > %f)c                ó0   € V ^8„  d   QhR\         R\        /# )r(   r+   rÛ   )r�   r-   )r/   s   "r#   r1   Ú4WhisperModel.generate_segments.<locals>.__annotate__Ú  s   € ÷ 
ñ 
¬ð 
´%ñ 
r&   c                 óä   € V P                  R R4      pV R,          V R,          ,
          pRpVR8  d
   VR,          pVR8  d   VRV,
          ^,          ,          pVR8”  d   W2R,
          ,          pV# )r,   r|   r*   r)   g333333Ã?rÍ   g /Ý$Á?ç       @)Úget)r+   r,   rs   Úscores   &   r#   Úword_anomaly_scoreÚ:WhisperModel.generate_segments.<locals>.word_anomaly_scoreÚ  sn   € Ø"Ÿh™h }°cÓ:�Ø �;¨¨g­Õ6�Ø�Ø Ô%Ø˜S•L�EØ˜eÔ#Ø˜e hÕ.°"Õ4Õ4�EØ˜c”>Ø¨�^Õ+�EØ�r&   c                óF   € V ^8„  d   QhR\         \        ,          R\        /# ©r(   rè   rÛ   )r
   r�   rj   )r/   s   "r#   r1   r‘  æ  s"   € ÷ @ñ @¬H´T­Nð @¼tñ @r&   c                 ó  <€ V e   V R,          '       g   R# V R,           Uu. uF  qR,          S9  g   K  VNK  	  ppVR,          p\        V3R lV 4       4      pV^8¬  ;'       g    VR,           \        V4      8¬  # u upi )NrI   Fr+   :Né   Nc              3   ó4   <"  € T F  pS! V4      x € K  	  R # 5i©Nr3   )rç   Úwr–  s   & €r#   ré   ÚMWhisperModel.generate_segments.<locals>.is_segment_anomaly.<locals>.<genexpr>ë  s   øé € ÐA¹5°aÑ.¨q×1Ð1»5ùs   ƒg{®Gáz„?)r  r²   )rè   rž  rI   r•  Úpunctuationr–  s   &   €€r#   Úis_segment_anomalyÚ:WhisperModel.generate_segments.<locals>.is_segment_anomalyæ  sy   ø€ Ø’?¨'°'×*:Ô*:Ù Ø$+¨GÖ$4ÓUÑ$4˜q¸&½	ÈÑ8TŸ˜Ñ$4�ÐUØ˜b�	�ÜÔA¹5ÓAÓA�Ø ‘z×?Ð? U¨T¥\´S¸³ZÑ%?Ð?ùò Vs
   ¢A>¶A>c                ó\   € V ^8„  d   QhR\         \        ,          R\        \        ,          /# )r(   rå   rÛ   )r	   r�   r
   )r/   s   "r#   r1   r‘  î  s&   € ÷ Gñ G¬T´$­Zð G¼HÄT½Nñ Gr&   c                 ó(   € \        R  V  4       R4      # )c              3   óF   "  € T F  qR ,          '       g   K  Vx € K  	  R# 5i)rI   Nr3   )rç   Úss   & r#   ré   ÚMWhisperModel.generate_segments.<locals>.next_words_segment.<locals>.<genexpr>ï  s   é € Ð?© 1°g·J±JŸQšQ«ùs   ‚!—
!N)Únext)rå   s   &r#   Únext_words_segmentÚ:WhisperModel.generate_segments.<locals>.next_words_segmentî  s   € ÜÑ?©Ó?ÀÓFÐFr&   rƒ   )r~   r)   rI   r“  r*   rE   )rB   rC   r)   r*   rD   rE   rJ   rF   rG   rH   rI   zBReset prompt. prompt_reset_on_temperature threshold is met %f > %fr÷   rz  r3   )<r¯   r-   rø   Útime_per_framerü   rg   r.   rr  r  rŠ   r²   r‹   r  r‰   r\   Ústripr±   Úextendr   Únb_max_framesÚminr   rú   rn  ro  rp  rq  r   re   r}   r¶   r„   r·   rq   Úlanguage_coder°   r`   r]   ri   Úgenerate_with_fallbackrW   rH   rV   r»   rŒ   rb   r�   rc   rd   r   rh   r´   ÚmaxrŽ   r>   r   rY   rZ   r  r  ):r"   r‘   r„   r“   rÕ   r”   rv  Úcontent_durationÚtsÚseek_pointsÚ
seek_clipsÚidxÚclip_idxrC   Ú
all_tokensÚprompt_reset_sincer\   Úinitial_prompt_tokensr  r~   Úseek_clip_startÚseek_clip_endr…   Úwindow_end_timer†   rè   r‡   r¤   rÆ   rÅ   rr   rq   r¾   rÇ   rF   rJ   rG   Úshould_skiprE   Úprevious_seekr¡  r©  r|  r›   Úlast_word_endÚ	thresholdÚfirst_segmentÚgapÚhal_last_endÚsiÚnext_segmentÚhal_next_startÚsilence_beforeÚsilence_afterrD   r+   r   r–  s:   &&&&&&                                                  @@r#   rs  ÚWhisperModel.generate_segmentsO  s¶  ùé € ð "Ÿ™¨Õ+¨aÕ/ˆÜ  ×2HÑ2H×2WÑ2WÕ!WÓXÐä�g×-Ñ-¬s×3Ò3ð
 ×.×.Ð.ð ×+Ñ+×1Ñ1°#Ô6àðó'ñð ô �b–	ññ'ˆGÔ#ð :A×9PÒ9Pó"
Ù9P°2ŒE�"×-Ñ-Õ-Ö.Ñ9Pð 	ð "
ô ˆ{Ó˜qÔ Ø×Ñ˜qÔ!Üˆ{Ó˜aÕ 1Ô$Ø×Ñ˜~Ô.Ü,0Ü�˜CÕ  +¨dÕ"3Ó4ó-
ˆ
ð EˆàˆØˆØÕ# AÕ&ˆØˆ
ØÐà×!Ñ!Ò-Ü˜'×0Ñ0´#×6Ò6Ø!$ w×'=Ñ'=×'CÑ'CÓ'EÕ!E�Ø(1×(8Ñ(8¸Ó(HÐ%Ø×!Ñ!Ð"7Õ8à×!Ñ! '×"8Ñ"8Ô9äÐ*°ÈÔDTÔUˆØ #Ðð
 œ˜Z›Õ(Ø-7Õ-AÑ*ˆO˜]Ø˜~Ô-Ø .�Ø�oÔ%Ø&�Ø�}Ô$Ø˜A•�Øœc *›oÔ-Ø%Õ/°Õ2�DÙØ×!7Ñ!7×!FÑ!FÕFˆKÜ#Ø×.Ñ.×<Ñ<Õ<Ø×(Ñ(×7Ñ7õ8óˆOô Ø×&Ñ&×4Ñ4ØÕ%Ø Õ$óˆLð
 ˜q $°Õ)<Ð"<Ð<Õ=ˆGØ+¨d×.DÑ.D×.SÑ.SÕSÐÜ! 'Ó*ˆGà�{‰{×'Ñ'¬¯©×6Ò6Ø—‘×!Ñ!Ø.Ô0@ÀÓ0Môð )Ð)<Ð=ˆOà�aŒx˜>Ò1Ø!%§¡¨WÓ!5�à×#×#Ð#ØŸ*™*×4Ñ4°^ÓD�Ø7>¸qµzÀ!µ}Ñ4�Ð 4Ø)¨!¨BÐ/�à%.×%8Ñ%8×%DÑ%DÀ^Ó%T�	Ô"Ø*2�	Ô'à—_‘_ØØØ#*×#=Ñ#=Ø)-°¬�w—~’~¸Ø ×)Ñ)ð %ó ˆFð ×+Ñ+¨N¸FÀIÓWñØØØØ!ð ×*Ñ*Ò6à$×3Ñ3°g×6QÑ6QÑQ�ð ×.Ñ.Ò:Ø# g×&@Ñ&@Ô@ð #(�KçØ—K‘K×%Ñ%Ø>Ø×-Ñ-Ø×3Ñ3ôð ˜LÕ(�DÚà×)Ñ)¨!Õ,ˆFà ˆMõ
÷@ñ @õGð ×2Ñ2Ø#ØØ'Ø)Ø!1Øð 3ó ñ	Ø ØØ'ð ×&×&Ñ&Ø×(Ñ(Ø%Ð&ØØ"Ø Ø×0Ñ0Ø×/Ñ/Ø*?ð )ô ÷ /Ü$+Ð,<Ó$=�MØ$Ò0°]À[Ô5PÜ$ ]°T×5KÑ5KÕ%KÓL˜ð ×:Ñ:ÓFØ '× GÑ G�Iñ %7Ð7GÓ$H�MØ$Ò0Ñ5GÈ×5VÒ5VØ+¨GÕ4°{ÕB˜Ø œ?Ø#0´5¸¸t×?UÑ?UÕ9UÓ3VÕ#V˜DÚ$ð $9�LÜ#¤CÐ(8Ó$9×:˜Ø"2°2Õ"6˜Ø& w×/Ô/Ù$Ù-¨g×6Ó6Ù+=Ø 0°°aµ°Ð :ó,˜Lð  ,Ò7Ø1=¸gÕ1FÀqÕ1IÈ'Õ1R¡à1<Ð?OÕ1O à '¨Õ 0°<Õ ?À)Ñ K÷ !Hð !HØ#*¨7Õ#3°iÑ#?÷!Hð !Hà#*¨7Õ#3°kÕ#AÀCÑ#Gð +ð !/°¸µÕ ?À)Ñ K÷ !Jð !JÙ#5°lÓ#C÷!Jð !Jà#2°W¸Uµ^Õ#CÀcÑ#Ið *÷
  .·-Ü',Ü$'¨°a­¸ÀÕ9IÓ$JØ&*×&<Ñ&<õ%=ó(" ð $4°g¸eµnÕ#DÀyÔ#PØ+9 DØ8:Ð 0°°Ð 5Ù %Ø'.¨u¥~›ñ? ;ôB !(Ð(8Ó 9�Ø Ò,Ø,9Ð)Û+�Ø  Õ*�Ø ×'Ñ'¨Ó/�à˜7Õ# w¨u¥~Ô5¸T¿Z¹Z¿\º\Ùà×!Ñ! &Ô)Ø�q•�äØØ&Ø! 'Õ*Ø �ØØ!Ø +Ø +Ø&7Ø#)×#8Ñ#8ð #×2×2Ð2ð 3:¸'Ö2BÓCÑ2B¨$œ™ œÑ2BÒCà!ôô ñ ,ð: ×6×6Ð6Ø ×!DÑ!DÔDà×5×5Ð5Ø—K‘K×%Ñ%Ø\Ø#Ø×;Ñ;ôô &)¨£_Ð"à�K‰KÜ�^Ó*¨]Õ:Ø×(Ñ(×7Ñ7õ8÷ð 	�
‰
Žùòe'ùò"
ùòd Dùs“   „A1d4Á6d4Âd%Â)d4Â?$d*Ã#Kd4Î6C>d4Ò5Bd4Õ4d4Ö A&d4×'A?d4Ù'Ad4Ú8d4Û-d4Û:d4Ü
d4Ü&d4Ü.B:d4ß)A d4á	d/á!d4á?"d4â"Bd4c                óN   <€ V ^8„  d   QhRS[ P                  RS[P                  /# )r(   r‘   rÛ   ©r    r¡   r:  r‹  )r/   r0   s   "€r#   r1   r0  o  s%   ø€ ÷ 	:ñ 	:™rŸz™zð 	:©k×.EÑ.Eñ 	:r&   c                ó&  € V P                   P                  R 8H  ;'       d#    \        V P                   P                  4      ^8„  pVP                  ^8X  d   \
        P                  ! V^ 4      p\        V4      pV P                   P                  WR7      # )Úcuda)Úto_cpu)	r}   r&  r²   r'  Úndimr    Úexpand_dimsÚget_ctranslate2_storager±   )r"   r‘   rÐ  s   && r#   r±   ÚWhisperModel.encodeo  ss   € ð —‘×"Ñ" fÑ,×QÐQ´°T·Z±Z×5LÑ5LÓ1MÐPQÑ1Qˆà�=‰=˜AÔÜ—~’~ h°Ó2ˆHÜ*¨8Ó4ˆà�z‰z× Ñ  Ð Ó9Ð9r&   c                ó¢   <€ V ^8„  d   QhRS[ P                  RS[S[,          RS[RS[RS[S[ P                  P                  S[	S[	S[	3,          /# )r(   r”   r¾   r„   r“   rÛ   )
r:  r‹  r	   rK   r   rN   r   r;  ÚWhisperGenerationResultr-   )r/   r0   s   "€r#   r1   r0  z  sh   ø€ ÷ @ñ @á#×/Ñ/ð@ñ ‘S•	ð@ñ ð	@ñ
 &ð@ñ 
‰{×!Ñ!×9Ñ9¹5Á%ÉÐNÕ	Oñ@r&   c                ó„  € R p. p. p\        \        VP                  V P                  ,          4      4      pVP                  e   \        V4      VP                  ,           p	MV P                  p	W�P                  8”  dI   \        R\        V4       RV	\        V4      ,
           RV	 RV P                   RV P                   R24      hVP                   EF7  p
V
^ 8”  d   R^RVP                  R	^ R
V
/pMRVP                  RVP                  /pV P                  P                  ! VV.3RVP                  RVP                  RVP                   RV	RRRRRVP"                  RVP$                  RV/	VB ^ ,          pVP&                  ^ ,          p\        V4      pVP(                  ^ ,          WäP                  ,          ,          pWþ^,           ,          pVP+                  V4      P-                  4       p\/        V4      pVVV
V3pVP1                  V4       RpVP2                  eN   VVP2                  8”  d,   RpV P4                  P7                  RV
VVP2                  4       MVP1                  V4       VP8                  e<   VVP8                  8  d+   RpV P4                  P7                  RV
VVP8                  4       VP:                  e=   VP<                  VP:                  8”  d"   VP8                  e   VVP8                  8  d   RpV'       d   EK7   V# 	  \?        T;'       g    TR R7      pV^ ,          V^,          X
V^,          3pV# )Nr¥   r¦   r§   r¨   r©   rª   rP   Únum_hypothesesÚsampling_topkr®   rR   rS   rT   rU   r«   r¬   Tr­   r^   r_   Úmax_initial_timestamp_indexFzFCompression ratio threshold is not met with temperature %.1f (%f > %f)zDLog probability threshold is not met with temperature %.1f (%f < %f)c                 ó   € V ^,          # )rõ   r3   )Úxs   &r#   Ú<lambda>Ú5WhisperModel.generate_with_fallback.<locals>.<lambda>ð  s   € ÈÈ1Îr&   ©Úkey) rK   r  ra   rI  rf   r²   r«   r³   r[   rQ   rP   rR   r}   rº   rS   rT   rU   r^   r_   r»   r¼   rŽ   r¬  r�   r‹   rX   rú   rq  rV   rW   rH   r²  )r"   r”   r¾   r„   r“   Údecode_resultÚall_resultsÚbelow_cr_threshold_resultsrÚ  r«   rJ   ÚkwargsrÇ   rE   rÈ   rÉ   rF   rD   rG   Úneeds_fallbacks   &&&&&               r#   r±  Ú#WhisperModel.generate_with_fallbackz  s�  € ð ˆØˆØ%'Ð"ä&)Ü�'×/Ñ/°$×2EÑ2EÕEÓFó'
Ð#ð ×!Ñ!Ò-Ü˜V› w×'=Ñ'=Õ=‰JàŸ™ˆJàŸ™Ô'ÜØ.¬s°6«{¨mÐ;VØ¤ F£Õ+Ð,ð -,Ø,6¨<ð 86Ø6:·o±oÐ5Fð G>ð ?C¿o¹oÐ=NÈaðQóð ð #×/Õ/ˆKØ˜QŒà Ø$ g§o¡oØ# QØ*¨Kð	‘ð   ×!2Ñ!2Ø × 0Ñ 0ð�ð
 —Z‘Z×(Ò(ØØ�ñð  '×5Ñ5ðð $+×#=Ñ#=ð	ð
 &-×%AÑ%Aðð &ðð #ðð '+ðð  '×5Ñ5ðð !(× 7Ñ 7ðð -Hðð ñð õˆFð ×)Ñ)¨!Õ,ˆFô ˜&“kˆGØ Ÿ-™-¨Õ*¨g×7MÑ7MÕ.MÕNˆKØ%°1­Õ5ˆKà×#Ñ# FÓ+×1Ñ1Ó3ˆDÜ 5°dÓ ;Ðð ØØØ!ð	ˆMð ×Ñ˜}Ô-à"ˆNà×2Ñ2Ò>Ø$ w×'JÑ'JÔJØ%)�Nà—K‘K×%Ñ%Ø`Ø#Ø)Ø×;Ñ;õ	ð /×5Ñ5°mÔDð ×*Ñ*Ò6Ø '×"<Ñ"<Ô<à!%�à—‘×!Ñ!ØZØØØ×.Ñ.ô	ð ×+Ñ+Ò7Ø×)Ñ)¨G×,GÑ,GÔGØ×.Ñ.Ò:Ø '×"<Ñ"<Ô<à!&�ç!’>Øð ÐñE 0ôn  Ø*×9Ð9¨k¹~ôˆMð
 ˜aÕ Ø˜aÕ ØØ˜aÕ ð	ˆMð Ðr&   c                ó~   <€ V ^8„  d   QhRS[ RS[S[,          RS[RS[S[,          RS[S[,          RS[S[,          /# )r(   r„   r¤   r`   r]   ri   rÛ   )r   r	   rK   rj   r
   r.   )r/   r0   s   "€r#   r1   r0  ü  sW   ø€ ÷ !ñ !áð!ñ ™c�ð!ñ !ð	!ñ
 ™•ð!ñ ™3•-ð!ñ 
‰c�ñ!r&   c                óž  € . pV'       g   V'       dÝ   V'       gÕ   VP                  VP                  4       V'       d~   V'       gv   VP                  R VP                  4       ,           4      p\	        V4      V P
                  ^,          8¼  d   VRV P
                  ^,          ^,
           pVP                  V4       V'       d-   VP                  W P
                  ^,          ^,
          ) R 4       VP                  VP                  4       V'       d   VP                  VP                  4       V'       d™   VP                  R VP                  4       ,           4      p\	        V4      V P
                  ^,          8¼  d   VRV P
                  ^,          ^,
           pV'       g   VP                  VP                  4       VP                  V4       V# )r�  N)
r‹   Úsot_prevr±   r¬  r²   r«   r­  Úsot_sequenceÚno_timestampsr{  )	r"   r„   r¤   r`   r]   ri   r¾   Úhotwords_tokensÚprefix_tokenss	   &&&&&&   r#   r°   ÚWhisperModel.get_promptü  sB  € ð ˆçŸx·Ø�M‰M˜)×,Ñ,Ô-ß§Ø"+×"2Ñ"2°3¸¿¹Ó9IÕ3IÓ"J�Ü�Ó'¨4¯?©?¸aÕ+?Ô?Ø&5Ð6P¸¿¹È1Õ8LÈqÕ8PÐ&Q�OØ—‘˜oÔ.ßØ—‘˜o·±À1Õ0DÀqÕ0HÐ.IÐ.KÐLÔMà�‰�i×,Ñ,Ô-çØ�M‰M˜)×1Ñ1Ô2çØ%×,Ñ,¨S°6·<±<³>Õ-AÓBˆMÜ�=Ó! T§_¡_¸Õ%9Ô9Ø -Ð.H°·±À1Õ0DÀqÕ0HÐ I�ß%Ø—‘˜i×7Ñ7Ô8Ø�M‰M˜-Ô(àˆr&   c                ón   <€ V ^8„  d   QhRS[ S[,          RS[RS[P                  RS[RS[RS[RS[RS[/# )	r(   rå   r„   r”   Ú
num_framesrc   rd   r~   rÛ   )r	   r�   r   r:  r‹  rK   r.   r-   )r/   r0   s   "€r#   r1   r0    so   ø€ ÷ A%ñ A%á‘t•*ðA%ñ ðA%ñ $×/Ñ/ð	A%ñ
 ðA%ñ "ðA%ñ !ðA%ñ  %ðA%ñ 
ñA%r&   c                ó*  € \        V4      ^ 8X  d   R# . p. p	V F‡  p
V
 UUu. uF.  pVR,           Uu. uF  qÌVP                  8  g   K  VNK  	  upNK0  	  pppVP                  \        \        P
                  P                  V4      4      4       V	P                  V4       K‰  	  V P                  W(W44      p. pV EFŒ  p\        P                  ! V Uu. uF  pVR,          VR,          ,
          NK  	  up4      pVVP                  4       ,          p\        V4      ^ 8”  d   \        P                  ! V4      MRp\        R\        V4      4      pV^,          p\        V4      ^ 8”  dÂ   Rp\        ^\        V4      4       F¦  pVV,          R,          VV,          R,          ,
          V8”  g   K/  VV,          R,          V9   d$   VV,          R,          V,           VV,          R&   Kg  VV^,
          ,          R,          V9   g   K…  VV,          R,          V,
          VV,          R&   K¨  	  \        VWV4       VP                  VV34       EK�  	  \!        V4       EF¨  w  pp
^ pV
^ ,          R	,          V P"                  ,          pVV,          w  pp\!        V
4       EFb  w  pp^ p. pV\        VV,          4      8  d¾   V\        V	V,          V,          4      8  d    VV,          V,          pVR,          '       d]   VP                  \%        VR,          \'        VVR,          ,           ^4      \'        VVR,          ,           ^4      VR
,          R7      4       V\        VR,          4      ,          pV^,          pKÔ  \        V4      ^ 8”  Ed`   V^ ,          R,          V,
          V^,          8”  Ed   V^ ,          R,          V^ ,          R,          ,
          V8”  gB   \        V4      ^8”  då   V^,          R,          V^ ,          R,          ,
          V^,          8”  d´   \        V4      ^8”  dy   V^,          R,          V^,          R,          ,
          V8”  dO   \)        V^,          R,          ^,          V^,          R,          V,
          4      pV;V^ ,          R&   V^,          R&   \)        ^ V^ ,          R,          V,
          4      V^ ,          R&   VR,          V^ ,          R,          8  da   VR,          R,
          V^ ,          R,          8”  d>   \)        ^ \        V^ ,          R,          V,
          VR,          4      4      V^ ,          R&   MV^ ,          R,          VR&   VR,          VR,          R,          8”  dW   VR,          R,           VR,          R,          8  d4   \)        VR,          R,          V,           VR,          4      VR,          R&   MVR,          R,          VR&   VR,          pVVV,          V,          R&   EKe  	  EK«  	  V# u upi u uppi u upi )r   NrE   r*   r)   r|   gffffffæ?u   .ã€‚!ï¼�?ï¼Ÿr+   rC   r,   )r+   r)   r*   r,   rÏ   rI   r÷   )r²   Úeotr‹   r  Ú	itertoolsÚchainÚfrom_iterableÚfind_alignmentr    ÚarrayÚnonzeroÚmedianr¯  r-   r´   Úmerge_punctuationsr¹   rŠ   r�   r  r²  )r"   rå   r„   r”   rð  rc   rd   r~   Útext_tokensÚtext_tokens_per_segmentrè   rœ   r‡  Úsegment_tokensÚ
alignmentsÚmedian_max_durationsÚ	alignmentr+   Úword_durationsÚmedian_durationrä   Úsentence_end_marksrÄ   Úsegment_idxÚ
word_indexr…   Úsubsegment_idxÚsaved_tokensrI   ÚtimingÚboundarys   &&&&&&&&                       r#   r�   Ú WhisperModel.add_word_timestamps  sf  € ô ˆx‹=˜AÔÙàˆØ"$ÐÛˆGñ #*ôá")�Jð %/¨xÖ$8ÓRÑ$8˜5ÀIÇMÁMÑ<Q—�Ñ$8ÔRÙ")ð ñ ð ×Ñœt¤I§O¡O×$AÑ$AÀ.Ó$QÓRÔSØ#×*Ñ*¨>Ö:ñ  ð ×(Ñ(Ø Nó
ˆ
ð  "ÐÜ#ˆIÜŸXšXÙ9BÓC¹°��e•˜t G�}×,Ð,¹ÑCóˆNð ,¨N×,BÑ,BÓ,DÕEˆNä-0°Ó-@À1Ô-D”—	’	˜.Ô)È#ð ô " #¤u¨_Ó'=Ó>ˆOØ*¨QÕ.ˆLô �>Ó" QÔ&Ø%3Ð"ô ˜q¤# i£.Ö1�AØ  •| EÕ*¨Y°q­\¸'Õ-BÕBÀ\ÖQØ$ Q�<¨Õ/Ð3EÔEØ2;¸Aµ,¸wÕ2GÈ,Õ2V˜I a�L¨Ó/Ø& q¨1¥uÕ-¨fÕ5Ð9KÖKØ4=¸aµLÀÕ4GÈ,Õ4V˜I a�L¨Ó1ñ 2ô ˜yÐ*>ÔTØ ×'Ñ'¨¸,Ð(G×Hñ3 $ô6 %.¨h×$7Ñ ˆK˜ØˆJØ! !�* VÕ,¨t×/EÑ/EÕEˆKØ,@ÀÕ,MÑ)ˆO˜\Ü.7¸×.@Ñ*� 
Ø �Ø�à ¤3 z°+Õ'>Ó#?Ô?ÀLÔSVØ+¨KÕ8¸ÕHóTô Eð (¨Õ4°ZÕ@�Fà˜f—~”~ØŸ™Ü Ø%+¨F¥^Ü&+¨K¸&À½/Õ,IÈ1Ó&MÜ$)¨+¸¸u½Õ*EÀqÓ$IØ,2°=Õ,Aô	ôð !¤C¨¨xÕ(8Ó$9Õ9�LØ !•O’Jô �u“: •>ð ˜Q•xØõà-õ.à0?À!Õ0CõDð ˜a� �¨%°­(°7Õ*;Õ;¸lÔJä ›J¨œNØ % a¥¨¥°%¸µ(¸7Õ2CÕ CÀlÐUVÕFVÔ Vô   ›J¨œNØ % a¥¨¥°%¸µ(¸7Õ2CÕ CÀlÔ Rä'*Ø % a¥¨¥°!Õ 3°U¸1µX¸eµ_À|Õ5Só(˜Hð CKÐJ˜E !�H U™O¨e°A­h°wÑ.?Ü,/°°5¸µ8¸Eµ?À\Õ3QÓ,R˜˜a� Ñ)ð # 7Õ+¨e°A­h°u­oÔ=Ø& wÕ/°#Õ5¸¸a½ÀÕ8IÔIä,/ØÜ  a¥¨¥°/Õ AÀ:ÈgÕCVÓWó-˜˜a� Ò)ð
 /4°A­h°wÕ.?˜
 7Ñ+ð # 5Õ)¨E°"­I°gÕ,>Ô>Ø& uÕ-°Õ3°e¸BµiÀÕ6FÔFä+.Ø! "�I gÕ.°Õ@À*ÈUÕBSó,˜˜b�	 %Ò(ð -2°"­I°eÕ,<˜
 5Ñ)à,6°uÕ,=Ð)ØAF�˜Õ% nÕ5°gÔ>ôM /Añ	 %8ðV %Ð$ùòa Sùóùò Ds"   ¡X
±XÁXÁX
Ã X
ØX
c                ór   <€ V ^8„  d   QhRS[ RS[S[,          RS[P                  RS[RS[RS[S[,          /# )r(   r„   rû  r”   rð  Úmedian_filter_widthrÛ   )r   r	   rK   r:  r‹  r�   )r/   r0   s   "€r#   r1   r0  ¢  s]   ø€ ÷ Dñ DáðDñ ™#•YðDñ $×/Ñ/ð	Dñ
 ðDñ !ðDñ 
‰d�ñDr&   c                ó2  € \        V4      ^ 8X  d   . # V P                  P                  VVP                  VVVR7      p. p\	        Wb4       EF*  w  r‰VP
                  p
VP                  p\        P                  ! V Uu. uF  qÌ^ ,          NK  	  up4      p\        P                  ! V Uu. uF  qÌ^,          NK  	  up4      pVP                  W‘P                  .,           4      w  pp\        V4      ^8:  d   VP                  . 4       K¾  \        P                  ! \        P                  ! VRR  Uu. uF  p\        V4      NK  	  up4      R4      p\        V4      ^8:  d   VP                  . 4       EK)  \        P                  ! \        P                  ! V4      R^R7      P                  \         4      pVV,          V P"                  ,          pVVRR ,          pVVR,          ,          p\	        VRR VR,          4       UUu. uF  w  pp\        P$                  ! V
VV 4      NK!  	  pppTP                  \	        VVVVV4       UUUUUu. uF  w  ppppp\'        VVVVVR7      NK  	  uppppp4       EK-  	  V# u upi u upi u upi u uppi u upppppi )r   )r  N)Úconstant_values:rõ   NN)r+   rE   r)   r*   r,   r÷   )rõ   r   )r²   r}   Úalignrê  r‰   Útext_token_probsrþ  r    r÷  Úsplit_to_word_tokensrò  r‹   ÚpadÚcumsumÚdiffÚastyperj   rH  Úmeanr�   )r"   r„   rû  r”   rð  r  rÆ   Úreturn_listrÇ   Ú
text_tokenr  rþ  ÚpairÚtext_indicesÚtime_indicesrI   Úword_tokensÚtÚword_boundariesÚjumpsÚ
jump_timesÚstart_timesÚ	end_timesrÄ   ÚjÚword_probabilitiesr+   rE   r)   r*   r,   s   &&&&&&                         r#   rö  ÚWhisperModel.find_alignment¢  s„  € ô ˆ{Ó˜qÔ ØˆIà—*‘*×"Ñ"ØØ×"Ñ"ØØØ 3ð #ó 
ˆð ˆÜ"% g×";ÑˆFØ%×6Ñ6ÐØ×*Ñ*ˆJÜŸ8š8¹Ó$D¹°¨!§W W¹Ñ$DÓEˆLÜŸ8š8¹Ó$D¹°¨!§W W¹Ñ$DÓEˆLà!*×!?Ñ!?ØŸm™m˜_Õ,ó"ÑˆE�;ô �;Ó 1Ô$ð ×"Ñ" 2Ô&ÙÜ ŸfšfÜ—	’	¨;°s¸Ñ+;Ó<Ñ+; aœ3˜qž6Ñ+;Ñ<Ó=¸vóˆOô �?Ó# qÔ(Ø×"Ñ" 2Ô&Úä—F’Fœ2Ÿ7š7 <Ó0°&È!ÔL×SÑSÜóˆEð & eÕ,¨t×/EÑ/EÕEˆJØ$ _°S°bÐ%9Õ:ˆKØ" ?°2Õ#6Õ7ˆIô   °°Ð 4°oÀbÕ6IÔJô"áJ‘D�A�qô —’Ð(¨¨1Ð-Ö.ÙJð ñ "ð
 ×Ñô BEØ˜{¨K¸ÐDVôB÷ñBÑ=˜˜f e¨S°+ô Ø!Ø%Ø#ØØ$/÷ñBõ÷ñG #<ðb Ðùò] %EùÚ$Dùò =ùó"ùös   Á<I;
Â(J 
Ä/JÈ%J
É
Jc                óâ   <€ V ^8„  d   QhRS[ S[P                  ,          RS[ S[P                  ,          RS[RS[S[S[3,          RS[RS[RS[	S[
S[S[S[	S[
S[3,          ,          3,          /# )r(   rÓ   r‘   rÖ   r×   rÚ   rÙ   rÛ   )r
   r    r¡   rj   r   r�   r   rK   r-   r   r.   r	   )r/   r0   s   "€r#   r1   r0  è  s™   ø€ ÷ IBñ IBá™Ÿ
™
Õ#ðIBñ ™2Ÿ:™:Õ&ðIBñ ð	IBñ
 ™d¡JÐ.Õ/ðIBñ &)ðIBñ ',ðIBñ 
‰s‘E™4¡¡c©5 jÕ 1Õ2Ð2Õ	3ñIBr&   c           
     ó|  a€ Vf   Vf   Q R4       hVei   V'       d1   \        W4      p\        W4      w  r‰\        P                  ! V^ R7      pVRWPP                  P
                  ,           pV P	                  V4      pVRRWPP                  P                  ,          13,          p/ o\        ^ VP                  R,          V P                  P                  4       F´  p
V P                  \        VRWªV P                  P                  ,           13,          4      4      pV P                  P                  V4      ^ ,          pV UUu. uF  w  rÞV^R V3NK  	  pppV^ ,          w  ppVV8”  d    MHSP                  V. 4      P                  V4       K¶  	  \        SV3R lR7      p\        SV,          4      pVVX3# u uppi )	aU  
Use Whisper to detect the language of the input audio or features.

Arguments:
    audio: Input audio signal, must be a 1D float array sampled at 16khz.
    features: Input Mel spectrogram features, must be a float array with
        shape (n_mels, n_frames), if `audio` is provided, the features will be ignored.
        Either `audio` or `features` must be provided.
    vad_filter: Enable the voice activity detection (VAD) to filter out parts of the audio
        without speech. This step is using the Silero VAD model.
    vad_parameters: Dictionary of Silero VAD parameters or VadOptions class (see available
        parameters and default values in the class `VadOptions`).
    language_detection_threshold: If the maximum probability of the language tokens is
        higher than this value, the language is detected.
    language_detection_segments: Number of segments to consider for the language detection.

Returns:
    language: Detected language.
    language_probability: Probability of the detected language.
    all_language_probs: List of tuples with all language names and probabilities.
Nz.Either `audio` or `features` must be provided.rï   .c                 ó(   <€ \        SV ,          4      # r�  )r²   )ÚlangÚdetected_language_infos   &€r#   rÝ  Ú.WhisperModel.detect_language.<locals>.<lambda>-  s   ø€ ¤Ð%;¸DÕ%AÔ!Br&   rß  r÷   rz  )r   r   r    r  rø   Ú	n_samplesr®  r´   r¯   r±   r   r}   r¶   Ú
setdefaultr‹   r²  )r"   rÓ   r‘   rÖ   r×   rÚ   rÙ   rt  r  r’   rÄ   r”   rÆ   r‡  Úprobru   rq   rr   r*  s   &&&&&&&           @r#   r¶   ÚWhisperModel.detect_languageè  sÃ  ø€ ð> Ò Ò!5ð	<à;ó	<Ø5ð ÒßÜ 5°eÓ L�Ü0>¸uÓ0TÑ-�ÜŸš |¸!Ô<�àØPÐ-×0FÑ0F×0PÑ0PÕPðˆEð ×-Ñ-¨eÓ4ˆHàØÐUÐ.×1GÑ1G×1UÑ1UÕUÐUÐUõ
ˆð "$ÐÜ�q˜(Ÿ.™.¨Õ,¨d×.DÑ.D×.RÑ.RÖSˆAØ!Ÿ[™[Ü˜H S¨!°$×2HÑ2H×2VÑ2VÕ.VÐ*VÐ%VÕWÓXóˆNð —j‘j×0Ñ0°Ó@ÀÕCˆGñ LSÔ!SÉ7¹-¸5 5¨¨2 ;°Ó"5É7ÐÑ!Sà-?ÀÕ-BÑ*ˆHÐ*Ø#Ð&BÔBÙØ"×-Ñ-¨h¸Ó;×BÑBÐCWÖXñ Tô" Ø&ÜBôˆHô $'Ð'=¸hÕ'GÓ#HÐ àÐ-Ð/AÐAÐAùó "Ts   ÅF8)rD  rø   rŠ   r  rE  rú   r«   r}   rG  rI  rH  )
Úautor   Údefaultr   rõ   NFNNNr�  r   r!  r÷   )FNN)é   )NNFNrõ   rÏ   )r5   r6   r7   r8   r   ÚpropertyrS  rC  rË   rŒ   rs  r±   r±  r°   r�   rö  r¶   r:   r;   r<   s   @r#   r#  r#  l  s  ø‡ € ÷eò eðN ÷Oó ðO÷ò ð* #'Ø Ø"ØØØØ !Ø$%Ø$%òE
ð 8;Ø.2Ø/2Ø+/Ø-0Ø>BØ $Ø#Ø02¨tØ#(Ø'*Ø %Ø$2Ø#EØ"Ø Ø<@Ø(,Ø&*Ø36Ø;?Ø"&Ø8;Ø+,÷WSò S÷jM?ð M?÷^^ò ^÷@		:ð 	:÷@ð @÷D!ò !÷FA%ð A%÷FDò D÷LIB÷ IBð IBr&   r#  c          	      óŠ   € V ^8„  d   QhR\         \        ,          R\        \        ,          R\        R\         \        ,          /# )r(   rå   rt  rà   rÛ   )r   r>   r	   r�   rK   )r/   s   "r#   r1   r1   4  s>   € ÷ ñ Ü”wÕðäœ•:ðô ðô ŒgÕñ	r&   c              #   ó’  "  € \        W4      pV  EF0  pVP                  '       dÕ   . pVP                   F‹  pVP                  VP                  ,           ^,          pVP	                  V4      pVP                  VP                  V4      Vn        VP                  VP                  V4      Vn        VP                  V4       K�  	  V^ ,          P                  Vn        VR,          P                  Vn        WTn        MBVP                  VP                  4      Vn        VP                  VP                  RR7      Vn        Vx € EK3  	  R# 5i)r(   T)Úis_endNr÷   )r   rI   r)   r*   Úget_chunk_indexÚget_original_timer‹   )	rå   rt  rà   Úts_maprè   rI   r+   ÚmiddleÚchunk_indexs	   &&&      r#   r  r  4  s÷   é € ô
 ! Ó>€FäˆØ�=�=ˆ=ØˆEØŸœ�àŸ*™* t§x¡xÕ/°1Õ4�Ø$×4Ñ4°VÓ<�Ø#×5Ñ5°d·j±jÀ+ÓN�”
Ø!×3Ñ3°D·H±H¸kÓJ�”Ø—‘˜TÖ"ñ &ð " !�HŸN™NˆGŒMØ �)Ÿ-™-ˆGŒKØ!�Mð #×4Ñ4°W·]±]ÓCˆGŒMØ ×2Ñ2°7·;±;ÀtÐ2ÓLˆGŒKà�ó' ùs   ‚EEc                óX   € V ^8„  d   QhR\         P                  R\        P                  /# r™  rÍ  )r/   s   "r#   r1   r1   Q  s$   € ÷ ñ ¤R§Z¡Zð ´K×4KÑ4Kñ r&   c                 óp   € \         P                  ! V 4      p \        P                  P	                  V 4      p V # r�  )r    Úascontiguousarrayr:  r‹  Ú
from_array)rè   s   &r#   rÓ  rÓ  Q  s-   € Ü×"Ò" 7Ó+€GÜ×%Ñ%×0Ñ0°Ó9€GØ€Nr&   c                ó0   € V ^8„  d   QhR\         R\        /# )r(   rD   rÛ   )r.   r-   )r/   s   "r#   r1   r1   W  s   € ÷ <ñ <¤ð <¬ñ <r&   c                 ó‚   € V P                  R 4      p\        V4      \        \        P                  ! V4      4      ,          # )rX  )r±   r²   ÚzlibÚcompress)rD   Ú
text_bytess   & r#   r�   r�   W  s-   € Ø—‘˜WÓ%€JÜˆz‹?œS¤§¢¨zÓ!:Ó;Õ;Ð;r&   c                ó~   € V ^8„  d   QhR\         R\        \        ,          R\        \        \        ,          ,          /# )r(   r„   r_   rÛ   )r   r   rK   r
   r	   )r/   s   "r#   r1   r1   \  s3   € ÷ /ñ /Üð/äœ3•Zð/ô Œd”3�iÕñ/r&   c                 óÌ  € RV9   d6   V Uu. uF  q"^ 8¼  g   K  VNK  	  ppVP                  V P                  4       M4Ve   \        V4      ^ 8X  d   . pM\        V\        4      '       g   Q R4       hVP                  V P
                  V P                  V P                  V P                  V P                  V P                  .4       \        \        \        V4      4      4      # u upi )rõ   zsuppress_tokens must be a listr÷   )r­  Únon_speech_tokensr²   rü   r  rË   Ú	translateÚsotré  Úsot_lmÚ	no_speechr	  ÚsortedÚset)r„   r_   r  s   && r#   r
  r
  \  sÎ   € ð 
ˆ_ÔÙ&5Ó@¡o ¸a¹Ÿ1˜1¡oˆÐ@Ø×Ñ˜y×:Ñ:Õ;Ø	Ò	 ¤C¨Ó$8¸AÔ$=Ø‰ä˜/¬4×0Ò0ÐRÐ2RÓRÐ0à×Ñà× Ñ Ø×ÑØ�M‰MØ×ÑØ×ÑØ×Ñð	
ô	ô ”œ˜OÓ,Ó-Ó.Ð.ùò% As
   ŒC!™C!c                óV   € V ^8„  d   QhR\         \        ,          R\        R\        RR/# )r(   r   Ú	prependedÚappendedrÛ   N)r	   r�   r.   )r/   s   "r#   r1   r1   v  s-   € ÷ ñ ¤$¤t¥*ð ¼ð Ìð ÐPTñ r&   c                 óÀ  € \        V 4      ^,
          p\        V 4      ^,
          pV^ 8¼  d—   W,          pW,          pVR,          P                  R4      '       d\   VR,          P                  4       V9   d@   VR,          VR,          ,           VR&   VR,          VR,          ,           VR&   RVR&   . VR&   MTpV^,          pK�  ^ p^pV\        V 4      8  d‰   W,          pW,          pVR,          P                  R4      '       gN   VR,          V9   d@   VR,          VR,          ,           VR&   VR,          VR,          ,           VR&   RVR&   . VR&   MTpV^,          pK˜  R# )r(   r+   r�  rE   r6  N)r²   Ú
startswithr¬  Úendswith)r   rO  rP  rÄ   r#  ÚpreviousÚ	followings   &&&    r#   rú  rú  v  sS  € äˆI‹˜Õ€AÜˆI‹˜Õ€AØ
ˆqŒ&Ø•<ˆØ•Lˆ	Ø�FÕ×&Ñ& s×+Ò+°¸Õ0@×0FÑ0FÓ0HÈIÔ0Uà (¨Õ 0°9¸VÕ3DÕ DˆI�fÑØ"*¨8Õ"4°yÀÕ7JÕ"JˆI�hÑØ!ˆH�VÑØ!#ˆH�XÒàˆAØ	ˆQ�Šð 	
€AØ	€AØ
Œc�)‹nÔ
Ø•<ˆØ•Lˆ	Ø˜Õ×(Ñ(¨×-Ò-°)¸FÕ2CÀxÔ2Oà'¨Õ/°)¸FÕ2CÕCˆH�VÑØ!)¨(Õ!3°iÀÕ6IÕ!IˆH�XÑØ "ˆI�fÑØ"$ˆI�hÒàˆAØ	ˆQ�Šñ r&   )7ró  rZ  ro  r7  rB  Údataclassesr   r   Úinspectr   Úmathr   Útypingr   r   r	   r
   r   r   Úwarningsr   r:  Únumpyr    r>  r   Úfaster_whisper.audior   r   Ú faster_whisper.feature_extractorr   Úfaster_whisper.tokenizerr   r   Úfaster_whisper.utilsr   r   r   r   Úfaster_whisper.vadr   r   r   r   r   r>   rN   ro   rz   r#  r  rÓ  r�   r
  rú  r3   r&   r#   Ú<module>ra     sä   ðÛ Û Û Û 	Û ç )Ý Ý ß C× CÝ ã Û Û å ç :Ý =ß ?ß VÓ V÷ó ð ÷ð ó ðð ÷ð ó ðð, ÷ð ó ðð: ÷ð ó ð÷z)ñ z)÷zEBñ EBõP&õ:õ<õ
/÷4r&   