Live Demo: 🚀 Click here to see the app in action!
A web application that converts text into speech using Hugging Face's API. Built with React and styled with Tailwind CSS, it features an animated gradient background and a responsive, modern UI.
- 🎧 Text to Speech Conversion: Converts user-inputted text into speech using a model from Hugging Face's inference API.
- 🎨 Animated Gradient Background: Enjoy a visually engaging background with smooth color transitions.
- 📱 Responsive UI: Built with Tailwind CSS for a clean and accessible interface.
- 🔗 Social Links: Connect with the developer via GitHub and email right from the app.
- React: JavaScript library for building user interfaces.
- Tailwind CSS: Utility-first CSS framework for responsive styling.
- Hugging Face API: API used for text-to-speech conversion.
- React Icons: For displaying GitHub and email icons in the footer.
-
Clone the repository:
git clone https://github.com/your-username/text-to-speech-app.git
-
Navigate to the project directory:
cd text-to-speech-app
-
Install dependencies:
npm install
-
Install
react-icons
for icon support:npm install react-icons
-
Create a
.env
file in the root directory to store your Hugging Face API token:REACT_APP_HUGGING_FACE_TOKEN=your_hugging_face_token
Replace
your_hugging_face_token
with your actual Hugging Face API token.
-
Start the development server:
npm start
-
Open your browser and go to
http://localhost:3000
to view the app. -
Type the text you want to convert to speech and click Convert to Speech. The audio output will be available below the button. 🎶
src/
components/
TextToSpeech.js
: Main component for text-to-speech conversion.
utils/
api.js
: Contains the API call function for Hugging Face API.
Handles the UI and core functionality of the application, including:
- ✍️ Text input for user-provided text.
- 🔄 Convert button to trigger text-to-speech conversion.
- 🔉 Audio output for playing the converted speech.
Contains Tailwind CSS configurations and custom styles, including the animated gradient background.
- react: ^17.0.2
- react-icons: ^4.3.1
- tailwindcss: ^2.2.19
This project is licensed under the MIT License.
- Developer: Vijay Kumar Gowda K K
- GitHub: vijaykumargowdakk
- Email: [email protected]