+
    ªÏjžv  ã                   ó\  € ^ RI t ^ RIt^ RIt^ RIt^ RIHtHtHtHtH	t	 ^ RI
t^ RIt^ RIt^RIHtHtHtHtHtHtHt ^RIHtHt ^RIHt ^RIHtHtHt ^RIH t H!t!H"t"H#t#H$t$H%t%H&t&H't' ]'       d   ^RI(H)t) R	RR
R!RRRR"RRRRRRRRRRRRRRRRRR/R R llt*R t+],R 8X  d
   ]+! 4        R# R# )#é    N)ÚTYPE_CHECKINGÚListÚOptionalÚTupleÚUnion)ÚFRAMES_PER_SECONDÚ
HOP_LENGTHÚN_FRAMESÚ	N_SAMPLESÚSAMPLE_RATEÚlog_mel_spectrogramÚpad_or_trim)ÚDecodingOptionsÚDecodingResult)Úadd_word_timestamps)Ú	LANGUAGESÚTO_LANGUAGE_CODEÚget_tokenizer)Ú	exact_divÚformat_timestampÚget_endÚ
get_writerÚ	make_safeÚoptional_floatÚoptional_intÚstr2bool)ÚWhisperÚverboseÚtemperatureç333333ã?Úcompression_ratio_thresholdç333333@Úlogprob_thresholdÚno_speech_thresholdÚcondition_on_previous_textTÚinitial_promptÚcarry_initial_promptFÚword_timestampsÚprepend_punctuationsõ   "'â€œÂ¿([{-Úappend_punctuationsõ   "'.ã€‚,ï¼Œ!ï¼�?ï¼Ÿ:ï¼šâ€�)]}ã€�Úclip_timestampsÚ0Úhallucination_silence_thresholdc                ó  € V ^8„  d   QhRRR\         \        \        P                  \        P
                  3,          R\        \        ,          R\         \        \        \        R3,          3,          R\        \        ,          R\        \        ,          R	\        \        ,          R
\        R\        \        ,          R\        R\        R\        R\        R\         \        \        \        ,          3,          R\        \        ,          /# )é   Úmodelr   Úaudior   r   .r!   r#   r$   r%   r&   r'   r(   r)   r+   r-   r/   )r   ÚstrÚnpÚndarrayÚtorchÚTensorr   ÚboolÚfloatr   r   )Úformats   "ÚH/opt/data/home/.local/lib/python3.14/site-packages/whisper/transcribe.pyÚ__annotate__r=   &   sü   € ÷ \ñ \Øð\ä””b—j‘j¤%§,¡,Ð.Õ/ð\ô ”d�^ð	\ô
 ”uœe¤E¨3 JÕ/Ð/Õ0ð\ô "*¬%¥ð\ô  ¤•ð\ô "¤%�ð\ô !%ð\ô œS•Mð\ô ð\ô ð\ô ð\ô ð\ô œ3¤¤U¥Ð+Õ,ð\ô  &.¬e¥_ñ!\ó    c               óÐ  a aaaaaaUaVaWaX€ SP                  RR4      '       d   \        P                  M\        P                  pS P                  \        P                  ! R4      8X  dv   \        P
                  P                  4       '       d   \        P                  ! R4       V\        P                  8X  d'   \        P                  ! R4       \        P                  pV\        P                  8X  d   RSR&   \        VS P                  P                  \        R7      pVP                  R8,          \        ,
          p\        V\         ,          \"        ,          4      pSP                  RR	4      fÄ   S P$                  '       g   R
SR&   M«V'       d   \'        R4       \)        V\        4      P+                  S P                  4      P+                  V4      pS P-                  V4      w  pp\/        VVP                   R7      SR&   Ve/   \'        R\0        SR,          ,          P3                  4        24       SR,          pSP                  RR4      p\5        S P$                  S P6                  VVR7      oW\9        V\:        4      '       d4   V'       d   VP=                  R4      M.  Uu. uF  p\        V4      NK  	  ppV Uu. uF  p\?        V\@        ,          4      NK  	  pp\C        V4      ^ 8X  d   VPE                  ^ 4       \C        V4      ^,          ^8X  d   VPE                  V4       \G        \I        VR,          VR,          4      4      pRoUV
'       d   VR8X  d   \        P                  ! R4       R VVVV VV3R llp^ pVV,          ^ ,          oV\K        \        S P                  PL                  4      pV\         ,          \"        ,          p. p . p!^ p"S P                  PN                  ^,          ^,
          p#VeK   SWPQ                  RVPS                  4       ,           4      p$V PU                  V$4       V#\C        V$4      ,          p#M. p$R VVVW3R llp%\V        PV                  ! VRVRJR7      ;_uu_ 4       p&Rp'V\C        V4      8  Ed   VV,          w  p(p)SVV(8  d   V(oVSVV)8¼  d,   V^,          pV\C        V4      8  d   VV,          ^ ,          oVKX  \        SV\         ,          \"        ,          4      p*\        SV\        ,           \         ,          \"        ,          4      p+\Y        \        VSV,
          V)SV,
          4      p,VRSVSVV,,           13,          pV,\         ,          \"        ,          p-\)        V\        4      P+                  S P                  4      P+                  V4      pV	'       d,   \/        \C        V$4      V"4      p.V V.R	 V#) R	 p/V$V/,           SR &   MV V"R	 SR &   V! V4      p0\        PZ                  ! V0P\                  4      p1Se;   V0P^                  S8„  p2Se   V0P`                  S8”  d   Rp2V2'       d   SVV,,          oVEKÉ  SVp3. p4R! R" loXR# VUVX3R$ llp5R% R& lp6V1Pc                  SWPd                  4      p7V7R9R	 Pg                  4       RR.8H  p8\        Ph                  ! V7R	R8 V7R',          ,          4      ^ ,          p9V9Pk                  ^4       \C        V94      ^ 8”  Ed   V9Pg                  4       p:V8'       d   V:PE                  \C        V14      4       ^ p;V: F‘  p<V1V;V< p=V=^ ,          Pm                  4       SWPd                  ,
          p>V=R8,          Pm                  4       SWPd                  ,
          p?V4PE                  V%! V*V>V,          ,           V*V?V,          ,           V=V0R(7      4       T<p;K“  	  V8'       d   SVV,,          oVMùV1V;^,
          ,          Pm                  4       SWPd                  ,
          p@SVV@V,          ,          oVM¹T-pAV1V7Po                  4       Pq                  4       ,          pB\C        VB4      ^ 8”  dX   XBR8,          Pm                  4       SWPd                  8w  d2   XBR8,          Pm                  4       SWPd                  ,
          p@V@V,          pAV4PE                  V%! V*V*XA,           V1V0R(7      4       SVV,,          oVV
'       Edc   \s        V4S SWVV,VVV'R)7       V8'       g-   \u        V44      pCVCe   XCV*8”  d   \?        XC\@        ,          4      oVVEe   TpDV8'       gG   \u        V44      pCVCe8   XCV*8”  d1   V+XC,
          pEVEXD8”  d   \?        XC\@        ,          4      oVM	V3V,,           oVV6! V44      pFVFeF   V5! XF4      '       d8   XFR*,          V*,
          pGVGXD8”  d!   V3\?        XG\@        ,          4      ,           oVEK2  T'pH\w        \C        V44      4       EFI  pIV4VI,          pJVJR+,          '       g   K  V5! XJ4      '       Ed   V6! V4XI^,           R	 4      pKVKe   XKR+,          ^ ,          R*,          pLM	V*V-,           pLXJR*,          XH,
          XD8„  ;'       g(    XJR*,          XD8  ;'       g    XJR*,          V*,
          R,8  pMXLXJR-,          ,
          XD8„  ;'       g$    V5! XK4      ;'       g    V+XJR-,          ,
          R,8  pNXM'       dU   XN'       dM   \?        \/        V*^,           XJR*,          4      \@        ,          4      oVVVJR-,          ,
          XD8  d   VoV. V4XIR	%  MXJR-,          pHEKL  	  \u        V44      pCVCe   XCp'V'       dV   V4 FO  pJVJR*,          VJR-,          VJR.,          pQpPpOR/\y        VO4       R0\y        VP4       R1VQ 2pR\'        \{        VR4      4       KQ  	  \}        V44       FH  w  pSpJVJR*,          VJR-,          8X  g   XJR.,          PS                  4       R28X  g   K9  R2XJR.&   . VJR3&   . VJR+&   KJ  	  T!PU                  \}        V4\C        V!4      R47       USUJu. uF  w  pSpJR5VS/VJCNK  	  upJpS4       T PU                  V4 UJUTu. uF  pJVJR3,           F  pTVTNK  	  K  	  upTpJ4       V'       d   V0P~                  R68”  d   \C        V 4      p"V&P�                  \Y        VSV4      V3,
          4       EK   R	R	R	4       \ƒ        SWP…                  V \C        V$4      R	 4      V!VR77      # u upi u upi u upJpSi u upTpJi   + '       g   i     LO; i):a²  
Transcribe an audio file using Whisper

Parameters
----------
model: Whisper
    The Whisper model instance

audio: Union[str, np.ndarray, torch.Tensor]
    The path to the audio file to open, or the audio waveform

verbose: bool
    Whether to display the text being decoded to the console. If True, displays all the details,
    If False, displays minimal details. If None, does not display anything

temperature: Union[float, Tuple[float, ...]]
    Temperature for sampling. It can be a tuple of temperatures, which will be successively used
    upon failures according to either `compression_ratio_threshold` or `logprob_threshold`.

compression_ratio_threshold: float
    If the gzip compression ratio is above this value, treat as failed

logprob_threshold: float
    If the average log probability over sampled tokens is below this value, treat as failed

no_speech_threshold: float
    If the no_speech probability is higher than this value AND the average log probability
    over sampled tokens is below `logprob_threshold`, consider the segment as silent

condition_on_previous_text: bool
    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.

word_timestamps: bool
    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: str
    If word_timestamps is True, merge these punctuation symbols with the next word

append_punctuations: str
    If word_timestamps is True, merge these punctuation symbols with the previous word

initial_prompt: Optional[str]
    Optional text to provide as a prompt for the first window. This can be used to provide, or
    "prompt-engineer" a context for transcription, e.g. custom vocabularies or proper nouns
    to make it more likely to predict those word correctly.

carry_initial_prompt: bool
    If carry_initial_prompt is True, `initial_prompt` is prepended to the prompt of each internal
    `decode()` call. If there is not enough context space at the start of the prompt, it is
    left-sliced to make space.

decode_options: dict
    Keyword arguments to construct `DecodingOptions` instances

clip_timestamps: Union[str, List[float]]
    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.

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

Returns
-------
A dictionary containing the resulting text ("text") and segment-level details ("segments"), and
the spoken language ("language"), which is detected when `decode_options["language"]` is None.
Úfp16TÚcpuz2Performing inference on CPU when CUDA is availablez0FP16 is not supported on CPU; using FP32 insteadF)ÚpaddingÚlanguageNÚenz]Detecting language using up to the first 30 seconds. Use `--language` to specify the language)ÚkeyzDetected language: ÚtaskÚ
transcribe)Únum_languagesrC   rF   Ú,:NNr1   :é   Nr1   u*   "'â€œÂ¿([{-"'.ã€‚,ï¼Œ!ï¼�?ï¼Ÿ:ï¼šâ€�)]}ã€�Ú	translatez:Word-level timestamps on translations may not be reliable.c                óD   € V ^8„  d   QhR\         P                  R\        /# ©r1   ÚsegmentÚreturn)r7   r8   r   )r;   s   "r<   r=   Ú transcribe.<locals>.__annotate__¸   s   € ÷ (ñ (¤e§l¡lð (´~ñ (r>   c                 óò  <€ \        S\        \        34      '       d   S.MSpR pV FÌ  p/ SCpV^ 8”  d&   VP                  RR 4       VP                  RR 4       MVP                  RR 4       \	        R/ VBRV/B pS
P                  W4      pRpSe   VP                  S8”  d   RpS	e   VP                  S	8  d   RpSe)   VP                  S8”  d   S	e   VP                  S	8  d   RpV'       d   KË   V# 	  V# )NÚ	beam_sizeÚpatienceÚbest_ofr   FT© )	Ú
isinstanceÚintr:   Úpopr   ÚdecodeÚcompression_ratioÚavg_logprobÚno_speech_prob)rN   ÚtemperaturesÚdecode_resultÚtÚkwargsÚoptionsÚneeds_fallbackr!   Údecode_optionsr#   r2   r$   r   s   &      €€€€€€r<   Údecode_with_fallbackÚ(transcribe.<locals>.decode_with_fallback¸   s  ø€ ä'¨´c¼5°\×BÒBˆ[‰MÈð 	ð ˆãˆAØ'˜Ð'ˆFØ�1Œuà—
‘
˜;¨Ô-Ø—
‘
˜: tÕ,ð —
‘
˜9 dÔ+ä%Ñ>¨Ñ>¸AÒ>ˆGØ!ŸL™L¨Ó:ˆMà"ˆNà+Ò7Ø!×3Ñ3Ð6QÔQà!%�à!Ò-Ø!×-Ñ-Ð0AÔAà!%�à#Ò/Ø!×0Ñ0Ð3FÔFØ%Ò1Ø!×-Ñ-Ð0AÔAà!&�ß!‘>ØàÐñE ðD Ðr>   Ú c                ó\   € V ^8„  d   QhR\         R\         R\        P                  R\        /# )r1   ÚstartÚendÚtokensÚresult)r:   r7   r8   r   )r;   s   "r<   r=   rP   ö   s0   € ÷ 
ñ 
Üð
Ü#ð
Ü-2¯\©\ð
ÜCQñ
r>   c                 ó
  <€ VP                  4       pV Uu. uF  qDSP                  8  g   K  VNK  	  ppR SRV RVRSP                  V4      RVRVP                  RVP                  RVP
                  RVP                  /	# u upi )	Úseekrh   ri   Útextrj   r   r[   rZ   r\   )ÚtolistÚeotrY   r   r[   rZ   r\   )rh   ri   rj   rk   ÚtokenÚtext_tokensrm   Ú	tokenizers   $$$$  €€r<   Únew_segmentÚtranscribe.<locals>.new_segmentö   s�   ø€ ð —‘“ˆÙ*0ÓJ©& ¸I¿M¹MÑ4I—u�u©&ˆÐJà�DØ�UØ�3Ø�I×$Ñ$ [Ó1Ø�fØ˜6×-Ñ-Ø˜6×-Ñ-Ø ×!9Ñ!9Ø˜f×3Ñ3ð

ð 
	
ùò Ks
   –B ­B Úframes)ÚtotalÚunitÚdisableç        :NNNÚpromptc                ó0   € V ^8„  d   QhR\         R\        /# )r1   ÚwordrO   )Údictr:   )r;   s   "r<   r=   rP   <  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# )Úprobabilityrz   ri   rh   g333333Ã?ç      ð?g /Ý$Á?ç       @)Úget)r}   r€   ÚdurationÚscores   &   r<   Úword_anomaly_scoreÚ&transcribe.<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\        /# rM   )r   r~   r9   )r;   s   "r<   r=   rP   H  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 )NÚwordsFr}   :Né   Nc              3   ó4   <"  € T F  pS! V4      x € K  	  R # 5i)NrU   )Ú.0Úwr†   s   & €r<   Ú	<genexpr>Ú9transcribe.<locals>.is_segment_anomaly.<locals>.<genexpr>M  s   øé € ÐA¹5°aÑ.¨q×1Ð1»5ùs   ƒg{®Gáz„?)ÚsumÚlen)rN   rŽ   rŠ   r…   Úpunctuationr†   s   &   €€r<   Úis_segment_anomalyÚ&transcribe.<locals>.is_segment_anomalyH  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\        \        ,          /# )r1   ÚsegmentsrO   )r   r~   r   )r;   s   "r<   r=   rP   P  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)rŠ   NrU   )r�   Úss   & r<   r�   Ú9transcribe.<locals>.next_words_segment.<locals>.<genexpr>Q  s   é € Ð?© 1°g·J±JŸQšQ«ùs   ‚!—
!N)Únext)r—   s   &r<   Únext_words_segmentÚ&transcribe.<locals>.next_words_segmentP  s   € ÜÑ?©Ó?ÀÓFÐFr>   :rJ   NN)rh   ri   rj   rk   )r—   r2   rs   ÚmelÚ
num_framesr)   r+   Úlast_speech_timestamprh   rŠ   r‚   ri   rn   Ú[z --> z] Ú rj   )rh   Úidg      à?)rn   r—   rC   éÿÿÿÿéþÿÿÿ)Crƒ   r7   Úfloat16Úfloat32ÚdeviceÚcudaÚis_availableÚwarningsÚwarnr   ÚdimsÚn_melsr   Úshaper
   r:   r	   r   Úis_multilingualÚprintr   ÚtoÚdetect_languageÚmaxr   Útitler   rH   rV   r4   ÚsplitÚroundr   r’   ÚappendÚlistÚzipr   Ún_audio_ctxÚ
n_text_ctxÚencodeÚstripÚextendÚtqdmÚminÚtensorrj   r\   r[   ÚgeÚtimestamp_beginro   ÚwhereÚadd_ÚitemÚnonzeroÚflattenr   r   Úranger   r   Ú	enumerater   Úupdater~   rY   )Yr2   r3   r   r   r!   r#   r$   r%   r&   r'   r(   r)   r+   r-   r/   rc   ÚdtyperŸ   Úcontent_framesÚcontent_durationÚmel_segmentÚ_ÚprobsrC   rF   ÚtsÚseek_pointsÚ
seek_clipsrd   Úclip_idxÚinput_strideÚtime_precisionÚ
all_tokensÚall_segmentsÚprompt_reset_sinceÚremaining_prompt_lengthÚinitial_prompt_tokensrt   Úpbarr¡   Úseek_clip_startÚseek_clip_endÚtime_offsetÚwindow_end_timeÚsegment_sizeÚsegment_durationÚnignoredÚremaining_promptrk   rj   Úshould_skipÚprevious_seekÚcurrent_segmentsr”   r�   Útimestamp_tokensÚsingle_timestamp_endingÚconsecutiveÚslicesÚ
last_sliceÚcurrent_sliceÚsliced_tokensÚstart_timestamp_posÚend_timestamp_posÚlast_timestamp_posr„   Ú
timestampsÚlast_word_endÚ	thresholdÚremaining_durationÚfirst_segmentÚgapÚhal_last_endÚsirN   Únext_segmentÚhal_next_startÚsilence_beforeÚsilence_afterrh   ri   rn   ÚlineÚirq   r“   rm   rs   r†   sY   f&$dddd$$$$$$$$l                                                                     @@@@r<   rG   rG   &   sÕ  ÿù€ ðr ,×/Ñ/°¸×=Ò=ŒE�MŠMÄ5Ç=Á=€EØ‡|�|”u—|’| EÓ*Ô*Ü�:‰:×"Ñ"×$Ò$Ü�MŠMÐNÔOØ”E—M‘MÔ!Ü�MŠMÐLÔMÜ—M‘MˆEà”—‘ÔØ!&ˆ�vÑô ˜e U§Z¡Z×%6Ñ%6Ä	Ô
J€CØ—Y‘Y˜r•]¤XÕ-€NÜ˜^¬jÕ8¼;ÕFÓGÐà×Ñ˜* dÓ+Ò3Ø×$×$Ð$Ø)-ˆN˜:Ò&çÜØsôô & c¬8Ó4×7Ñ7¸¿¹ÓE×HÑHÈÓOˆKØ×,Ñ,¨[Ó9‰HˆAˆuÜ),¨U¸¿	¹	Ô)BˆN˜:Ñ&ØÒ"ÜØ)¬)°NÀ:Õ4NÕ*O×*UÑ*UÓ*WÐ)XÐYôð # :Õ.€HØ×"Ñ" 6¨<Ó8€DÜØ×ÑØ×)Ñ)ØØô	€Iô �/¤3×'Ò'ç?N ×!6Ñ!6°sÔ!;ÐTVÐ!Vó
Ù!V˜"ŒE�"ŽIÑ!Vð 	ð 
ñ GVÓVÁoÀœe BÔ):Õ$:Ö;Áo€KÐVÜ
ˆ;Ó˜1ÔØ×Ñ˜1ÔÜ
ˆ;Ó˜!Õ˜qÔ Ø×Ñ˜>Ô*Ü(,¬S°¸SÕ1AÀ;ÈtÕCTÓ-UÓ(V€Jà@€Kç˜4 ;Ô.Ü�ŠÐRÔS÷(õ (ðT €HØ�hÕ Õ"€DÜÜ�%—*‘*×(Ñ(ó€Lð 	”zÕ!¤KÕ/ð ð €JØ€LØÐà#Ÿj™j×3Ñ3°qÕ8¸1Õ<ÐØÒ!Ø )× 0Ñ 0°°~×7KÑ7KÓ7MÕ1MÓ NÐØ×ÑÐ/Ô0Ø¤3Ð'<Ó#=Õ=Ñà "Ð÷
ñ 
ô$ 
�ŠØ 8°WÀEÐ5I÷
õ 
à	Ø #Ðð
 œ˜Z›Õ(Ø-7¸Õ-AÑ*ˆO˜]Ø�oÔ%Ø&�Ø�}Ô$Ø˜A•�Øœc *›oÔ-Ø% hÕ/°Õ2�DÙÜ ¤zÕ 1´KÕ ?Ó@ˆKÜ# T¬H¥_¼
Õ$BÄ[Õ$PÓQˆOÜœx¨¸$Õ)>ÀÐPTÕ@TÓUˆLØ˜a ¨¨|Õ(;Ð!;Ð;Õ<ˆKØ+¬jÕ8¼;ÕFÐÜ% k´8Ó<×?Ñ?ÀÇÁÓM×PÑPÐQVÓWˆKç#ÜœsÐ#8Ó9Ð;MÓN�Ø#-¨h¨iÐ#8Ð:QÐ9QÐ9RÐ#SÐ Ø+@ÐCSÕ+S�˜xÒ(à+5Ð6HÐ6IÐ+J�˜xÑ(á%9¸+Ó%FˆFÜ—\’\ &§-¡-Ó0ˆFà"Ò.à$×3Ñ3Ð6IÑI�à%Ò1Ø×*Ñ*Ð->Ô>ð #(�KçØ˜LÕ(�DÚà ˆMØ!Ðõ
÷@ñ @õGð .4¯Y©Y°y×7PÑ7PÓ-QÐØ&6°r°sÐ&;×&BÑ&BÓ&DÈÐPTÈÑ&UÐ#äŸ+š+Ð&6°s¸Ð&;Ð>NÈrÕ>RÕ&RÓSÐTUÕVˆKØ×Ñ˜QÔÜ�;Ó !Õ#à$×+Ñ+Ó-�ß*Ø—M‘M¤# f£+Ô.à�
Û%+�MØ$*¨:°mÐ$D�Mà% aÕ(×-Ñ-Ó/°)×2KÑ2KÕKð (ð & bÕ)×.Ñ.Ó0°9×3LÑ3LÕLð &ð %×+Ñ+Ù#Ø"-Ð0CÀnÕ0TÕ"TØ +Ð.?À.Õ.PÕ PØ#0Ø#)ô	ôð "/’Jñ! &,÷$ +à˜LÕ(‘Dð ˜z¨A�~Õ.×3Ñ3Ó5¸	×8QÑ8QÕQð 'ð Ð.°Õ=Õ=‘Dà+�Ø#Ð$4×$<Ñ$<Ó$>×$FÑ$FÓ$HÕI�
ä˜
“O aÔ'Ø" 2�×+Ñ+Ó-°×1JÑ1JÔJð # 2�×+Ñ+Ó-°	×0IÑ0IÕIð 'ð  2°NÕB�Hà ×'Ñ'ÙØ)Ø'¨(Õ2Ø%Ø%ô	ôð ˜Õ$�çˆÜ#Ø-ØØ'Ø#Ø+Ø)=Ø(;Ø*?õ	÷ /Ü$+Ð,<Ó$=�MØ$Ò0°]À[Ô5PÜ$ ]Ô5FÕ%FÓG˜ð 3Ó>Ø ?�Iß2Ü(/Ð0@Ó(A˜Ø(Ò4¸ÈÔ9TØ1@À=Õ1PÐ.Ø1°IÔ=Ü',¨]Ô=NÕ-NÓ'O¡à'4°|Õ'C ñ %7Ð7GÓ$H�MØ$Ò0Ñ5GÈ×5VÒ5VØ+¨GÕ4°{ÕB˜Ø œ?Ø#0´5¸Ô?PÕ9PÓ3QÕ#Q˜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Ü&7õ%8ó(" ð $4°g¸eµnÕ#DÀyÔ#PØ+9 DØ8:Ð 0°°Ð 5Ù %Ø'.¨u¥~›ñ? ;ôB !(Ð(8Ó 9�Ø Ò,Ø,9Ð)çÛ/�GØ'.¨wÕ'7¸À½ÈÐQWÍ ˜3�EØÔ/°Ó6Ð7°uÔ=MÈcÓ=RÐ<SÐSUÐVZÐU[Ð\�DÜœ) D›/Ö*ñ  0ô (Ð(8Ö9‘
��7Ø˜7Õ# w¨u¥~Ô5¸À½×9NÑ9NÓ9PÐTVÖ9VØ&(�G˜F‘OØ(*�G˜HÑ%Ø')�G˜GÓ$ñ	 :ð ×Ñô '0Ø(´°LÓ0Aõ'ôñ'™
˜˜7ð ˜1Ð( Ó(ñ'òôð ×ÑÙ&6ÔVÑ&6˜7ÀGÈH×DUÐDU¸5“ÑDU‘Ñ&6ÒVô÷ .°×1CÑ1CÀcÔ1Iä%(¨£_Ð"ð �K‰Kœ˜N¨DÓ1°MÕA×BðY )÷
ôl Ø×Ñ˜j¬Ð-BÓ)CÐ)EÐFÓGØØôð ùòk

ùò Wùó@
ùó W÷Y
÷ 
ús¡   Ê$r?Ê>sÑ5F?sØ5C sÛ6B:sÞ1Dsâ=AsäAså3A9sç-Asè>sé-sê sêsê,sê4A2sì'Bsï 7sï7s	ð	sð!sð<sñAsó	sós%	c                  óŽ  a€ ^RI Ho V3R lp \        P                  ! \        P                  R7      pVP                  RR\        RR7       VP                  RR	V R
R7       VP                  R\        RRR7       TP                  R\        P                  P                  4       '       d   RMRRR7       VP                  RR\        RRR7       VP                  RR\        R. R{ORR7       VP                  R\        RR R7       VP                  R!\        R"R"R#.R$R7       TP                  R%\        R\        \        P                  ! 4       4      \        \        P                  ! 4        Uu. uF  q"P                  4       NK  	  up4      ,           R&R7       VP                  R'\         ^ R(R7       VP                  R)\"        ^R*R7       VP                  R+\"        ^R,R7       VP                  R-\         RR.R7       VP                  R/\         RR0R7       VP                  R1\        R2R3R7       VP                  R4\        RR5R7       VP                  R6\        R7R8R7       VP                  R9\        RR:R7       VP                  R;\        RR<R7       VP                  R=\$        R>R?R7       VP                  R@\$        RARBR7       VP                  RC\$        R|RDR7       VP                  RE\$        RFRGR7       VP                  RH\        R7RIR7       VP                  RJ\        RKRLR7       VP                  RM\        RNROR7       VP                  RP\        R7RQR7       VP                  RR\"        RRSR7       VP                  RT\"        RRUR7       VP                  RV\"        RRWR7       VP                  RX\"        ^ RYR7       VP                  RZ\        R[R\R7       VP                  R]\$        R^R_7       VP'                  4       P(                  pVP+                  R`4      pVP+                  Ra4      pVP+                  Rb4      pVP+                  Rc4      pVP+                  Rd4      p\,        P.                  ! VRRe7       VP1                  Rf4      '       dB   VRg,          R}9  d4   VRg,          e$   \2        P4                  ! V RiVRg,           Rj24       RhVRg&   VP+                  Rk4      p	VP+                  Rl4      ;p
e#   \7        \8        P:                  ! V	R~V
4      4      p	MV	.p	VP+                  Rm4      ;p^ 8”  d   \        P<                  ! V4       ^RnI Hp V! WHVRo7      p\A        Wv4      p. ROpVRs,          '       g0   V F)  pVV,          '       g   K  VPC                  RtV Ru24       K+  	  VRp,          '       d&   VRq,          '       g   \2        P4                  ! Rv4       VRr,          '       d&   VRq,          '       d   \2        P4                  ! Rw4       V Uu/ uF  pVVP+                  V4      bK  	  ppVP+                  R4       F  p \E        VV3RkV	/VB pV! VV3/ VB  K  	  R# u upi u upi   \F         dQ   p\H        PJ                  ! 4        \M        RxT Ry\O        T4      PP                   Rz\        T4       24        Rp?Kƒ  Rp?ii ; i)€rJ   )Úavailable_modelsc                 ó’   <€ V S! 4       9   g&   \         P                  P                  V 4      '       d   V # \        R S! 4        R24      h)zmodel should be one of z or path to a model checkpoint)ÚosÚpathÚexistsÚ
ValueError)Únamer  s   &€r<   Úvalid_model_nameÚcli.<locals>.valid_model_name  sE   ø€ ØÑ#Ó%Ô%¬¯©¯©¸×)=Ò)=ØˆKÜØ%Ñ&6Ó&8Ð%9Ð9WÐXó
ð 	
r>   )Úformatter_classr3   Ú+zaudio file(s) to transcribe)ÚnargsÚtypeÚhelpz--modelÚturboz name of the Whisper model to use)Údefaultr  r  z--model_dirNz>the path to save model files; uses ~/.cache/whisper by default)r  r  r  z--devicerª   rA   z#device to use for PyTorch inference)r  r  z--output_dirz-oÚ.zdirectory to save the outputsz--output_formatz-fÚallzSformat of the output file; if not specified, all available formats will be produced)r  r  Úchoicesr  z	--verboseTz4whether to print out the progress and debug messagesz--taskrG   rK   zawhether to perform X->X speech recognition ('transcribe') or X->English translation ('translate')z
--languagezHlanguage spoken in the audio, specify None to perform language detectionz--temperatureztemperature to use for samplingz	--best_ofz<number of candidates when sampling with non-zero temperaturez--beam_sizezHnumber of beams in beam search, only applicable when temperature is zeroz
--patiencez”optional patience value to use in beam decoding, as in https://arxiv.org/abs/2204.05424, the default (1.0) is equivalent to conventional beam searchz--length_penaltyz…optional token length penalty coefficient (alpha) as in https://arxiv.org/abs/1609.08144, uses simple length normalization by defaultz--suppress_tokensz-1z„comma-separated list of token ids to suppress during sampling; '-1' will suppress most special characters except common punctuationsz--initial_promptz:optional text to provide as a prompt for the first window.z--carry_initial_promptFz{if True, prepend initial_prompt to every internal decode() call. May reduce the effectiveness of condition_on_previous_textz--condition_on_previous_textzÏif True, provide the previous output of the model 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 loopz--fp16z5whether to perform inference in fp16; True by defaultz#--temperature_increment_on_fallbackçš™™™™™É?zhtemperature to increase when falling back when the decoding fails to meet either of the thresholds belowz--compression_ratio_thresholdr"   zUif the gzip compression ratio is higher than this value, treat the decoding as failedz--logprob_thresholdzUif the average log probability is lower than this value, treat the decoding as failedz--no_speech_thresholdr    zžif the probability of the <|nospeech|> token is higher than this value AND the decoding has failed due to `logprob_threshold`, consider the segment as silencez--word_timestampszQ(experimental) extract word-level timestamps and refine the results based on themz--prepend_punctuationsr*   zNif word_timestamps is True, merge these punctuation symbols with the next wordz--append_punctuationsr,   zRif word_timestamps is True, merge these punctuation symbols with the previous wordz--highlight_wordszT(requires --word_timestamps True) underline each word as it is spoken in srt and vttz--max_line_widthze(requires --word_timestamps True) the maximum number of characters in a line before breaking the linez--max_line_countzJ(requires --word_timestamps True) the maximum number of lines in a segmentz--max_words_per_linezk(requires --word_timestamps True, no effect with --max_line_width) the maximum number of words in a segmentz	--threadsz]number of threads used by torch for CPU inference; supercedes MKL_NUM_THREADS/OMP_NUM_THREADSz--clip_timestampsr.   z–comma-separated list start,end,start,end,... timestamps (in seconds) of clips to process, where the last end timestamp defaults to the end of the filez!--hallucination_silence_thresholdz‡(requires --word_timestamps True) skip silent periods longer than this threshold (in seconds) when a possible hallucination is detected)r  r  r2   Ú	model_dirÚ
output_dirÚoutput_formatr©   )Úexist_okz.enrC   rD   z) is an English-only model but receipted 'z'; using English instead.r   Ú!temperature_increment_on_fallbackÚthreads)Ú
load_model)r©   Údownload_rootÚmax_line_countÚmax_line_widthÚmax_words_per_liner(   z--z  requires --word_timestamps Truez7--max_line_count has no effect without --max_line_widthz8--max_words_per_line has no effect with --max_line_widthz	Skipping z due to z: )ÚtxtÚvttÚsrtÚtsvÚjsonr  ç      ð¿>   rD   ÚEnglishgzo ð?)Úhighlight_wordsr   r!  r"  ))r£   r  ÚargparseÚArgumentParserÚArgumentDefaultsHelpFormatterÚadd_argumentr4   r7   rª   r«   r   Úsortedr   Úkeysr   r¶   r:   r   r   Ú
parse_argsÚ__dict__rX   r  ÚmakedirsÚendswithr¬   r­   Útupler5   ÚarangeÚset_num_threadsr  r   ÚerrorrG   Ú	ExceptionÚ	tracebackÚ	print_excr²   r  Ú__name__)r  ÚparserÚkÚargsÚ
model_namer  r  r  r©   r   Ú	incrementr  r  r2   ÚwriterÚword_optionsÚoptionÚargÚwriter_argsÚ
audio_pathrk   Úer  s                         @r<   ÚclirI    s  ø€ Ý"õ
ô ×$Ò$´X×5[Ñ5[Ô\€FØ
×Ñ˜ s´Ð;XÐÔYØ
×Ñ˜	¨7Ð9IÐPrÐÔsØ
×Ñ˜¬C¸ð  EEÐô  FØ
×Ñ˜
´e·j±j×6MÑ6M×6OÒ6O©FÐUZð  bGÐô  HØ
×Ñ˜¨´3ÀÐJiÐÔjØ
×ÑÐ)¨4´cÀ5ÒR}ð  EZÐô  [Ø
×Ñ˜¬(¸DÐG}ÐÔ~à
×Ñ˜¤s°LÈ<ÐYdÐJeð  mPÐô  QØ
×Ñ˜¬3¸ÄfÌYÏ^Ê^ÓM]ÓF^Ôagô  }M÷  }Rò  }Rô  }Tó  iUñ  }TÐwx×ipÑipÖirñ  }Tñ  iUó  bVõ  GVð  ]gÐô  hà
×Ñ˜¬e¸QÐEfÐÔgØ
×Ñ˜¬,Àð  IGÐô  HØ
×Ñ˜¬LÀ!ð  KUÐô  VØ
×Ñ˜¬5¸$ð  F\Ðô  ]Ø
×ÑÐ*´Àð  LSÐô  Tà
×ÑÐ+´#¸tð  KQÐô  RØ
×ÑÐ*´¸dð  JFÐô  GØ
×ÑÐ0´xÈð  VSÐô  Tà
×ÑÐ6¼XÈtð  [lÐô  mØ
×Ñ˜¤x¸ÐD{ÐÔ|à
×ÑÐ=ÄNÐ\_ð  gQÐô  RØ
×ÑÐ7¼nÐVYð  axÐô  yØ
×ÑÐ-´NÈDð  XoÐô  pØ
×ÑÐ/´nÈcð  YyÐô  zØ
×ÑÐ+´(ÀEð  QdÐô  eØ
×ÑÐ0´sÀOð  [kÐô  lØ
×ÑÐ/´cÐCfð  nBÐô  CØ
×ÑÐ+´(ÀEð  QgÐô  hØ
×ÑÐ*´Àtð  SzÐô  {Ø
×ÑÐ*´Àtð  S_Ðô  `Ø
×ÑÐ.´\È4ð  WDÐô  EØ
×Ñ˜¬,Àð  IhÐô  iØ
×ÑÐ+´#¸sð  JbÐô  cØ
×ÑÐ;Ä.ð  XaÐô  bð ×ÑÓ×'Ñ'€DØ—h‘h˜wÓ'€JØ—X‘X˜kÓ*€IØ—h‘h˜|Ó,€JØŸ™ /Ó2€MØ—(‘(˜8Ó$€FÜ‡K‚K�
 TÕ*à×Ñ˜5×!Ò! d¨:Õ&6Ð>OÔ&OØ�
ÕÒ'Ü�MŠMØ�,ÐGÈÈZÕHXÐGYÐYrÐsôð  ˆˆZÑà—(‘(˜=Ó)€KØ—X‘XÐAÓBÐBˆ	ÒOÜœBŸIšI k°:¸yÓIÓJ‰à"�mˆà—8‘8˜IÓ&Ð&ˆ¨!Ô+Ü×Ò˜gÔ&åá�zÀ	ÔJ€Eä˜Ó2€Fò€Lð Ð!×"Ô"Û"ˆFØ�F�|Ž|Ø—‘˜r & Ð)IÐJÖKñ #ð Ð×Ô dÐ+;×&<Ô&<Ü�ŠÐOÔPØÐ ×!Ô! dÐ+;×&<Ô&<Ü�ŠÐPÔQÙ1=Ó>±¨#�3˜Ÿ™ ›Ò%±€KÐ>Ø—h‘h˜wÖ'ˆ
ð	PÜ  zÑS¸{ÐSÈdÑSˆFÙ�6˜:Ñ5¨Ô5ó (ùòW iUùòT ?øô
 ô 	PÜ×ÒÔ!Ü�I˜j˜\¨´$°q³'×2BÑ2BÐ1CÀ2ÄcÈ!ÃfÀXÐN×OÒOûð	Pús%   Å+YØY$Ù Y)Ù)[Ù4AZ?Ú?[Ú__main__)rz   r  gš™™™™™Ù?r    gš™™™™™é?r�   r(  )-r+  r  r:  r¬   Útypingr   r   r   r   r   Únumpyr5   r7   rÁ   r3   r   r	   r
   r   r   r   r   Údecodingr   r   Útimingr   rs   r   r   r   Úutilsr   r   r   r   r   r   r   r   r2   r   rG   rI  r<  rU   r>   r<   Ú<module>rP     s  ðÛ Û 	Û Û ß >Õ >ã Û Û ÷÷ ñ ÷ 6Ý 'ß AÑ A÷	÷ 	ó 	÷ Ýð\ð #ð	\ð
 4Rð\ð 47ð\ð *.ð\ð ,/ð\ð (,ð\ð %)ð\ð "'ð\ð "ð\ð !/ð\ð  Bð\ð 03ð\ð  8<÷!\ò~fPðR ˆzÔÙ†Eñ r>   