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.1.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for wiseman_library-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c1dfdf99e761da53829c6dcc4d5188b900ef19a9545314e29aa50cf9cb2189c |
|
MD5 | 5fac9c21e06c199a042629a27fa17066 |
|
BLAKE2b-256 | 4a2e299a3dcebd1cbb252ad72f1d7419a19b12952b71bc456a13ff4c65a57521 |