Skip to main content

termux-sriparna

logo

A voice assistant for Termux written in python using Termux Api

With sriparna you can:

  1. Call any number ✅
  2. Check battery status ✅
  3. Send messages ❌
  4. Open any app ✅
  5. Check whether ✅
  6. See current date and time ✅
  7. See live location (with google maps link) ❌
  8. Read call logs ❌ (Deprecated)
  9. Perform any search ✅
  10. Turn Flash on/off ✅

More features coming...

Note: This is a voice assistant and not to be used as a chatbot !

If you like the project, don't forget to leave a star ⭐ to the repository. It motivates me to keep continue the project.

PR's are welcomed !! Report Bugs(if any)

Requirements:

• Termux

• Termux-Api

• Termux-Widget (Optional: For shortcut application)

Note: Download these apps from the following official links only.

Do not use playstore version !!

Please grant all permission to Termux-api and disable battery optimisation for the app beforehand.

Installation:

Install using pypi
pkg update && pkg upgrade -y
pkg install python -y
pip install -Uv termux-sriparna

After using the above commands you can type sriparna or sriparna-gui to run the voice assistant.

or
  1. Clone the GitHub repository:
git clone https://github.com/ayusc/termux-sriparna
  1. Navigate to the project directory:
cd termux-sriparna
  1. Run the setup script
bash setup.sh
  1. Run the voice assistant:
python sriparna/sriparna.py 

For terminal version

or

python sriparna/sriparna.py 

For gui version

Commands

Each command is assisted with a pattern type:

To call any number you can say "hey sriparna call XXXXXXXXXX"

You can also include country code in your query "hey sriparna call plus(country code)******" it will read the number as "+(country code)number"

Besides you can call a number from your contact list just say "sriparna call ayus", "please call ayus2" etc...

Note: In certain cases the speech recognition may not correctly identify the contact name. In such case it's better to spell the letters in the name individually. For example "sriparna please call a y u s", "call a y u s 2" etc...

To check battery you can say "sriparna how much is my battery", "tell my battery percentage", "hello what is my battery status", "tell my battery health"
To open any application you can say "open whatsapp", "sriparna please open youtube" etc...

You can open chrome, gmail, youtube and whatsapp with this, if you want more applications you need to specify their package names and class name in app.json

You can use Shortcut Maker to find package name and class names of installed applications.

For pypi installation: You can directly edit the apps.json file with vi /data/data/com.termux/files/usr/lib/python$(python -c 'import sys; print(sys.version_info[0])').$(python -c 'import sys; print(sys.version_info[1])')/site-packages/sriparna/apps.json

To check the current weather conditions you can "hi sriparna whats the weather alike", "tell me the weather forecast", "what is the current weather condition", "how is the weather today"
To turn on flashlight you can say "hey please turn on the flash/torch", "flash/torch on", similarly you can say "hey please turn off the flash/torch", "flash/torch off" to turn it off.
To know current date and time you can say "what is(or what's) the time", "what is today's date", "what date is today"

Credits

xtekky for g4f

Slash Mark IT for the project idea.

Metadata

Release files for termux-sriparna 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for termux-sriparna 1.1.0
File Size Uploaded Provenance Actions
termux-sriparna-1.1.0.tar.gz 1.0 MB Without provenance Details for termux-sriparna-1.1.0.tar.gz

Release files / termux-sriparna-1.1.0.tar.gz

Download URL termux-sriparna-1.1.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
5e6d33b87151a71a98051f9255fa3777dcef49e98e44421914d909ce6f9e6a1b
BLAKE2b-256 checksum
How to use checksums
ad1f03b00e3d8df4f1637bc0bad2765beb6655fc980c683f754060b36ebdbde9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Security for termux-sriparna 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page