Step-by-Step Guide to Building an AI Voice Assistant with Streamlit & OpenAI

Skolo Online
Skolo Online
3.8 هزار بار بازدید - 7 ماه پیش - #streamlit
#streamlit #chatbot #openai
----------------------------------------------------------------------------------------------------------------------
Step-by-Step Guide to Building an AI Voice Assistant with Streamlit & OpenAI
----------------------------------------------------------------------------------------------------------------------

In this tutorial, I'll guide you through the process of creating a personal voice assistant app using Python, Streamlit, and OpenAI's APIs. We'll explore and utilize three key OpenAI APIs:

1. Speech to Text (Whisper API) - This API converts spoken words into written text.
2. Chat Completion - This API generates AI responses based on text prompts or questions.
3. Text to Speech (TTS API) - This API transforms written text into spoken words, mimicking human speech.

Application Code GIST: https://gist.github.com/skolo-online/...
----------------------------------------------------------------------------------------------------------------------
Useful Links:
OpenAI pricing: https://openai.com/pricing
Speech to Text: https://platform.openai.com/docs/guid...
Text to speech: https://platform.openai.com/docs/guid...
Chat completions: https://platform.openai.com/docs/guid...
Streamlit - https://streamlit.io/
Streamlit Audio Recorder: https://pypi.org/project/audio-record...
----------------------------------------------------------------------------------------------------------------------
Timestamps
00:01:41 Demo of the speech to text, chat completion, text to speech application we are going to build in streamlit
00:04:35 Course Outline
00:17:23 Building the audio recorder
00:24:59 Fixing the browser permission issues with the voice recorder on Chrome
00:33:31 Get OpenAI API Key
00:34:35 Transcribe the speech to text using Whisper API
00:47:50 Use chat completions to get AI response to the transcribed text
00:57:05 OpenAI Text to Speech (TTS) API - get voice mp3 from text
----------------------------------------------------------------------------------------------------------------------
Contact:
Follow our Google News Publication:
https://news.google.com/publications/...

Medium Publication: Medium: skolo-online

Follow us on Facebook: Facebook: Skolo-Online..

Email me: [email protected]

Follow us on Twitter: Twitter: skolo_online

Follow us on Instagram: Instagram: skolo_online

Learn more on Skolo Online
https://skolo.online
----------------------------------------------------------------------------------------------------------------------
#chatgpt #aichatbots #aichatbot
7 ماه پیش در تاریخ 1402/10/02 منتشر شده است.
3,812 بـار بازدید شده
... بیشتر