Giter Site home page Giter Site logo

b5marwan / ai-desktop-voice-assistant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pritesh1106/ai-desktop-voice-assistant

0.0 0.0 0.0 6 KB

Mac AI Voice Assistant: Speech recognition, web automation, and OpenAI integration. Control websites, get the time, launch apps, and engage in conversation. Python, OpenAI API.

Python 100.00%

ai-desktop-voice-assistant's Introduction

AI Voice Assistant with OpenAI Integration

This repository contains the source code for a voice assistant program called "Mac AI". The program is built using Python and leverages various libraries and APIs for speech recognition, natural language processing, web automation, and integration with the OpenAI API.

Features

  • Voice Recognition: Utilizes the speech_recognition library to convert speech input into text commands.
  • OpenAI Integration: Integrates with the OpenAI API to generate AI responses based on user queries and prompts.
  • Web Automation: Opens websites based on user commands using the webbrowser module.
  • Time Announcement: Provides the current time upon user request using the datetime module.
  • Application Launch: Opens specified applications like FaceTime and Passky using system commands.
  • Chatting Capability: Engages in a conversation with the user, responding to general queries and maintaining a conversation history.

Dependencies

  • speech_recognition: Library for speech recognition.
  • openai: Python client for the OpenAI API.
  • webbrowser: Module for web browser automation.
  • datetime: Module for working with dates and times.

Usage

  1. Install the required dependencies using pip or your preferred package manager.
  2. Obtain an API key from OpenAI and add it to the config.py file.
  3. Run the main.py script to start the Mac AI voice assistant.
  4. Speak commands and interact with the assistant using voice input.
  5. The assistant can open websites, announce the time, launch applications, engage in conversation, and more.
  6. Additionally, you can use the OpenAI integration to generate AI responses for specific prompts by calling the appropriate functions.

Code Examples

The repository includes code examples that demonstrate different functionalities:

  1. main.py: The main script that runs the Mac AI voice assistant with speech recognition and various features.
  2. openai_integration.py: A code snippet that showcases how to integrate with the OpenAI API to generate AI responses for specific prompts.

ai-desktop-voice-assistant's People

Contributors

pritesh1106 avatar

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.