https://github.com/fly-apps/django-dictaphone
A sample MDN Web Docs app that records audio snippets, with an Django/Tigris backend.
https://github.com/fly-apps/django-dictaphone
Last synced: 2 months ago
JSON representation
A sample MDN Web Docs app that records audio snippets, with an Django/Tigris backend.
- Host: GitHub
- URL: https://github.com/fly-apps/django-dictaphone
- Owner: fly-apps
- Created: 2024-08-19T13:15:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-27T14:58:17.000Z (almost 2 years ago)
- Last Synced: 2025-03-11T02:51:49.087Z (over 1 year ago)
- Language: Python
- Size: 57.6 KB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Web Dictaphone](http://todomvc.com), adapted for [fly.io](https://fly.io/)
This is a fork of [mdn/dom-examples/media/web-dictaphone](https://github.com/mdn/dom-examples/tree/main/media/web-dictaphone#readme), with the following additions:
* Django Models and Databases with a PostgreSQL database to persist an ordered list of clips
* Django Storages with a Tigris bucket for storing audio files
* Django Channels with Upstash Redis db and WebSockets for broadcasting updates
With these changes multiple replicas of this application can be deployed, even in multiple regions.
When WHISPER_URL is set:
- Clips that are stored in S3 Tigris will be sent to the Cog Whisper application for transcription.
- Transcription results will be stored in the PostgreSQL database.
- Database updates will be broadcast to all connected clients.
# Deployment
In an empty directory, run:
```
fly launch --from https://github.com/fly-apps/django-dictaphone.git
```
If you visit this application, you will see a standard web dictaphone example.
To create additional machines in other regions, run:
```
fly scale count 3 --region dfw,waw,syd
```
Note: By default, all machines will be configured to [automatically stop and start](https://fly.io/docs/apps/autostart-stop/).