Python 如何连接到ZOOM API
对于一个小项目,我希望连接到zoom API,这意味着:我想使用音频、视频和聊天作为输入。然后在我的程序中用这个输入做一些事情。 到目前为止我所做的: 我能够用python语音识别库和虚拟电缆将音频连接到我的程序。 我的下一步:以某种方式使用get聊天,并用它和视频做一些事情。 我用python编写程序,但我对其他方法持开放态度。 谢谢大家!Python 如何连接到ZOOM API,python,zoom-sdk,Python,Zoom Sdk,对于一个小项目,我希望连接到zoom API,这意味着:我想使用音频、视频和聊天作为输入。然后在我的程序中用这个输入做一些事情。 到目前为止我所做的: 我能够用python语音识别库和虚拟电缆将音频连接到我的程序。 我的下一步:以某种方式使用get聊天,并用它和视频做一些事情。 我用python编写程序,但我对其他方法持开放态度。 谢谢大家! import speech_recognition as sr import keyboard import os import time def t
import speech_recognition as sr
import keyboard
import os
import time
def takeCommand():
r = sr.Recognizer()
with sr.Microphone(device_index=2) as source:
print("Listening...")
r.pause_threshold = 1
try:
audio = r.listen(source, timeout=2)
except sr.WaitTimeoutError as e:
return "None"
try:
print("Recognizing...")
query = r.recognize_google(audio, language='en-in')
print(f"User said: {query}\n")
except Exception as e:
print(e)
print("Unable to Recognizing your voice.")
return "None"
return query
if __name__ == '__main__':
clear = lambda: os.system('cls')
clear()
while True:
query = takeCommand().lower()
//dosomething with query