This Streamlit app uses ChatGPT along with Azure Speech Services to provide an interactive and engaging chatting experience for users. Users can chat with the AI both using text input and voice input, making your experience more personalized and convenient.
- Clone the repository:
git clone https://github.com/USERNAME/chatApp.git
- Navigate to the project folder:
cd chatApp
- Run the Streamlit app:
streamlit run app.py
Before you begin, make sure you run
pip install -r requirements.txt
To chat with ChatGPT using text inputs, follow these steps:
- Navigate to the sidebar and select "Text" from the dropdown menu.
- Enter your OpenAI API Key and hit Enter.
- The chat window should appear in the main page.
- Type your chats in the box provided and hit Enter to send your messages.
To chat with ChatGPT using voice inputs through Azure Speech Services, follow these steps:
- Navigate to the sidebar and select "Voice" from the dropdown menu.
- Enter your OpenAI API Key and your Azure Speech Subscription Key.
- The bot should greet you right away.
- When you see "Speak Now" you may speak, and when you see "Speech received" along with a transcript of what it received, the bot is preparing to respond. When you see "Speech received" become grayed out, you may speak again.
- Listen to the AI-generated response through your speakers or headphones.
*NOTE: You need to have an Azure Speech Services subscription key to use the voice input feature. Also the conversation will be just like the chat bot, so you must wait until the bot finishes speaking before talking.
Enjoy your chatting experience with Streamlit ChatGPT with Azure Speech Services!