dchote / talkiepi

The talkiepi project is for a truly headless mumble client for the Raspberry Pi, utilizing static config and GPIO for status LEDs and a button for push to talk
Mozilla Public License 2.0
268 stars 107 forks source link

Use voice activity instead of ptt #3

Closed athasamid closed 4 years ago

athasamid commented 6 years ago

How can I use voice activity input instead of push to talk? thanks

dchote commented 6 years ago

Hey there, unfortunately this is quite the undertaking. I looked in to it a couple of years ago and decided it was too much work. I may take a look again later this year.

mickimzg commented 6 years ago

I wrote an external VOX for it in Python, as a sub-process. It consists of a few lines and mostly uses a ready-made library. You can specify level and hold time. It then sets up on the file system and manipulates the file for GPIO25 so talkiepi thinks the GPIO is pressed. I post the code this afternoon.

mickimzg commented 6 years ago

vox.py.zip

The pyalsaaudio module is required. To install it with PIP enter the following: $ pip install pyalsaaudio