Skip to content

This new solution will integrate OpenAI with SIRI by using Python & Apple Shortcuts

Notifications You must be signed in to change notification settings

SatyakiDe2019/OpenAIForSIRI

Repository files navigation

Enabling OpenAI-based NLP engine with SIRI (MacBook/iPad/iPhone) through a proxy-driven restricted API using Python.

Logos.jpeg

About this package

This new solution will expose a controlled proxy API built using Python, which enables OpenAI APIs & integrates that with SIRI (One of the world's most popular personal voice assistants). This application developed using Flask, openai, NGROK & other useful libraries. This project is for the advanced Python developer & Data Science Newbi's.

How to use this package

(The following instructions apply to Posix/bash. Windows users should check here.)

First, clone this repository and open a terminal inside the root folder.

Create and activate a new virtual environment (recommended) by running the following:

python3 -m venv venv
source venv/bin/activate

Install the requirements:

pip install -r requirements.txt

Run the Restricted-API:

python testJarvis.py

Note down the port number, which will be generated as output.

Run the Proxy:

ngrok http http://<IP_Address from previous steps>:5000

Make sure, the port number has to be same as displayed in the first steps.

Now, run the Apple Shortcuts as shown below -

ShorcutsFin.jpg

Please find the some of the important dependent package -

Flask==2.3.2
python-dateutil==2.8.2
numpy==1.24.3
openai==0.27.7
openapi-schema-pydantic==1.2.4
packaging==23.1
pandas==2.0.1
requests==2.31.0

Install the above requirements.

Note that the debug indicator is set to "Y". This will generate logs. If you change this to 'N'. No logs will be generated. However, the process will be faster.

Screenshots

demo.GIF

Resources

About

This new solution will integrate OpenAI with SIRI by using Python & Apple Shortcuts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages