I’d like to reproduce S3 .wav audio files in my Dash application. At this moment, locally the files can be reproduced properly from my dashboard using html.Audio(id="audio", src=f"assets/{file_name}", controls=True)
, this assumes you have physically the files and are located on assets
folder. I don’t want to store the files, because the number can go to thousands, so I’d like to stream the files from S3 every time is needed.
Another thing is that the S3 bucket is protected, so I cannot do html.Audio(id="audio", src="/url-s3-bucket/audio.wav", controls=True)
.
How can I reproduce the audios under these conditions?, any suggestions?