Skip to content

Joshuapavan/Audio-Video-to-text-API

Repository files navigation

Audio-Video to Text API

A Rails API that converts audio and video files to text using AssemblyAI's transcription service.

Requirements

  • Ruby 3.1.2
  • Rails 7.0.4
  • SQLite3

Setup

  1. Clone the repository
  2. Install dependencies:
bundle install
  1. Set up the database:
rails db:create db:migrate
  1. Add your AssemblyAI API key in app/controllers/api/v1/transcription_service.rb

API Endpoints

Authentication

The API uses Devise JWT for authentication. Include the JWT token in request headers:

Authorization: Bearer <your-jwt-token>

Audio Endpoints

POST /api/v1/audios

Upload and transcribe an audio file.

  • Request: multipart/form-data with audio_file parameter
  • Response: Transcribed text and file information

GET /api/v1/audios

Get all audio transcriptions for the current user.

GET /api/v1/audios/:id

Get a specific audio transcription.

DELETE /api/v1/audios/:id

Delete an audio transcription.

Features

  • Audio file transcription
  • User authentication with JWT
  • Flagged word detection
  • User blocking after 3 flagged words

About

A Rails API that converts audio and video files to text using AssemblyAI's transcription service.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •