Giter Site home page Giter Site logo

bartagterbosch / freya Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 270 KB

An OpenAI GPT-3 AI chatbot frontend with speech-to-text and text-to-speech written in Python

Python 100.00%
openai chatbot bot speech-recognition python ai artificial-intelligence gtts speech-to-text text-to-speech

freya's Introduction

Freya

A chatbot with speech-to-text and text-to-speech and language-detect written in Python which lets your interact with OpenAI's GTP-3 AI



Requirements when building from scratch

openai
gtts
speech_recognition
googletrans==4.0.0rc1
playsound==1.2.2

Setup

Create an account on beta.openai.com, and copy the API key under "View API keys", "secret key".
Create the freya_key.dat file in the same location as the executable, or just run Freya.exe once and it will create the file for you.
Paste that key into the freya_key.dat file which should be located in the same location as the Freya.exe file, and save it.
If that file does not exist and/or cannot be found, it will be created for you, after which you need to enter the key into the file.

When installing googletrans and playsound, make sure to use the exact versions as listed in the requirements, as the newer versions seem somewhat broken.

After listening for user input, Freya will parse that to text, and will query openai, the bot will detect whatever language the reponse of the AI is, and convert that to speech.

To exit the program, simply ctrl+c out of the program, or close the console window.

Download

Release: Download V3.0.0
Note: You need to get your own api key from beta.openai.com, if you want you can train your own model, but it works fairly good out of the box as the davinci engine by itself has very good interactional abilities, it is also capable of context.

freya's People

Contributors

bartagterbosch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mike-0000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.