import React from "react"; import { Stack, Box, Typography, Alert, Paper } from "@mui/material"; import InfoIcon from "@mui/icons-material/Info"; import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; import ExpandLessIcon from "@mui/icons-material/ExpandLess"; import { useScriptEditor } from "../ScriptEditorContext"; interface FormatItem { num: string; title: string; desc: string; } const formatItems: FormatItem[] = [ { num: "1", title: "Natural Pauses & Rhythm", desc: "The script includes strategic pauses between lines and when speakers change. This creates natural breathing patterns and conversation flow." }, { num: "2", title: "Emphasis Markers", desc: "Lines marked with emphasis help highlight important points, statistics, or key insights." }, { num: "3", title: "Short, Conversational Sentences", desc: "The script uses shorter sentences written in a conversational style that matches how people actually speak." }, { num: "4", title: "Scene-Specific Emotions", desc: "Each scene has an emotional tone that guides the AI voice's delivery." }, { num: "5", title: "Optimized for Podcast Narration", desc: "The script is optimized with slightly slower pacing and natural pronunciation settings." }, ]; export const ScriptEditorInfoPanel: React.FC = () => { const { showScriptFormatInfo, setShowScriptFormatInfo } = useScriptEditor(); return ( Why This Script Format? Understanding how your script creates natural, human-like audio setShowScriptFormatInfo(!showScriptFormatInfo)} > {showScriptFormatInfo ? : } {showScriptFormatInfo && ( Our AI script generator creates scripts specifically optimized for high-quality text-to-speech. The format you see here is designed to produce audio that sounds natural and human-like, not robotic. {formatItems.map((item) => ( {item.num} {item.title} {item.desc} ))} Tip: You can edit any line or scene to match your preferences. The format will be preserved when rendering. )} ); };