Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Audio Journaling

Audio journaling with AI transcription

Flask API

python -m venv venv && source venv/bin/activate
pip install -r requirements.txt
flask run

Required .env Variables

FLASK_APP=app
FLASK_ENV=development|production
SECRET_KEY=your_random_secret_here
DATABASE_URI=sqlite:///instance/app.db or postgresql://user:pass@localhost/db
UPLOAD_FOLDER=uploads  # Relative to instance folder

API Documentation

POST /journal/entry (Upload file here) 📌 Create new audio journal entry
✅ Auth Required
📁 Form Data:

  • file: Audio file {'wav', 'mp3', 'ogg', 'm4a'}
{
    "data": {
        "file_size": 1524123,
        "mimetype": "audio/mpeg",
        "original_filename": "test.mp3",
        "saved_filename": "b3455f49-a58e-4c07-92f6-9a0c51b9c50d.mp3",
        "timestamp": "2025-05-03T23:39:44.161206"
    },
    "message": "File uploaded successfully",
    "status": "success",
    "uuid": "b3455f49-a58e-4c07-92f6-9a0c51b9c50d"
}

GET /journal/entry/<uuid:entry_id> (Ping this to check for status) 📝 Get specific entry
✅ Auth Required
🔒 User must own entry

{
	"created_at": "2025-05-04T00:56:52.387932",
	"file": "20250226_205636.m4a",
	"id": "ee8890f5-7e7c-4d7b-bf06-5fcdfcc23d03",
	"status": "processed", 
	"transcription": ""
}

DELETE /journal/entry/delete/<uuid:entry_id>
🗑️ Delete entry + audio
✅ Auth Required

GET /journal/entries
📜 List all user's entries
✅ Auth Required
🔍 Query Params:

  • ?page=1&per_page=10 (Pagination)

Authentication

POST /auth/register
👤 Register new user
📦 JSON Body:

{"email": "[email protected]", "password": "secure123"}

POST `/auth/login
🔑 Session Auth
📦 JSON Body: Same as register

POST /auth/logout
✅ Auth Required

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages