This PR adds integration with the Whisper OpenAI API to enable speech-to-text conversion in the chatGPT application. It introduces new features such as a microphone icon, pause/unpause and cancel recording buttons, and saving settings in local storage. The implementation follows the provided guide for creating a transcription using the Whisper API.
Summary of Changes
Modified ChatInput.jsx to add a microphone icon, pause/unpause and cancel recording buttons, and implement recording functionality.
Modified App.jsx to create a sendAudio function and update props sent to ChatInput.jsx.
Modified Preferences.jsx to add a second tab for optional arguments to the API request.
Modified ChatMessages.jsx to update the saveChatLog function to include audio messages in the chat transcript.
Modified App.jsx to implement saving settings in local storage.
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 enable speech-to-text conversion in the chatGPT application. It introduces new features such as a microphone icon, pause/unpause and cancel recording buttons, and saving settings in local storage. The implementation follows the provided guide for creating a transcription using the Whisper API.
Summary of Changes
ChatInput.jsx
to add a microphone icon, pause/unpause and cancel recording buttons, and implement recording functionality.App.jsx
to create asendAudio
function and update props sent toChatInput.jsx
.Preferences.jsx
to add a second tab for optional arguments to the API request.ChatMessages.jsx
to update thesaveChatLog
function to include audio messages in the chat transcript.App.jsx
to implement saving settings in local storage.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.