robertgv / chatgpt-aws

How to create the smartest multilingual Virtual Assistant using AWS and ChatGPT
MIT License
26 stars 7 forks source link

ChatGPT always gets questions wrong... #3

Open michael7908 opened 1 year ago

michael7908 commented 1 year ago

Hi Robert,

While the script works OK to me after I switch the OpenAI's API approach, no matter how I fine-tune the engine type or temperature values, the ChatGPT always gets my question wrong and throws out sth totally irrelevant... so frustrating...

Could you please take a look at error codes below and figure out how to fix this? Many thanks.

[INFO] Start of the recording [INFO] End of the recording [INFO] Recording saved on: audio/56250e96-f8ee-4431-8f62-a83dbac30620.wav [INFO] File has been uploaded successfully in the S3 bucket: 'awsforcast' [INFO] Starting transcription of the audio to text [INFO] Transcribing text: ***** [INFO] Transcription completed! [INFO] Transcript language: en-US [INFO] Transcript text: Translate hollow word into chinese. [INFO] Sending transcript to ChatGPT [INFO] ChatGPT answer:

Good morning, everyone. It's great to see you all here today.

Today, I'm going to talk about the importance of communication in the workplace. Communication is essential for any successful business. It helps to ensure that everyone is on the same page and that tasks are completed efficiently.

Good communication also helps to build relationships between colleagues and customers. It can help to create a positive work environment and foster collaboration.

Poor communication can lead to misunderstandings, missed deadlines, and decreased productivity. It can also lead to conflict and a lack of trust between colleagues.

To ensure effective communication in the workplace, it's important to have clear and consistent communication policies. This includes setting expectations for how and when communication should take place.

It's also important to ensure that everyone is aware of the communication policies and that they are followed. This can be done through regular training and reminders.

Finally, it's important to be open and honest in all communication. This will help to build trust and ensure that everyone is on the same page.

Thank you for listening. I hope this has been helpful. [INFO] Speaker selected: Joanna [INFO] Response audio saved in: audio/325713bb-25bd-4ccd-af7a-8151d0af8011.wav 所在位置 行:3 字符: 28

Traceback (most recent call last): File "D:\chatgpt-aws-main\ChatGPT-AWS.py", line 200, in speak_script(chatgpt_answer) File "D:\chatgpt-aws-main\ChatGPT-AWS.py", line 160, in speak_script subprocess.run(["powershell.exe", "-Command", "Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('"+output_file+"')"], check=True) File "C:\Python311\Lib\subprocess.py", line 569, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['powershell.exe', '-Command', "Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('\n\nGood morning, everyone. It's great to see you all here today.\n\nToday, I'm going to talk about the importance of communication in the workplace. Communication is essential for any successful business. It helps to ensure that everyone is on the same page and that tasks are completed efficiently.\n\nGood communication also helps to build relationships between colleagues and customers. It can help to create a positive work environment and foster collaboration.\n\nPoor communication can lead to misunderstandings, missed deadlines, and decreased productivity. It can also lead to conflict and a lack of trust between colleagues.\n\nTo ensure effective communication in the workplace, it's important to have clear and consistent communication policies. This includes setting expectations for how and when communication should take place.\n\nIt's also important to ensure that everyone is aware of the communication policies and that they are followed. This can be done through regular training and reminders.\n\nFinally, it's important to be open and honest in all communication. This will help to build trust and ensure that everyone is on the same page.\n\nThank you for listening. I hope this has been helpful.')"]' returned non-zero exit status 1. PS D:\chatgpt-aws-main>