This PR adds integration with the Whisper OpenAI API to convert speech to text in the chatGPT application. It introduces a new feature that allows users to record their voice and send it as a message to the ChatGPT API. The recording is converted to text using the Whisper OpenAI API and then sent as a message to the ChatGPT API. This enhances the user experience by providing an alternative input method and improves accessibility by adding ARIA states and properties to the new buttons.
Summary of Changes
Added a microphone button to the chat input area. The button is only visible when the chat box is empty.
Implemented functionality to start recording the user's voice when the microphone button is clicked.
Displayed pause, cancel, and send buttons during the recording process.
Implemented sending the recording to the Whisper OpenAI API to convert it to text.
Sent the converted text as a message to the ChatGPT API.
Added ARIA states and properties to the new buttons for accessibility.
Please review and merge this PR to enable speech-to-text functionality in the chatGPT application.
Fixes #6.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/whisper-api-integration
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
This PR adds integration with the Whisper OpenAI API to convert speech to text in the chatGPT application. It introduces a new feature that allows users to record their voice and send it as a message to the ChatGPT API. The recording is converted to text using the Whisper OpenAI API and then sent as a message to the ChatGPT API. This enhances the user experience by providing an alternative input method and improves accessibility by adding ARIA states and properties to the new buttons.
Summary of Changes
Please review and merge this PR to enable speech-to-text functionality in the chatGPT application.
Fixes #6.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.