简体   繁体   中英

Applescript / Java - Detecting microphone input sound level

After extensive searches I can't find any information on how to detect the microphone sound level input in mac OSX using either Applescript or Java.

The purpose of this is to write an automatic volume adjust script based on the sound level detected by the built in microphone.

I know that commercial solutions exist but I'm interested simply as an exercise.

Just in case people think I'm posting on here just to make a statement I'm informed that I should add something to which a question mark can be added or people won't understand that it's a question.

I am after some example code in either java or applescript to show how to detect the microphone input sound level. Can anyone help with this?

set currentVolume to output volume of (get volume settings)

这是来自MacScripter线程的 ,它也可能会回答有关此项目的更多问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM