
    +j                     f   d dl mZmZ  G d de          Z G d de          Z G d de          Z G d d	e          Z G d
 de          Z G d de          Z G d de          Z	 G d de          Z
 G d de          Z G d de          Z G d de          Z G d de          ZdS )    )	BaseModelFieldc                      e Zd ZU  ed          Zeed<    ed          Zeed<    edd          Zedz  ed<    edd          Z	e
dz  ed	<    edd
          Zedz  ed<    edd          Zeed<    edd          Ze
dz  ed<    edd          Zedz  ed<    edd          Zedz  ed<    edd          Zeed<   dS )SpeechToTextRequest.model_idcloud_storage_urlN$ISO-639-1 or ISO-639-3 language codedescriptionlanguage_codez-Annotate sounds like (laughter) in transcripttag_audio_eventszMax speakers predictednum_speakerswordz*Timing precision: none, word, or characterdefaultr   timestamps_granularityz!Annotate which speaker is talkingdiarizezSpeaker separation sensitivitydiarization_thresholdzRandomness controltemperatureSeed for deterministic samplingseed)__name__
__module____qualname__r   r   str__annotations__r   r   r   boolr   intr   r   r   floatr   r        ?/home/wildlama/comfy/ComfyUI/comfy_api_nodes/apis/elevenlabs.pyr   r      s^        E#JJHc"U3ZZs''' %d8^ _ _ _M3:___$)E$<k$l$l$ldTklll$uT7OPPPL#*PPP"'%Dp"q"q"qCqqq 53VWWWGTD[WWW*/%Bb*c*c*c54<ccc %d8L M M MKMMMc'HIIID#IIIIIr!   r   c                       e Zd ZU  edd          Zeed<    edd          Zeed<    ed	d
          Ze	d	z  ed<    ed	d          Z
e	d	z  ed<    ed	d          Zed	z  ed<    ed	d          Ze	d	z  ed<   d	S )SpeechToTextWord.zThe word textr
   textr   z*Type of text element (word, spacing, etc.)r   typeNz/Start time in seconds (when timestamps enabled)startz-End time in seconds (when timestamps enabled)endz.Speaker identifier when diarization is enabled
speaker_idzLog probability of the wordlogprob)r   r   r   r   r%   r   r   r&   r'   r   r(   r)   r*   r    r!   r"   r$   r$      s         c777D#777f2^___D#___%2cdddE54<dddd0_```C```"U45efffJd
fff!E$4QRRRGUT\RRRRRr!   r$   c                       e Zd ZU  edd          Zeed<    edd          Zedz  ed<    edd          Z	eed	<    edd
          Z
ee         dz  ed<   dS )SpeechToTextResponse.z#Detected or specified language coder
   r   Nz Confidence of language detectionlanguage_probabilityzFull transcript textr%   zWord-level timing informationwords)r   r   r   r   r   r   r   r-   r   r%   r.   listr$   r    r!   r"   r,   r,      s         s0UVVVM3VVV).tAc)d)d)d%$,dddc'=>>>D#>>>+05Cb+c+c+cE4 !D(cccccr!   r,   c                       e Zd ZU  edd          Zedz  ed<    edd          Zedz  ed<    edd          Zedz  ed<    edd	          Z	e
dz  ed
<    edd          Zedz  ed<   dS )TextToSpeechVoiceSettingsNzVoice stabilityr
   	stabilityzSimilarity boostsimilarity_boostzStyle exaggerationstylez$Boost similarity to original speakeruse_speaker_boostzSpeech speedspeed)r   r   r   r   r2   r   r   r3   r4   r5   r   r6   r    r!   r"   r1   r1   !   s         #eD6GHHHIut|HHH%*U4=O%P%P%PedlPPP%2FGGGE54<GGG%*U4=c%d%d%dtd{ddd%.AAAE54<AAAAAr!   r1   c                       e Zd ZU  edd          Zeed<    edd          Zeed<    edd          Zedz  ed	<    edd
          Z	e
dz  ed<    edd          Zeed<    edd          Zedz  ed<   dS )TextToSpeechRequest.zText to convert to speechr
   r%   zModel ID for TTSr   Nr	   r   Voice settingsvoice_settingsr   r   &Text normalization mode: auto, on, offapply_text_normalization)r   r   r   r   r%   r   r   r   r   r:   r1   r   r   r<   r    r!   r"   r8   r8   )   s         c'BCCCD#CCCE#+=>>>Hc>>> %d8^ _ _ _M3:___7<uTO_7`7`7`N-4```c'HIIID#III+05Ck+l+l+lcDjlllllr!   r8   c                       e Zd ZU  edd          Zeed<    edd          Zeed<    edd          Z	eed<    ed	d
          Z
ed	z  ed<   d	S )TextToSoundEffectsRequest.z*Text prompt to convert into a sound effectr
   r%   z&Duration of generated sound in secondsduration_secondsz)How closely generation follows the promptprompt_influenceNz1Whether to create a smoothly looping sound effectloop)r   r   r   r   r%   r   r   r?   r   r@   rA   r   r    r!   r"   r>   r>   2   s         c'STTTD#TTT#eC5]^^^e^^^#eC5`aaaeaaad0cdddD$+dddddr!   r>   c                   X    e Zd ZU  edd          Zeed<    edd          Zeed<   dS )AddVoiceRequest.zName that identifies the voicer
   namez*Remove background noise from voice samplesremove_background_noiseN)	r   r   r   r   rD   r   r   rE   r   r    r!   r"   rC   rC   9   sS         c'GHHHD#HHH$)E#;g$h$h$hThhhhhr!   rC   c                   4    e Zd ZU  edd          Zeed<   dS )AddVoiceResponse.z+The newly created voice's unique identifierr
   voice_idN)r   r   r   r   rH   r   r   r    r!   r"   rG   rG   >   s2         E#+XYYYHcYYYYYr!   rG   c                       e Zd ZU  edd          Zeed<    edd          Zeed<    edd          Ze	ed<    edd	          Z
eed
<   dS )SpeechToSpeechRequest.zModel ID for speech-to-speechr
   r   zJSON string of voice settingsr:   r   r   z(Remove background noise from input audiorE   N)r   r   r   r   r   r   r   r:   r   r   rE   r   r    r!   r"   rJ   rJ   B   s         E#+JKKKHcKKK%1PQQQNCQQQc'HIIID#III$)E#;e$f$f$fTfffffr!   rJ   c                   X    e Zd ZU  edd          Zeed<    edd          Zeed<   dS )DialogueInput.z!Text content to convert to speechr
   r%   z*Voice identifier for this dialogue segmentrH   N)r   r   r   r   r%   r   r   rH   r    r!   r"   rL   rL   I   sR         c'JKKKD#KKKE#+WXXXHcXXXXXr!   rL   c                   :    e Zd ZU  edd          Zedz  ed<   dS )DialogueSettingsNzVoice stability (0-1)r
   r2   )r   r   r   r   r2   r   r   r    r!   r"   rN   rN   N   s6         #eD6MNNNIut|NNNNNr!   rN   c                      e Zd ZU  edd          Zee         ed<    edd          Ze	ed<    edd          Z
e	dz  ed	<    edd
          Zedz  ed<    edd          Zedz  ed<    edd          Ze	dz  ed<   dS )TextToDialogueRequest.zList of dialogue segmentsr
   inputsz Model ID for dialogue generationr   NzISO-639-1 language coder   r9   settingsr   r   r;   r<   )r   r   r   r   rQ   r/   rL   r   r   r   r   rR   rN   r   r   r<   r    r!   r"   rP   rP   R   s         "'%9T"U"U"UFDUUUE#+MNNNHcNNN %d8Q R R RM3:RRR(-d@P(Q(Q(QH%QQQuT/PQQQD#*QQQ+05Ck+l+l+lcDjlllllr!   rP   N)pydanticr   r   r   r$   r,   r1   r8   r>   rC   rG   rJ   rL   rN   rP   r    r!   r"   <module>rT      s   % % % % % % % %
J 
J 
J 
J 
J) 
J 
J 
JS S S S Sy S S Sd d d d d9 d d dB B B B B	 B B Bm m m m m) m m me e e e e	 e e ei i i i ii i i i
Z Z Z Z Zy Z Z Zg g g g gI g g gY Y Y Y YI Y Y Y
O O O O Oy O O Om m m m mI m m m m mr!   