termux voice gpt using openai api key and termux api
The OpenAI Python library provides convenient access to the OpenAI REST API from any Python 3.7+ application. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx.
It is generated from our OpenAPI specification with Stainless.
pkg update && pkg upgrade
pkg install git
pkg install termux-api
pkg install python && pkg install python2 && pkg install python3
git clone https://github.com/shubhamg0sai/termux_voice_gpt.git
cd termux_voice_gpt
Important
The SDK was rewritten in v1, which was released November 6th 2023. See the v1 migration guide, which includes scripts to automatically update your code.
pip install openai
pip install -r requriments.txt
open apikey.py file paste your api key there api_data="YOUR_API_KEY"
The API documentation can be found here.
python main.py