wiseman bundles the voice assistant infrastructure into a python library
Project description
wiseman library
Wiseman is a Python library for adding voice assistant features to your applications and building personal assistant applications.
Features
- executes the function you give when called
- can be called by more than one name
- voice recording
- audio playback
- voice to text
- text-to-speech (Gtts)
- text-to-speech (Elevenlabs)
download
Run this project to use it
pip install wiseman_library
Usage/Examples
| function | module | function |
|---|---|---|
| lissen() | wiseman_library | listens to the microphone at the specified interval and calls the given function when its name is called |
| stop_listen() | wiseman_library | stops listening to microphone |
| record() | wiseman_library.Recorder | records audio for the given recording time and saves it to the given location |
| recognize() | wiseman_library.Recognizer | translates the given audio to text with the default method |
| recognize_from_google() | wiseman_library.Recognizer | converts the given voice to text with the speech_recognition library |
| play_sound() | wiseman_library.speaker | plays the given sound file |
| speak() | wiseman_library.speaker | reads text with default text reader |
| speak_with_eleven_labs() | wiseman_library.speaker | Speaks text with eleven_labs api |
| speak_with_gtts() | wiseman_library.speaker | Speaks text with Gtts |
Example of lissen() function
import wiseman_library
def fun(name,text):
print(name+" :: "+text)
wiseman_library.lissen(function=fun)
Authors and Acknowledgments
-
@adem-ocel for design and development.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wiseman_library-1.2.1.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wiseman_library-1.2.1.tar.gz.
File metadata
- Download URL: wiseman_library-1.2.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85871f2c02b4f9fabc60fcd9e933eb3e3269d603f9a1e473924e5a73805e7302
|
|
| MD5 |
7e9a5a8cbc2223a4bb1d5cc5ff305964
|
|
| BLAKE2b-256 |
383d8d3c264e2bf371e838747b38f5da9249d542f8ad0c1e65cdb7f2cb7fce53
|
File details
Details for the file wiseman_library-1.2.1-py3-none-any.whl.
File metadata
- Download URL: wiseman_library-1.2.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb5476124779833351bb5abc7d1888c6aee848f98686c838cfec9022f6b078bd
|
|
| MD5 |
b82089dd3cf7650b0a09feb030feffa6
|
|
| BLAKE2b-256 |
f0b7b7a092327975f9625d995d343f26d537a7de1e1b4079ce7805eb969d1647
|