I have supplied my code with my OpenAI API key so that it will be simple for anyone to run the code for troubleshooting purposes. I will be removing that key from my OpenAI profile very soon since it can't remain exposed to the public. Hopefully this will make it easier for anyone to assist me on this problem. Just run the code and you will see the issues.
I have converted the OpenAI library to a Class module for easier troubleshooting.
I have modified the OpenAI Class to allow me to specify the location I want the mp3 file saved.
I run the code and put in a text. I click the far right label which I have made to give a speech response. I get an error that the media player is not initialized, but it still plays the mp3 file created by the TTS response from OpenAI.
Any ideas why this is happening? I have been fighting it for many hours and can't get a smooth run with the TTS response.
If I click the TTS response button again, it plays the mp3 file twice. Also an irregularity.
I have converted the OpenAI library to a Class module for easier troubleshooting.
I have modified the OpenAI Class to allow me to specify the location I want the mp3 file saved.
I run the code and put in a text. I click the far right label which I have made to give a speech response. I get an error that the media player is not initialized, but it still plays the mp3 file created by the TTS response from OpenAI.
Any ideas why this is happening? I have been fighting it for many hours and can't get a smooth run with the TTS response.
If I click the TTS response button again, it plays the mp3 file twice. Also an irregularity.
Attachments
Last edited: