Git Product home page Git Product logo

simple-audio-recorder-api's Introduction

Simple Audio Recorder API

The Simple Audio Recorder API is a Node.js application that allows you to upload and save audio files. The API is used by the Simple Audio Recorder app to save audio files on the server.

Prerequisites

Before you begin, ensure you have the following software installed on your computer:

  1. python3

Installation

  1. Clone the repository or download the source code:
git clone https://github.com/yourusername/simple-audio-recorder-api.git
  1. Change into the project directory:
cd simple-audio-recorder-api
  1. Install the required dependencies:
pip install -r requirements.txt

Running the API

  1. To start the API server, run the following command:
python app.py
  1. The server can start with the host 0.0.0.0 and a specific port
python app.py --host 0.0.0.0 --port 3000

Usage

To save an audio file, send a POST request to the /api/save-audio endpoint with the audio file attached as form-data with the key "audio". The audio file will be saved in the "uploads" directory with a unique filename.

Example using curl:

curl -X POST -H "Content-Type: multipart/form-data" -F "audio=@path/to/your/audiofile.wav" http://localhost:3000/api/save-audio

Replace path/to/your/audiofile.wav with the path to your audio file.

Upon successful upload, you will receive a JSON response:

{
  "message": "Audio file saved successfully"
}

License

This project is licensed under the MIT License.

simple-audio-recorder-api's People

Contributors

a22106 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.