Skip to content

Feat (backend): Parse recorded/uploaded audio file.#21

Open
A7reus wants to merge 3 commits into
YabaiTech:mainfrom
A7reus:process-audio-file
Open

Feat (backend): Parse recorded/uploaded audio file.#21
A7reus wants to merge 3 commits into
YabaiTech:mainfrom
A7reus:process-audio-file

Conversation

@A7reus
Copy link
Copy Markdown
Member

@A7reus A7reus commented Jun 5, 2025

ProcessAudio::parse() converts the audio file with given file path into the following format that is consistent to the FFT implementation. class RecordAudio() has been updated to match the new configuration.

  • 11025 sample rate
  • PCM_SIGNED encoding
  • 16 bits per sample
  • mono-channel

The method returns an array called samples, where each of its ith element, sample[i], is the loudness/pressure of the audio at time = i/11025. In other words, if samples[i] is plotted on one axis and i on the other, the peaks and valleys of the audio can be seen in the waveframe.

This addresses the issue #19 (not finalized).

Copy link
Copy Markdown
Contributor

@Twaha-Rahman Twaha-Rahman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are some of the things that stood out to me.

Fix them and we can work from there.

Comment thread app/src/main/java/org/orpheus/ProcessAudio.java Outdated
Comment thread app/src/main/java/org/orpheus/ProcessAudio.java
Comment thread app/src/main/java/org/orpheus/RecordAudio.java
Comment thread app/src/main/java/org/orpheus/ProcessAudio.java
Comment thread app/src/main/java/org/orpheus/ProcessAudio.java
@A7reus A7reus linked an issue Jun 6, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement passing input to FFT from an audio file (.wav).

2 participants