{"id":13585006,"url":"https://github.com/mingkuan/voice-assistant-chatgpt","last_synced_at":"2025-04-07T06:32:04.855Z","repository":{"id":153034820,"uuid":"605322750","full_name":"mingkuan/voice-assistant-chatgpt","owner":"mingkuan","description":"Voice Assistant based on Whisper ASR and ChatGPT API","archived":false,"fork":false,"pushed_at":"2023-08-28T23:56:23.000Z","size":286,"stargazers_count":63,"open_issues_count":1,"forks_count":14,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-06T02:38:15.384Z","etag":null,"topics":["ai-web-app","asr","chatbot-application","chatgpt","chatgpt-bot","multilingual","speech-recognition","speech-synthesis","streamlit","streamlit-webapp","voice-assistant","whisper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mingkuan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-22T23:09:27.000Z","updated_at":"2024-11-02T15:01:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"5de11b77-cc34-447c-bfdf-570d9b05e0b9","html_url":"https://github.com/mingkuan/voice-assistant-chatgpt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingkuan%2Fvoice-assistant-chatgpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingkuan%2Fvoice-assistant-chatgpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingkuan%2Fvoice-assistant-chatgpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingkuan%2Fvoice-assistant-chatgpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mingkuan","download_url":"https://codeload.github.com/mingkuan/voice-assistant-chatgpt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247607160,"owners_count":20965925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-web-app","asr","chatbot-application","chatgpt","chatgpt-bot","multilingual","speech-recognition","speech-synthesis","streamlit","streamlit-webapp","voice-assistant","whisper"],"created_at":"2024-08-01T15:04:40.198Z","updated_at":"2025-04-07T06:32:04.835Z","avatar_url":"https://github.com/mingkuan.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![HitCount](https://hits.dwyl.com/mingkuan/voice-assistant-chatgpt.svg?style=flat-square\u0026show=unique)](http://hits.dwyl.com/mingkuan/voice-assistant-chatgpt)\n\n\n# ChatGPT Voice Assistant Understanding 97 Languages\n\nThis is a ChatGPT voice assistant web app that understands 97 different spoken languages. It is backed by the [awesome open sourced Whisper Automatic Speech Recogntion (ASR) model](https://github.com/openai/whisper) and the chatGTP Large Language Model (LLM), both provided by OpenAI. \n\nYou can click the \"Push-To-Talk\" button in the web app to ask ChatGPT about anything you are interested in many different languages. This web app will transcribe what you said and then send the request to OpenAI's chatGPT API to get the answer. And then it will then speak out chatGPT's answer using computer synthetic voice back to user.\n\nThis repository includes sample code from the first book in the ***HOW-TO-DO-AI book series***, \"AI/ML Web App Development for Everyone: A 5-Day Guide for Non-Coders to Build a Voice Assistant that Understands 97 Languages\". This book is intended for everyone, including non-coders without a technology background, to develop an AI/ML web app easily with step-by-step guidence. You can get a copy of the book from [Kindle](https://www.amazon.com/dp/B0BX5BGQ5R), [Amazon Books](https://www.amazon.com/dp/B0BW3HG5G6), or [Gumroad](https://mingkuan.gumroad.com/l/cxfra). \n\n\n**Note**:\nYou need get your own OpenAI API key in order to let the web app to get response from the chatGPT API.\n\n# How to get your own OpenAI API keys\n1. Log in to the [OpenAI website](https://openai.com/)\n2. Click on your profile picture in the top right corner and select \"Dashboard\"\n3. In the Dashboard, click on \"API keys\" in the left-hand menu\n4. You should see a list of API keys associated with your account. If you haven't generated an API key yet, you can do so by clicking the \"New API key\" button.\n\n# Running the voice assistant web app\n\n## 1. Run from source code directly\n```bash\n#checkout the source codes\ngit clone https://github.com/mingkuan/voice-assistant-chatgpt.git\n\n#install dependencies\npip install -r requirements.txt\n\n#get your OpenAI API key from: https://platform.openai.com/account/api-keys \n#feedin your own OpenAI API key in line#57 in the voicechat.py file.\n\n#start the web app\nstreamlit run voicechat.py\n```\nAnd then open your browser with the URL at http://localhost:8501\n\n## 2. Run from docker container\n\n```bash\n# Build the docker container\ndocker build -t voicebot-chatgpt -f Dockerfile .\n\n# Save your own OpenAPI key into your secret file .env.secrete.txt\n\n# Run the docker container by feed in your API key as environment variable\ndocker run -it -p 8501:8501  --env-file .env.secrete.txt voicebot-chatgpt\n```\nAnd then open your browser with the URL at http://localhost:8501\n\n## 3. Screenshot of the Voice Assistant of chatGPT\n\n![Screenshot of the Voice Assistant Web App](./VoiceAssistantchatGPT.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingkuan%2Fvoice-assistant-chatgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmingkuan%2Fvoice-assistant-chatgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingkuan%2Fvoice-assistant-chatgpt/lists"}