跟踪音频(强度等级) - 的Android / iPhone [英] Tracking audio (level of intensity) - android/iphone
问题描述
是否有可能检索音频输出信号的过程中音频播放致力于耳机的特点是什么?我不想录制的信号本身(也就是,我不想用磁带播放器录制电台作出80年代风格的混音带),而是我只是想知道的实力,在分贝,对信号为医学研究目的。
Is it possible to retrieve the characteristics of the audio output signal dedicated to headphones during audio playback? I don't want to record the signal per se (that is, I don't want to record the radio with a tape player to make an 80s style mixtape), but instead I only want to know the strength, in decibels, of the signal for medical research purposes.
我想这也许可以以相同的方式来实现可视化工具呢?
I was thinking this could maybe be accomplished in the same manner a visualizer does?
推荐答案
如果你正在写一个Android应用程序,我认为你正在寻找的 AudioManager ,您可以通过它查询不同的音频流的音量。
If you're writing an Android app, I think you're looking for the AudioManager, through which you can query the volume of the different audio streams.
调用<一href="http://developer.android.com/reference/android/media/AudioManager.html#getStreamVolume%28int%29"相对=nofollow> getStreamVolume
应该得到你想要的数据。
Calling getStreamVolume
should get you the data you want.
这篇关于跟踪音频(强度等级) - 的Android / iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!