Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    December 2012
    Posts
    14

    Voice Activation Detection

    Hi,
    In my plugin the user may use VAD as configured in The TS3 Client options dialog. Nevertheless, in a specific situation I have to use a soft PTT triggered by the message WM_LBUTTONDOWN. As suggested in the documentation I disable VAD when the situation appears with:
    ts3Functions.setPreProcessorConfigValue(ServerID," vad","false");

    then, when WM_LBUTTONDOWN arrives:
    ts3Functions.setClientSelfVariableAsInt(ServerID, CLIENT_INPUT_DEACTIVATED,INPUT_ACTIVE);

    On WM_LBUTTONUP
    ts3Functions.setClientSelfVariableAsInt(ServerID, CLIENT_INPUT_DEACTIVATED, INPUT_DEACTIVATED);

    When the special situation ends, I activate VAD again with:
    ts3Functions.setPreProcessorConfigValue(ServerID," vad","true");

    The soft PTT works fine, but the error is, that VAD does not work anymore. The blue LED in the client window is not illuminated if I talk into the MIC. I have to restart the client to activate the VAD again. Is this a known bug or am I wrong with my logic?
    Regards
    Mike

  2. #2
    Join Date
    September 2012
    Posts
    6,079
    You set INPUT_DEACTIVATED when you released the button, since it is still disabled VAD won't work. You need to set it to active when you enable VAD again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Voice Activation Detection
    By ChangFarmi in forum Server Support
    Replies: 1
    Last Post: December 23rd, 2014, 05:21 AM
  2. [Resolved] Voice activation detection PROFILES
    By EvilInside38 in forum Suggestions and Feedback
    Replies: 2
    Last Post: June 11th, 2013, 07:18 PM
  3. [Resolved] [not possible] Force Voice Activation Detection?
    By bisa130 in forum Permission System
    Replies: 5
    Last Post: February 18th, 2013, 09:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •