Voice Communication
With this package you can create programs which can speak to you and recognize your voice adn run commands. (easy eg.: You can create J.A.R.V.I.S from Iron Man :))
Supported language is python 3. (Package wrote in 3.9.6)
Installation
Use this command:
pip install voice-comm
Change Log
0.0.4 (10/09/2021)
- Added modules option | Load modules / Stop modules
- Fixing some issue
Help
Help:
import voice_comm
voice = voice_comm.VoiceComm(language="en-EN") # Here you can specify rate, volume, voice (this voice is choose from voice tokens [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens])
voice.load_modules("test")
@voice.add_command(or_required_words=["hi", "hello"], words=["Da4ndo"]) #Here you can specify is_capital_letters_matter [default: False], required_words, words and or_required_words (or_required_words is very similar to required_words but if its contaion more, its don't require all words, just one)
def hello():
voice.say("Hello word!")
text = voice.recognize() # Here you can specify phrase_time_limit, timeout, snowboy_configuration. Advanced: only ``phrase_time_limit`` and value ``5``
voice.recognize_command(text) # hello function will call if you say ``hello`` or ``hi``
How to load module:
# File name ``test.py`` | Can be modified.
import datetime
class Mod():
def __init__(self, engine):
self.engine = engine
def run(self):
@self.engine.add_command(is_capital_letters_matter=True, words=["Microsoft"])
def test(text):
print(text)
self.engine.say("Test sikeres!")
@self.engine.add_command(or_required_words=["idő", "óra"], words=["hány", "mennyi"])
def time():
time = str(datetime.datetime.now().replace(microsecond=0)).replace("-", ".")
print(f"[RESPOND] {time}")
self.engine.say(time)
def setup(engine):
Mod(engine).run()
Metadata
Release files for voice-comm 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| voice_comm-0.0.5.tar.gz | 5.3 kB | Without provenance | Details for voice_comm-0.0.5.tar.gz |
Release files / voice_comm-0.0.5.tar.gz
| Download URL | voice_comm-0.0.5.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
263999aae7ebb3c02ce6d8ba333275c95b3c6a9a84f3afde5850743998cc52b4
|
|
BLAKE2b-256 checksum How to use checksums |
bb7c028e6f7b3c8d4630c5907553632d838aa299e47ba4c2424f591e9b354b9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Security for voice-comm 0.0.5
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.