-
-
- AI-generated conversation ready! Click play to listen.
-
-
+ {isGeneratingAudio ? (
+
+
+
+
+ Generating audio...
+
+
+
+ ) : audioUrl ? (
+
+
+ Podcast audio ready! Click play to listen.
+
+
+ ) : (
+
+
+ AI-generated conversation ready! Audio will be generated automatically.
+
+
+ )}
{/* Audio Controls */}
@@ -422,14 +663,16 @@ export default function Home() {
size="icon"
className="rounded-full transition-all duration-200 hover:scale-110"
title="Restart"
+ disabled={!audioUrl}
>
@@ -468,11 +717,28 @@ export default function Home() {
Episode Details
- Duration: {formatTime(duration)}
+ Messages: {messages.length}
+
+
+ Audio Duration: {duration > 0 ? formatTime(duration) : 'Generating...'}
Speakers: Alex & Sarah
+
+ Status: {isGeneratingAudio ? 'Generating audio...' : audioUrl ? 'Ready to play' : 'Preparing audio...'}
+
+ {messages.length > 0 && !audioUrl && (
+
+ )}