0

I tried to run the code. It worked very well but leaving a dictionary after being executed.

This is the code: Code for the wishMe function which is executed at the starting of the program

  • post the code and not the pictures of code. Users need to be able to replicate the problem quickly, which text allows for (and pictures do not). https://stackoverflow.com/help/how-to-ask – D.L Jan 03 '23 at 10:48

1 Answers1

0

It seems you make use of the package SpeechRecognition.

On line 54 of main.py you call r.recognize_google(). Looking at the source code of this method, on line 917 and 918 it shows that the authors of the package print the results when the method is called.

Unfortunately there is no easy way to suppress print statements in imported code. If it really bothers you, you can modify stdout like they suggest in this thread. Or you can fork the repository and change the source code so results only print when you want to.