
    +j                        S SK JrJr   " S S\5      r " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r " S S\5      r " S S\5      r	 " S S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      rg)    )	BaseModelFieldc                   .   \ rS rSr% \" S5      r\\S'   \" S5      r\\S'   \" SSS9r	\S-  \S'   \" SS	S9r
\S-  \S
'   \" SSS9r\S-  \S'   \" SSS9r\\S'   \" SSS9r\S-  \S'   \" SSS9r\S-  \S'   \" SSS9r\S-  \S'   \" SSS9r\\S'   Srg)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____firstlineno__r   r   str__annotations__r	   r   r   boolr   intr   r   r   floatr   r   __static_attributes__r       ?/home/wildlama/comfy/ComfyUI/comfy_api_nodes/apis/elevenlabs.pyr   r      s    #JHc"3Zs' %d8^ _M3:_$)$<k$ldTkl$T7OPL#*P"'Dp"qCq 3VWGTD[W*/Bb*c54<c %d8L MKMc'HID#Ir$   r   c                       \ rS rSr% \" SSS9r\\S'   \" SSS9r\\S	'   \" S
SS9r	\
S
-  \S'   \" S
SS9r\
S
-  \S'   \" S
SS9r\S
-  \S'   \" S
SS9r\
S
-  \S'   Srg
)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logprobr   )r   r   r   r   r   r)   r   r   r*   r+   r"   r,   r-   r.   r#   r   r$   r%   r'   r'      s}    c7D#7f2^_D#_2cdE54<dd0_`C`"45efJd
f!$4QRGUT\Rr$   r'   c                       \ rS rSr% \" SSS9r\\S'   \" SSS9r\	S-  \S'   \" SS	S9r
\\S
'   \" SSS9r\\   S-  \S'   Srg)SpeechToTextResponse   .z#Detected or specified language coder   r   Nz Confidence of language detectionlanguage_probabilityzFull transcript textr)   zWord-level timing informationwordsr   )r   r   r   r   r   r   r   r   r2   r"   r)   r3   listr'   r#   r   r$   r%   r0   r0      sZ    s0UVM3V).tAc)d%$,dc'=>D#>+0Cb+cE4 !D(cr$   r0   c                       \ rS rSr% \" SSS9r\S-  \S'   \" SSS9r\S-  \S'   \" SSS9r	\S-  \S	'   \" SS
S9r
\S-  \S'   \" SSS9r\S-  \S'   Srg)TextToSpeechVoiceSettings!   NzVoice stabilityr   	stabilityzSimilarity boostsimilarity_boostzStyle exaggerationstylez$Boost similarity to original speakeruse_speaker_boostzSpeech speedspeedr   )r   r   r   r   r   r8   r"   r   r9   r:   r;   r    r<   r#   r   r$   r%   r6   r6   !   sq    #D6GHIut|H%*4=O%PedlP2FGE54<G%*4=c%dtd{d.AE54<Ar$   r6   c                       \ rS rSr% \" SSS9r\\S'   \" SSS9r\\S'   \" SS	S9r	\S-  \S
'   \" SSS9r
\S-  \S'   \" SSS9r\\S'   \" SSS9r\S-  \S'   Srg)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_normalizationr   )r   r   r   r   r   r)   r   r   r   r   rA   r6   r   r!   rC   r#   r   r$   r%   r>   r>   )   s}    c'BCD#C#+=>Hc> %d8^ _M3:_7<TO_7`N-4`c'HID#I+0Ck+lcDjlr$   r>   c                   |    \ rS rSr% \" SSS9r\\S'   \" SSS9r\	\S'   \" SSS9r
\	\S	'   \" S
SS9r\S
-  \S'   Srg
)TextToSoundEffectsRequest2   .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loopr   )r   r   r   r   r   r)   r   r   rG   r"   rH   rI   r    r#   r   r$   r%   rE   rE   2   sP    c'STD#T#C5]^e^#C5`aead0cdD$+dr$   rE   c                   F    \ rS rSr% \" SSS9r\\S'   \" SSS9r\	\S'   Sr
g	)
AddVoiceRequest9   .zName that identifies the voicer   namez*Remove background noise from voice samplesremove_background_noiser   N)r   r   r   r   r   rM   r   r   rN   r    r#   r   r$   r%   rK   rK   9   s'    c'GHD#H$)#;g$hThr$   rK   c                   .    \ rS rSr% \" SSS9r\\S'   Srg)AddVoiceResponse>   .z+The newly created voice's unique identifierr   voice_idr   N)	r   r   r   r   r   rR   r   r   r#   r   r$   r%   rP   rP   >   s    #+XYHcYr$   rP   c                   v    \ rS rSr% \" SSS9r\\S'   \" SSS9r\\S'   \" SSS9r	\
\S	'   \" SS
S9r\\S'   Srg)SpeechToSpeechRequestB   .zModel ID for speech-to-speechr   r   zJSON string of voice settingsrA   r   r   z(Remove background noise from input audiorN   r   N)r   r   r   r   r   r   r   r   rA   r   r!   rN   r    r#   r   r$   r%   rT   rT   B   sK    #+JKHcK1PQNCQc'HID#I$)#;e$fTfr$   rT   c                   F    \ rS rSr% \" SSS9r\\S'   \" SSS9r\\S'   Sr	g	)
DialogueInputI   .z!Text content to convert to speechr   r)   z*Voice identifier for this dialogue segmentrR   r   N)
r   r   r   r   r   r)   r   r   rR   r#   r   r$   r%   rW   rW   I   s&    c'JKD#K#+WXHcXr$   rW   c                   4    \ rS rSr% \" SSS9r\S-  \S'   Srg)DialogueSettingsN   NzVoice stability (0-1)r   r8   r   )	r   r   r   r   r   r8   r"   r   r#   r   r$   r%   rZ   rZ   N   s    #D6MNIut|Nr$   rZ   c                       \ rS rSr% \" SSS9r\\   \S'   \" SSS9r	\
\S'   \" SS	S9r\
S-  \S
'   \" SSS9r\S-  \S'   \" SSS9r\S-  \S'   \" SSS9r\
S-  \S'   Srg)TextToDialogueRequestR   .zList of dialogue segmentsr   inputsz Model ID for dialogue generationr   NzISO-639-1 language coder   r@   settingsr   r   rB   rC   r   )r   r   r   r   r   r_   r4   rW   r   r   r   r   r`   rZ   r   r!   rC   r#   r   r$   r%   r]   r]   R   s    "'9T"UFDU#+MNHcN %d8Q RM3:R(-d@P(QH%QT/PQD#*Q+0Ck+lcDjlr$   r]   N)pydanticr   r   r   r'   r0   r6   r>   rE   rK   rP   rT   rW   rZ   r]   r   r$   r%   <module>rb      s    %
J) 
JSy Sd9 dB	 Bm) me	 eii i
Zy ZgI gYI Y
Oy OmI mr$   