Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: convertaudiobinary
Hello,
 
Anyone has any idea how I can convert an audio file into binary code? Are there any programs I can use?
 
Thank you,
MayaSage
Posted 27-Sep-12 7:38am
Comments
Sergey Alexandrovich Kryukov at 27-Sep-12 13:50pm
   
What do you mean, exactly? --SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The question makes no sense. Everything is "binary", including your original audio file.
 
[EDIT]
 
After OP's (incomplete) clarification:
 
I can only guess that you need to represent the waveform and do some image recognition, but it all depends on what you have and what you want — please see my comments below.
 
First, you can convert your audio file in the format more suitable for direct representation of the waveform. I would advise to convert it to the .WAV format. You can use many different applications, but first of all, I would advise to use multiplarform ffmpeg:
http://en.wikipedia.org/wiki/FFmpeg[^],
http://ffmpeg.org/[^].
http://linux.die.net/man/1/ffmpeg[^] (also applicable to Windows, but you can also just run ffmpeg.exe on Windows to get help).
 
For reading the file into a waveform in memory, you can use many different libraries depending on the language you use and the platform.
 
If, at first, you just want to see the waveform on screen, you can also use many programs. The one which is open source and available on many platforms is Audacity (audio editor):
http://en.wikipedia.org/wiki/Audacity_%28audio_editor%29[^],
http://audacity.sourceforge.net/[^].
 
In principle, you would be able to recognize Morse code "manualy" (should I say "visually") using just the audio editor. If the message is short enough for such work.
 
—SA
  Permalink  
v6
Comments
Marcus Kramer at 27-Sep-12 14:02pm
   
+5. Just what I was thinking
Sergey Alexandrovich Kryukov at 27-Sep-12 14:38pm
   
Thank you, Marcus. After OP's clarifications, I finally gave some references... --SA
Sergey Alexandrovich Kryukov at 27-Sep-12 14:04pm
   
[OP commented:] I understand that everything is binary, but how can see the binary code on an audio file. This is what I am trying to do; I got an audio file which I believed is got a message, so I will like to translate onto binary to latter converted into morse code. Do you get what I'm trying to do? Thank you, Sergey
Sergey Alexandrovich Kryukov at 27-Sep-12 14:10pm
   
First of all, please don't post comments or questions as "solution" -- they will be removed, no one gets notifications, and you can be down-voted or reported for improper use (sometimes, even spamming :-). You can add comment to existing posts (in this case -- to my answer) or use "Improve question". Even though you maintain that you understand this "binary", you don't explain what you mean by it in the case of your desired output data. You don't explain what do you want to do with it, programmatically or not. It looks like you want to see something called "waveform" and somehow recognize it. The first part depends on the input format. Again, programmatically, or not? --SA
Sergey Alexandrovich Kryukov at 27-Sep-12 14:21pm
   
So, from what you already told me, I can tell you what to use. Please see the updated answer, after [EDIT]. Feel free to ask your follow-up question, especially if you need something different. Main thing is: programmatical or not (and in what part), if so -- platform/language. --SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,588
1 OriginalGriff 528
2 Manas Bhardwaj 383
3 Damith Weerasinghe 330
4 Tadit Dash 315
0 Sergey Alexandrovich Kryukov 9,575
1 OriginalGriff 6,006
2 Peter Leow 4,500
3 Maciej Los 3,540
4 Abhinav S 3,513


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid