how to make an audio file from serial input

edited April 2014 in Arduino

I currently have an arduino printing data from a sensor to the com port of my computer. How do I turn that data into an audio file?

Comments

  • What does this question mean?

  • Does anyone know an approach to create an audio file from the signal my arduino is reading off of the analog pin? I am currently reading the sensor and sampling it and sending the digital signal to the computer over the serial port. is there any way to use processing to create an audio file from the data from the serial port?

  • It is probably possible, but I have no idea how to do it. Have you looked into the Minim library?

  • I checked out the minim library but it is built to use line in inputs

  • Almost same question has been asked in this post but the code that I have posted is producing sound but not expected as I wanted but you can look here it might get you some idea.

  • Its definitely possible. But I must say you would have to walk on very hard road.

    You must use following functions:-

    output = creatWriter("file_name.mp3")

    then depending on MP3 file format

    you must write each and every parameter to your design. Best of luck.

    It would be really nice to see this completed. I would be glad to help you, if you get stuck at any point.

Sign In or Register to comment.