Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshitRuwali committed Oct 22, 2020
1 parent a28b981 commit b39d79f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions users/user_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ def main(command):
audio =q.listen(source)
try:
query = q.recognize_google(audio)
print('you said :{}'.format(text))
print('you said :{}'.format(query))
t=1
except:
print('Not understandable')
print('Try again')
t==0
t=0
url = "https://www.youtube.com/results?search_query=" + query
webbrowser.open(url)

Expand Down
4 changes: 2 additions & 2 deletions users/user_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ def main(command):
audio =q.listen(source)
try:
query = q.recognize_google(audio)
print('you said :{}'.format(text))
print('you said :{}'.format(query))
t=1
except:
print('Not understandable')
print('Try again')
t==0
t=0
url = "https://www.youtube.com/results?search_query=" + query
webbrowser.open(url)

Expand Down
4 changes: 2 additions & 2 deletions users/user_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ def main(command):
audio =q.listen(source)
try:
query = q.recognize_google(audio)
print('you said :{}'.format(text))
print('you said :{}'.format(query))
t=1
except:
print('Not understandable')
print('Try again')
t==0
t=0
url = "https://www.youtube.com/results?search_query=" + query
webbrowser.open(url)

Expand Down
4 changes: 2 additions & 2 deletions users/user_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ def main(command):
audio =q.listen(source)
try:
query = q.recognize_google(audio)
print('you said :{}'.format(text))
print('you said :{}'.format(query))
t=1
except:
print('Not understandable')
print('Try again')
t==0
t=0
url = "https://www.youtube.com/results?search_query=" + query
webbrowser.open(url)

Expand Down
4 changes: 2 additions & 2 deletions voice_assistant_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ def main(command):
audio = q.listen(source, phrase_time_limit=5)
try:
query = q.recognize_google(audio)
print('you said :{}'.format(text))
print('you said :{}'.format(query))
t = 1
except:
print('Not understandable')
print('Try again')
t == 0
t = 0
url = "https://www.youtube.com/results?search_query=" + query
webbrowser.open(url)

Expand Down

0 comments on commit b39d79f

Please sign in to comment.