This PR adds integration with the Whisper OpenAI API to enable speech-to-text conversion in the chat application. The feature allows users to record audio messages, send them to the API for transcription, and display the transcribed text as user messages in the chat.
Summary of Changes
Modified ChatInput.jsx to handle recording and sending audio messages.
Modified ChatMessages.jsx to display loading indicators for audio messages and update message content with transcriptions.
Modified App.jsx to pass recording status and audio message content to ChatInput and update the messages array.
Created WhisperAPI.js to implement functions for interacting with the Whisper OpenAI API.
Added a new tab for Whisper API settings in Preferences.jsx to save API settings to local storage.
Please review and merge this PR to enable speech-to-text functionality in the chat 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 chat application. The feature allows users to record audio messages, send them to the API for transcription, and display the transcribed text as user messages in the chat.
Summary of Changes
ChatInput.jsx
to handle recording and sending audio messages.ChatMessages.jsx
to display loading indicators for audio messages and update message content with transcriptions.App.jsx
to pass recording status and audio message content toChatInput
and update the messages array.WhisperAPI.js
to implement functions for interacting with the Whisper OpenAI API.Preferences.jsx
to save API settings to local storage.Please review and merge this PR to enable speech-to-text functionality in the chat 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.