idanre1 / audioStreamArduino

Streaming audio over serial port to arduino
GNU General Public License v3.0
8 stars 4 forks source link

input music #1

Open gunaone opened 5 years ago

gunaone commented 5 years ago

hy @idanre1 ... where is the input music... thats we copy wave raw data and paste in serial and just send like that?

idanre1 commented 5 years ago

Hi Basically in the root path in github of the project you can find two perl files: wavInfo - can read WAV file format and verify if the WAV file which provided is with the correct format. play.pl - knows how to read the WAV payload (the music itself) and transmit it towards arduino.

music path has the following:

  1. sample hfiles - raw data that you can transmit to arduino (V1 of the code, see hfile path for more details)
  2. sample wav files - converted wav files the can be transmitted to arduino without conversion
  3. convert.sh - takes mp3 file and convert it to the correct wav file.

In case you want to play your own music, use convert.sh to adapt any mp3 you care, and use play.pl to transmit it towards arduino.

Please note the complete framework is coded for linux environment, I guess if you are using windows some adaptation should be taken...

Regards Idan