Say I want to input with the microphone of my local machine and pass it to the code in the jupyter notebook running on a remote server through ssh.
import speech_recognition as sr
recog = sr.Recognizer()
with sr.Microphone() as source:
print("Start recording...")
audio = recog.listen(source)
This snippet reads audio input from the microphone of my local machine when I run it on a local jupyter notebook. Is it possible to pipe the audio input from my local machine to the jupyter notebook running on a remote server through ssh?
Here are my two cents on it (in two points - pun intended):