This is a demo project that showcases the integration of AI text-to-speech technology for generating professional voicemail greetings. Simply type your desired greeting message, and the service converts it into a natural-sounding voice recording.
This project consists of two main components:
- A RESTful API backend built with Express.js
- A modern frontend interface built with Next.js 14 (App Router)
- Text-to-speech conversion using Play.ai API
- Real-time generation status updates
- Custom audio player interface
- Mobile-responsive design
- Simple and intuitive user interface
Backend:
- Node.js
- Express.js
- Play.ai API integration
- TypeScript
Frontend:
- Next.js 14
- React
- TailwindCSS
- TypeScript
- Node.js 18 or higher
- pnpm package manager
- Play.ai API credentials
- Clone the repository
- Navigate to the backend directory:
cd backend
pnpm install
- Create a
.env
file:
API_KEY=your_play_ai_api_key
USER_ID=your_play_ai_user_id
PORT=4000
- Start the development server:
pnpm run dev
- Navigate to the frontend directory:
cd frontend
pnpm install
- Start the development server:
pnpm run dev
POST /generate
- Generate a new voicemail greetingGET /status/:requestId
- Check generation statusGET /download/:requestId
- Get the download URL