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.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for wiseman_library-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60d62fd7b742ec7f47d7204f70d79f0e16aafb9064584d7de366c563d5e35384 |
|
MD5 | fe56cd92524e8d4292a1093b689a5597 |
|
BLAKE2b-256 | 58786dbc45fca6a2eef419a6ea44472efc75425d2a48665116cdd38210b8d485 |