音频到二进制代码 [英] Audio to Binary Code

查看:274
本文介绍了音频到二进制代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

有人知道如何将音频文件转换为二进制代码吗?有什么我可以使用的程序吗?

谢谢
MayaSage

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

推荐答案

这个问题没有道理.一切都是二进制",包括原始音频文件.



在OP(不完整)澄清之后:

我只能猜测您需要表示波形并进行一些图像识别,但这全都取决于您拥有什么和想要什么-请在下面查看我的评论.

首先,您可以将音频文件转换为更适合直接表示波形的格式.我建议将其转换为.WAV格式.您可以使用许多不同的应用程序,但是首先,我建议您使用多平台ffmpeg:
http://en.wikipedia.org/wiki/FFmpeg [ http://ffmpeg.org/ [ ^ ].
http://linux.die.net/man/1/ffmpeg [ http://en.wikipedia.org/wiki/Audacity_%28audio_editor%29 [ ^ ],
http://audacity.sourceforge.net/ [ ^ ].

原则上,仅使用音频编辑器就可以识别摩尔斯电码"manualy"(我应该说视觉上").如果消息足够简短,无法进行此类工作.

—SA
The question makes no sense. Everything is "binary", including your original audio file.



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


这篇关于音频到二进制代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆