We are running automated tests from command line. The tests are using a python library to control a sound card to play and record audio. The tests work fine when launched locally in the terminal of the Mac that is running the tests, but when we run the tests via Jenkins, or just by logging in via ssh and launching the tests, audio playback works, but recording just records "empty" (recording appears for expected duration, but it is silent)
In system settings we can set the microphone permissions for applications, such as Terminal or Audacity, but not for ssh connection.
So is there any workaround to get the sound recording to work in ssh connection?