saharmor / realtime-transcription-playground

A real-time transcription project using React and socketio
MIT License
144 stars 21 forks source link

Add support for stop words being sent from client #2

Open saharmor opened 3 years ago

saharmor commented 3 years ago

Can be implemented either on the client-side or backend.

If in the backend, consider using this code in the listen_print_loop method.

if re.search(r"\b(exit|quit)\b", transcript, re.I):
   print("Exiting..")
   break