在一个mp3用java年底识别沉默 [英] Identifying silence at the end of an mp3 using java

查看:178
本文介绍了在一个mp3用java年底识别沉默的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图在MP3格式音频月底检测的沉默,以及所有格式将是有益的,但​​MP3格式是最为重要的。

Trying to detect silence at the end of audio in mp3 format, well all formats would be useful but mp3 format is the most important

推荐答案

我知道的唯一方法在声音剪辑的末尾可靠地检测沉默是将其转换为一个PCM格式,然后执行以下计算中的一个检查对于一定的最小截止振幅

The only way I know of to reliably detect silence at the end of a sound clip is to convert it to a PCM format and do one of the following calculations checking for a certain minimum cut-off amplitude.

  • Decibels (dB)
  • Root Mean Square (RMS)

我从来没有成功地实现分贝,但RMS是比较简单的,应该用于该用途的工作。我用了上看到DukeBox播放器的痕迹区域的下左/右小酒吧。

I've never managed to implement dB, but RMS is relatively simple, and should work for this use. I used it for the small bars seen on the lower left/right of trace area of the DukeBox player.

至于如何做任何与MP3格式,请参阅 Java的声音信息的细节。页

As to how to do any of that with MP3 format, see the details on the Java Sound info. page.

这篇关于在一个mp3用java年底识别沉默的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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