this post was submitted on 08 Jul 2023
4 points (100.0% liked)
Waveform
1 readers
1 users here now
A place to talk about how we organise ourselves.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I see.
I guess you can just use the same look and feel of your instance. And take the
create post
screen as reference. Instead of uploading an image, you change it to acceptaudio/*
instead.Once the audio is uploaded, you can process it via
ffmpeg
to turn it into a visually appealing waveform png you then can show the users. Next to it would be a play and pause button, and seeking is done by sliding over the waveform (it also shows the current location by graying out the given portion like a progress bar).Once an audio is uploaded, you also could generate a UUID to reference that exact post for embedding or linking.
In embedded form: you see the same playback controls as the uploader, including the waveform.