+
    W²ÕiÝ  ã                   óV   € R t ^ RIHt ^ RIHtHt ^RIHtHt ^RIH	t	  ! R R4      t
R# )z\SubMaker module is used to generate subtitles from WordBoundary and SentenceBoundary events.)Ú	timedelta)ÚListÚOptional)ÚSubtitleÚcompose©ÚTTSChunkc                   ól   a € ] tR t^
t o RtV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR	 ltR
t	V t
R# )ÚSubMakerzY
SubMaker is used to generate subtitles from WordBoundary and SentenceBoundary messages.
c                ó   <€ V ^8„  d   QhRR/# )é   ÚreturnN© )ÚformatÚ__classdict__s   "€ÚP/home/ubuntu/hermes-agent/venv/lib/python3.14/site-packages/edge_tts/submaker.pyÚ__annotate__ÚSubMaker.__annotate__   s   ø€ ÷ (ñ (˜$ñ (ó    c                ó"   € . V n         R V n        R # ©N©ÚcuesÚtype©Úselfs   &r   Ú__init__ÚSubMaker.__init__   s   € Ø$&ˆŒ	Ø#'ˆŽ	r   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r   Úmsgr   Nr   )r   r   s   "€r   r   r      s   ø€ ÷ 
ñ 
™ð 
 Tñ 
r   c                óö  € VR,          R9  d   \        R4      hV P                  f   VR,          V n        M;V P                  VR,          8w  d$   \        RV P                   RVR,           R24      hV P                  P                  \	        \        V P                  4      ^,           \        VR,          ^
,          R7      \        VR,          VR	,          ,           ^
,          R7      VR
,          R7      4       R# )z¡
Feed a WordBoundary or SentenceBoundary message to the SubMaker object.

Args:
    msg (dict): The WordBoundary or SentenceBoundary message.

Returns:
    None
r   zDInvalid message type, expected 'WordBoundary' or 'SentenceBoundary'.NzExpected message type 'z', but got 'z'.Úoffset)ÚmicrosecondsÚdurationÚtext)ÚindexÚstartÚendÚcontent)ÚWordBoundaryÚSentenceBoundary)Ú
ValueErrorr   r   Úappendr   Úlenr   )r   r   s   &&r   ÚfeedÚSubMaker.feed   sÍ   € ð ˆv;ÐBÔBÜØVóð ð 9‰9ÒØ˜FˆDIØY‰Y˜#˜f+Ô%ÜØ)¨$¯)©)¨°LÀÀVÅÀÈRÐPóð ð 		‰	×ÑÜÜ˜$Ÿ)™)“n qÕ(Ü¨S°­]¸RÕ-?Ô@Ü¨C°­M¸CÀ
½OÕ,KÈrÕ+QÔRØ˜Fô	ö	
r   c                ó    <€ V ^8„  d   QhRS[ /# ©r   r   ©Ústr)r   r   s   "€r   r   r   2   s   ø€ ÷ "ñ "™ñ "r   c                ó,   € \        V P                  4      # )zk
Get the SRT formatted subtitles from the SubMaker object.

Returns:
    str: The SRT formatted subtitles.
)r   r   r   s   &r   Úget_srtÚSubMaker.get_srt2   s   € ô t—y‘yÓ!Ð!r   c                ó    <€ V ^8„  d   QhRS[ /# r1   r2   )r   r   s   "€r   r   r   ;   s   ø€ ÷ ñ ™ñ r   c                ó"   € V P                  4       # r   )r5   r   s   &r   Ú__str__ÚSubMaker.__str__;   s   € Ø|‰|‹~Ðr   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r.   r5   r9   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r
   r
   
   s2   ø‡ € ñ÷(ð (÷
ð 
÷>"ð "÷ö r   r
   N)r?   Údatetimer   Útypingr   r   Úsrt_composerr   r   r   r
   r   r   r   Ú<module>rE      s   ðÙ bå ß !ç +Ý ÷2ó 2r   