Android设备为PROPERTY_SUPPORT_MIC_NEAR_ULTRASOUND和PROPERTY_SUPPORT_SPEAKER_NEAR_ULTRASOUND提供了什么功能

时间:2016-11-21 18:39:11

标签: android audio microphone frequency-analysis speaker

我正在查看Android API文档,在AudioManager页面中,我找到了以下属性。

PROPERTY_SUPPORT_MIC_NEAR_ULTRASOUND (Added in API level 23)

String PROPERTY_SUPPORT_MIC_NEAR_ULTRASOUND

Used as a key for getProperty(String) to determine if the default microphone audio source supports near-ultrasound frequencies (range of 18 - 21 kHz).


PROPERTY_SUPPORT_SPEAKER_NEAR_ULTRASOUND (Added in API level 23)

String PROPERTY_SUPPORT_SPEAKER_NEAR_ULTRASOUND

Used as a key for getProperty(String) to determine if the default speaker audio path supports near-ultrasound frequencies (range of 18 - 21 kHz).

我想知道“支持近超声频率”的技术含义是什么

2 个答案:

答案 0 :(得分:0)

我在Android 7.0兼容性定义文档

中找到了它

7.8.3。近超声

近超声音频是18.5 kHz至20 kHz频段。设备实现必须通过AudioManager.getProperty API正确报告对近超声音频功能的支持,如下所示:

If PROPERTY_SUPPORT_MIC_NEAR_ULTRASOUND is "true", then the following requirements must be met by the VOICE_RECOGNITION and UNPROCESSED audio sources:
    The microphone's mean power response in the 18.5 kHz to 20 kHz band MUST be no more than 15 dB below the response at 2 kHz.
    The microphone's unweighted signal to noise ratio over 18.5 kHz to 20 kHz for a 19 kHz tone at -26 dBFS MUST be no lower than 50 dB.
If PROPERTY_SUPPORT_SPEAKER_NEAR_ULTRASOUND is "true", then the speaker's mean response in 18.5 kHz - 20 kHz MUST be no lower than 40 dB below the response at 2 kHz.

答案 1 :(得分:0)

支持近超声波频率意味着麦克风可以录制18 - 21 kHz范围内的声音(引自您引用的文档。)