Scheduled Algorithm Deployment Workflow#
Use Case: Orcasound Stream Spectrogram Visualization#
Next, we will demonstrate how GitHub Actions can be used to display a spectrogram for a segment from an underwater audio stream.
Spectrogram Visualization Workflow: .github/workflows/noise_processing.yml
Workflow Steps:
Generate spectrogram for a period of time (with
ambient_sound_analysis
package)Download data from AWS S3 bucket (in
.ts
format) for a given time periodConvert many small
.ts
files to one file in.wav
formatGenerate power spectrogram and store it in
.parquet
format
Read the power spectrogram in
pandas
dataframe formatCreate plots and save them:
psd.png
andbroadband.png
.Upload the
.png
files to GitHub
After the workflow is executed psd.png
and broadband.png
files are updated in the repo and are visualized below.