We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fffc9b commit 93de4f4Copy full SHA for 93de4f4
Detect_and_Translate_languages/detect_translate.py
@@ -61,7 +61,7 @@ def trans(x, d):
61
62
63
print("Start speaking.....(To terminate the program say 'Stop!')")
64
-while(1):
+while (1):
65
try:
66
with sr.Microphone() as source2:
67
r.adjust_for_ambient_noise(source2, duration=0.2)
@@ -70,7 +70,7 @@ def trans(x, d):
70
MyText.lower()
71
if MyText == 'stop':
72
break
73
- print("Did you say "+MyText)
+ print("Did you say " + MyText)
74
d = input(
75
'Enter the language you need the text to be translated into:')
76
translated = trans(MyText, d)
0 commit comments