+
    hi	                    L    R t ^ RIHt ^ RIHtHt ^ RIHt Rt ! R R]4      t	R# )uL   
TTS Scriptwriter Agent – refines narration text for ElevenLabs delivery.
)annotations)AllSceneTTSSceneBreakdown)	BaseAgentu  You are an expert voiceover scriptwriter for short-form viral video content.

You will receive a list of scenes, each with draft narration text. Your job is to
produce the EXACT text that will be sent to ElevenLabs text-to-speech API.

For EACH scene, output:
1. tts_text – the final narration text, polished for spoken delivery
2. voice_direction – acting notes (tone, pace, emotion, pauses)

Rules for tts_text:
• The tts_text MUST be in Brazilian Portuguese (pt-BR) — non-negotiable
• Use natural Brazilian Portuguese speech patterns, contractions, and expressions
• Even if the input narration is in another language, adapt to fluent pt-BR
• Write as a Brazilian would naturally speak — not formal/literary Portuguese
• Write for the EAR, not the eye – use contractions, natural rhythm
• Short sentences (max 15 words)
• Use "..." for natural pauses (ElevenLabs interprets these as brief pauses)
• Use ALL CAPS sparingly for emphasis on key words
• No stage directions or brackets in the tts_text – those go in voice_direction
• The text must sound conversational and engaging when spoken aloud
• Maintain the emotional arc of the story across scenes
• The first scene must HOOK the listener immediately

Rules for voice_direction:
• Describe the tone (e.g., "whispered, intimate", "urgent, fast-paced")
• Note any pacing changes ("slow down here", "build intensity")
• Indicate emotional state ("melancholic", "hopeful", "shocked")
• These directions are for the human operator, NOT sent to ElevenLabsc                  &    ] tR t^+tRtR R ltRtR# )TTSScriptwriterAgentz4Refines narration into production-ready TTS scripts.c                    V ^8  d   QhRRRR/# )   	breakdownr   returnr    )formats   "T/home/gabslocked/Desktop/Projetos/Images/video_automation/agents/tts_scriptwriter.py__annotate__!TTSScriptwriterAgent.__annotate__.   s     
 
. 
[ 
    c                	    R P                  R VP                   4       4      pRV 2pV P                  \        V\        RRR7      # )
c              3     "   T FH  pR VP                    RVP                   RVP                   RVP                   RVP                   2
x  KJ  	  R# 5i)zScene z:
  Environment: z	
  Mood: z
  Draft narration: z

  Notes: N)scene_numberenvironmentmoodnarration_textnarration_notes).0ss   & r   	<genexpr>0TTSScriptwriterAgent.generate.<locals>.<genexpr>/   sg       
 & Q^^$ %mm_ -vvh ""#"2"2!3 4))*	,
 &s   AAz	SCENES:

gffffff?i @  )system_promptuser_promptresponse_modeltemperature
max_tokens)joinscenescallSYSTEM_PROMPTr   )selfr
   scenes_textusers   &&  r   generateTTSScriptwriterAgent.generate.   sX    ii  
 %% 
 
 [M*yy'&  
 	
r   r   N)__name__
__module____qualname____firstlineno____doc__r*   __static_attributes__r   r   r   r   r   +   s    >
 
r   r   N)
r0   
__future__r   modelsr   r   agents.base_agentr   r&   r   r   r   r   <module>r5      s)    # . '@
9 
r   