robotsasfurniture / passive-sound-localization

Other
1 stars 2 forks source link

feat: Read multiple mics with audio mixing #4

Closed nicolasperez19 closed 1 month ago

nicolasperez19 commented 1 month ago

Although I had already written code to read audio from multiple microphones and save them to wav files, I rewrote the code for the following reasons:

  1. So the code was configurable using Hydra
  2. I had to join the audio data from the microphone array and put them in a single wav file in order to do speech transcription using OpenAI's speech-to-text (Whisper). I saved this wave file under the folder structure of audio_files/single_channel/output.wav.
  3. I saved the separate wav files for each microphone into a separate folder, under the folder structure of audio_files/multi_channel.