Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A voice-activated AI chatbot utilizing Bing and GPT-3.5-turbo models to process user queries and respond with synthesized speech using Amazon Polly.

NotificationsYou must be signed in to change notification settings

TheNolle/Python-Personal_Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains a voice-activated chatbot that listens for audio input, detects the wake word (either 'bing' or 'gpt'), and processes the user's request using either the Bing or GPT-3.5-turbo chat model. The resulting response is then synthesized into speech using Amazon Polly, and the audio is played back to the user.

Requirements

To use this chatbot, you'll need the following libraries:

  • openai
  • asyncio
  • re
  • whisper
  • boto3
  • pydub
  • speech_recognition
  • EdgeGPT

Please make sure to install all the dependencies using the following command:

pipinstallopenaiasynciorewhisperboto3pydubSpeechRecognitionEdgeGPT

Configuration

Before using the chatbot, make sure to set up your OpenAI API key and Amazon Polly credentials.

  1. Store your OpenAI API key in a config.json file:
{"openai_api_key":"your-openai-api-key"}
  1. Configure your Amazon Web Services (AWS) credentials. You can do this by setting up the AWS CLI or by setting the following environment variables:
export AWS_ACCESS_KEY_ID=your-aws-access-key-idexport AWS_SECRET_ACCESS_KEY=your-aws-secret-access-keyexport AWS_REGION=your-aws-region

Running the Chatbot

To run the chatbot, simply execute the following command:

pythonmain.py

The chatbot will listen for the wake words 'ok bin' or 'ok chat' and respond to your voice commands using the Bing or GPT-3.5-turbo model, respectively.

About

A voice-activated AI chatbot utilizing Bing and GPT-3.5-turbo models to process user queries and respond with synthesized speech using Amazon Polly.

Topics

Resources

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp