Asisto a varias reuniones periódicas de Zoom todos los días y me gustaría controlar la salida de audio de Zoom. Necesito un AppleScript o JavaScript para activar/desactivar el audio de Zoom sin cambiarlo en MacOS [Nivel del sistema] solo en la aplicación Zoom.
Uso Zoom Output "Select a Speaker" según las siguientes opciones:
Audio-On = Salida incorporada (altavoz interno) /
Audio-Off = NDI Audio (no en funcionamiento)
Para lograr esto utilizo los siguientes pasos:
Zoom tiene un botón [Mute-Mic] pero no [Mute-Spkr]. Sería bueno tener esto a mano, cuando necesite contestar una llamada telefónica.
Zoom de pantalla con claves para cambiar las opciones de altavoz
Por ejemplo: Escribí usando Automator mi acción de clic en la página web actual.
Aquí se genera el código de Automator:
on run {input, parameters} -- Mouse Clicked delay 7.956482 set timeoutSeconds to 2.000000 set uiScript to "click group 1 of list 2 of group 8 of UI Element 1 of scroll area 1 of group 1 of group 1 of tab group 1 of splitter group 1 of window \"javascript - Toggle Audio-Output On/Off within Zoom Meetings (MacOS) - Stack Overflow\" of application process \"Safari\"" my doWithTimeout( uiScript, timeoutSeconds ) return input end run on doWithTimeout(uiScript, timeoutSeconds) set endDate to (current date) + timeoutSeconds repeat try run script "tell application \"System Events\" " & uiScript & " end tell" exit repeat on error errorMessage if ((current date) > endDate) then error "Can not " & uiScript end if end try end repeat end doWithTimeoutTomo del guión anterior solo este contenido útil. Como puede ver, tomo solo la acción correcta de la interfaz de usuario ( el valor de la variable uiScript ):
tell application "System Events" to tell application process "Safari" set frontmost to true -- required click group 1 of list 2 of group 8 of UI element 1 of scroll area 1 of group 1 of group 1 of tab group 1 of splitter group 1 of window "javascript - Toggle Audio-Output On/Off within Zoom Meetings (MacOS) - Stack Overflow" end tell