A Rails API that converts audio and video files to text using AssemblyAI's transcription service.
- Ruby 3.1.2
- Rails 7.0.4
- SQLite3
- Clone the repository
- Install dependencies:
bundle install- Set up the database:
rails db:create db:migrate- Add your AssemblyAI API key in
app/controllers/api/v1/transcription_service.rb
The API uses Devise JWT for authentication. Include the JWT token in request headers:
Authorization: Bearer <your-jwt-token>
Upload and transcribe an audio file.
- Request:
multipart/form-datawithaudio_fileparameter - Response: Transcribed text and file information
Get all audio transcriptions for the current user.
Get a specific audio transcription.
Delete an audio transcription.
- Audio file transcription
- User authentication with JWT
- Flagged word detection
- User blocking after 3 flagged words