Git Product home page Git Product logo

eksaq's Introduction

Audio Recorder

Description

This is a simple web-based audio recorder application built with React. It allows users to record audio using their microphone, play back recorded audio, and view a list of previous recordings.

Table of Contents

Demo

Features

  • Record audio using the device's microphone
  • Stop and playback recorded audio
  • View a list of previous recordings
  • Upload recordings to a server / Cloud

Technologies Used

  • Node.js
  • Express.js
  • MongoDB
  • ReactJs
  • Google Cloud

Installation

For Backend

  1. Clone the repository:
```bash
git clone https://github.com/your-username/eksaq.git
cd backend
```
  1. Install dependencies:
```bash
npm install
```
  1. Set up your MongoDB connection by creating a .env file in the root directory with the following content:
```env
MONGOURL=your-mongodb-connection-string


```
  • Replace your-mongodb-connection-string with your MongoDB connection string .
  1. Run the application:
```bash
npm run server
```

The server will be running on http://localhost:8080 by default.

For Frontend

  1. Navigate to the frontend directory:
```bash
cd frontend
```
  1. Install dependencies:
```bash
npm install
```
  1. Start the frontend application:
```bash
npm start
```

The frontend will be running on http://localhost:3000.

This will launch the application in your default web browser. You can then use the audio recorder to record, play, and upload audio recordings.

Please note that the current recording time is limited to 4-5 seconds. We are working on extending this limit to allow longer recordings.

Google Cloud Account Setup

  • This application uses Google Cloud Storage for storing audio recordings. Follow the steps below to set up a Google Cloud account and obtain the necessary credentials:

    1. Create a Google Cloud Account:
      • If you don't have a Google Cloud account yet, you can create one by following the instructions on the Google Cloud website.
    2. Create a New Project:
      • Once you've signed in to your Google Cloud Console, create a new project by navigating to the Projects page and clicking on the "Create Project" button.
    3. Enable Google Cloud Storage API:
      • In your project dashboard, navigate to the APIs & Services > Library page. Search for "Cloud Storage API" and enable it for your project.
    4. Create Service Account:
      • Navigate to the IAM & Admin > Service Accounts page.
      • Click on "Create Service Account" and follow the prompts to create a new service account.
      • Assign the "Storage Object Admin" role to the service account.
    5. Generate JSON Key File:
      • After creating the service account, click on the newly created service account email.
      • Navigate to the "Keys" tab and click on "Add Key > Create new key."
      • Select the key type as JSON and click "Create." This will download a JSON file containing your credentials.
    6. Download JSON Key File:
      • Download the JSON key file and save it securely. This file will be used for authentication in your application.

Routes

Audio Routes

Method Endpoint Description
GET /audio/ Get all the Recording from the database
POST /audio/recordings Add audio Recording to Cloud and Database

eksaq's People

Contributors

kuldeepkd13 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.