https://github.com/mikolak-net/ts-plugin-voiceaction
TeamSpeak silence- and voice-detecting plugin that can run a custom command (e.g. music pause/play).
https://github.com/mikolak-net/ts-plugin-voiceaction
lua plugin teamspeak
Last synced: about 1 year ago
JSON representation
TeamSpeak silence- and voice-detecting plugin that can run a custom command (e.g. music pause/play).
- Host: GitHub
- URL: https://github.com/mikolak-net/ts-plugin-voiceaction
- Owner: mikolak-net
- Created: 2014-12-18T00:30:05.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T19:51:42.000Z (over 8 years ago)
- Last Synced: 2025-03-24T18:21:29.972Z (over 1 year ago)
- Topics: lua, plugin, teamspeak
- Language: Lua
- Homepage:
- Size: 5.86 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= VoiceAction plugin for TeamSpeak
== Introduction
This is a very simple plugin that enables you to run a predefined system command (or script) when one of the following happens:
* Someone in channel starts talking (the channel is no longer silent).
* No one in the channel is talking anymore (the channel is silent).
A typical use case is (un)muting or (un)pausing music playback in your favorite player.
== Installation and usage
. In `Tools` -> `Options` -> `Addons` -> `Plugins`, ensure that the _Lua Plugin_ is installed and enabled. If not, install it using `Browse Online`.
. Find your `lua_plugin` directory in your TeamSpeak installation. On various OSes it's typically at:
- Windows: `C:\Users\\AppData\Roaming\TS3Client\plugins\lua_plugin`
- Linux: `~/.ts3client/plugins/lua_plugin`
- MacOS: `~/Library/Application\ Support/TeamSpeak\ 3/plugins/lua_plugin`
. Copy the `voiceaction` directory into `lua_plugin/`.
. In `lua_plugin/voiceaction/events.lua`, set the `commandSomeoneTalking` and `commandNobodyTalking` to whatever you want.
* For example, I use a dbus callback to toggle Spotify playback via `"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause".`
. (Re)Start TeamSpeak.
. Go to `Tools` -> `Options` -> `Addons` -> `Plugins`.
. Click on the _Lua Plugin_ entry, click Settings, and ensure the `voiceaction` module is enabled.
. Back in `Addons` -> `Plugins`, click `Reload All`.
. You should be all set. If the nothing is happening on silence/voice, start TeamSpeak from a console/terminal
emulator and check the output for any errors from your command.
- if the output does not mention `voiceaction` anywhere, check if there's a `luaconfig.ini` file in your home directory (on Linux, it's at `.ts3client/luaconfig.ini` ). If it exists, add a `voiceaction` entry into it.
== Further improvements
A tentative list of TODOs can be found among the code :p.
== Special thanks to
My muse inspiring me to write this plugin, i.e. a certain neighbor particularly fond of a hammer drill.