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
271 stars 107 forks source link

Trigger action on audio received #7

Closed Digl closed 5 years ago

Digl commented 5 years ago

How would you implement a function call triggered when a client in the same channel starts to speak?

There is:

type AudioListener type AudioListener interface { OnAudioStream(e *AudioStreamEvent) } AudioListener is the interface that must be implemented by types wishing to receive incoming audio data from the server. OnAudioStream is called when an audio stream for a user starts. It is the implementer's responsibility to continuously process AudioStreamEvent.C until it is closed.

... In the gumble docs but I can't seem to get it to work...

Any help would be appreciated. Thank you