[Client] Request Details
Overview
Clients can view detailed information about a specific text-to-audio request. This page shows the request status, text content, selected voice, and provides access to the audio file and QR code when ready.
Access: Client login required
Purpose: View individual request details and download results
Key Actions:
- View complete request information
- Download audio file (when done)
- Download QR code (when done)
- View playback link
Live Preview
Request REQ-001234
Created 2 days ago
✓ Status: Done
API Endpoints
This page uses the following API endpoint:
Get Submission by ID
Endpoint: GET /api/v1/text-to-speech/{id}
Authentication: Required (Bearer token)
Role Required: client role for viewing personal submission
Description: Retrieves detailed information for a specific submission. Clients can only access their own submissions. Admins can access all submissions.
Status States
Pending State
Visual:
- Orange status badge
- Pending icon (clock)
- Message: "Your request is pending"
Information Shown:
- Request ID, voice, text content
- Created date
- No audio/QR available yet
Processing State
Visual:
- Blue status badge
- Processing icon (hourglass)
- Message: "Your request is being processed"
Information Shown:
- Request ID, voice, text content
- Created date
- Estimated completion time
- No audio/QR available yet
Done State
Visual:
- Green status badge
- Success icon (checkmark)
- Audio player section highlighted
Information Shown:
- Request ID, voice, text content
- Created and completed dates
- Audio player with play/download
- QR code with download button
- Shareable playback link
Page Elements
Header Section
- Request ID: Displayed as page title
- Back Button: Returns to My Requests list
- Status Badge: Color-coded status indicator
- Created Date: Time since creation
Request Information Card
Fields Displayed:
- Voice Model: Avatar and name/details
- Text Content: Full text with character count
- Created At: Request creation timestamp
- Completed At: Completion timestamp (when done)
Audio Player Section (Done Status Only)
Components:
-
Audio Player:
- Play/pause button
- Download MP3 button
- Embedded HTML5 audio player
-
QR Code Display:
- Visual QR code preview (200x200px)
- Download QR code button
- Scan instructions
-
Playback Link:
- Shareable public URL
- Copy to clipboard button
- Instructions for sharing
Status Messages
Pending:
- Clock icon
- "Your request is pending" message
- Expected wait time information
Processing:
- Hourglass icon
- "Your request is being processed" message
- Progress indication
Done:
- Checkmark icon
- Full audio player section
- QR code download
- Playback link
User Actions
Primary Actions (Done Status)
- Play Audio - Listen to generated audio
- Download MP3 - Save audio file locally
- Download QR Code - Save QR code image
- Copy Playback Link - Share public URL
Secondary Actions
- Back to List - Return to My Requests
- Create New Request - Submit another request
User Flow
Previous Page: My Requests List
Current Page: Request Details (Single View)
Flow:
- Client clicks request from list
- Client views detailed request information
- If Pending: Client sees pending message
- If Processing: Client sees processing message
- If Done: Client can play audio, download QR, copy link
- Client returns to list or creates new request
Email Notifications
Users receive emails at each status change. When clicking the link in the "Done" email, they arrive directly at this page.
See Email Templates for notification details.
Success Criteria
- ✅ Client can view complete request details
- ✅ Status badge displays correct state
- ✅ Text content displays fully
- ✅ Audio player works (when done)
- ✅ Download buttons work (when done)
- ✅ QR code displays correctly (when done)
- ✅ Playback link is copyable
- ✅ Back button returns to list
- ✅ Appropriate messages for each status
- ✅ Responsive on mobile devices
Related Documentation
- My Requests List - Request list view
- Request Submission Form - Create new request
- User Profile API - User endpoints
- Email Templates - Notification system
- QR Playback Page - Public playback page
- User Flow - Complete workflow