Skip to content

Commit

Permalink
Revert "fix: handle Google Speech Recognition could not understand au…
Browse files Browse the repository at this point in the history
…dio"

This reverts commit 853f14c.
  • Loading branch information
msadeqsirjani committed Jun 13, 2023
1 parent 853f14c commit a8a50d3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .idea/BarkTalk.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,12 @@ def ask(language: str):

os.remove(secure_file_path)

if prompt is None:
return jsonify({"data": None,
"message": "Google Speech Recognition could not understand audio",
"status": "success"}), 400

engine = gpt_engine.GptEngine()

answer_text = engine.command(prompt=prompt)

exact_answer_voice_name = text_to_speech.convert(text=answer_text,
language=language)
language=language)

data = {
"prompt": prompt,
Expand Down
Binary file modified requirements.txt
Binary file not shown.

0 comments on commit a8a50d3

Please sign in to comment.