Comments (4)
I like the idea! One potential issue I can see is what if User A starts talking, User B then starts talking while A also is, and then User B stops talking so it's only user A talking again. In that situation the variable would be indicating User B, despite the fact that User A is the one talking at the end it's just they didn't stop/start again.
from companion-module-discord-api.
I like the idea! One potential issue I can see is what if User A starts talking, User B then starts talking while A also is, and then User B stops talking so it's only user A talking again. In that situation the variable would be indicating User B, despite the fact that User A is the one talking at the end it's just they didn't stop/start again.
That is a good point though.
I wonder if it's possible to detect when they START talking rather than to detect when they ARE talking. That could make triggering stuff a little more linear and not as conflicting.
I could see in my use case, id need some filtering done to keep things from being crazy.
I think regardless of it's use case, being able to fetch the variable "user/Dave/istalking=true or false would be SUPER useful in creating triggers within companion.
I noticed that the there is a voice indicator within the feedbacks when a user talks. I was trying so hard to somehow figure out how to grab that value and use it as a trigger.
Dude also thanks so much for getting back so quick!
from companion-module-discord-api.
I've been trying a few different ideas, and have pushed an update that will be in the next Companion beta build, that you may want to try out and see if it meets your needs.
There's now the variables voice_current_speaker_id
, voice_current_speaker_nick
, voice_current_speaker_number
, as well as the user specific variables voice_user_X_volume
, voice_user_X_mute
, voice_user_X_self_mute
, voice_user_X_self_deaf
, voice_user_X_speaking
(where X is the index, nick, or ID).
There's also a Speaker Delay option in the settings, which will be the delay before a new speaker is updated on the speaking variables. For example, if Speaker Delay is 0, the moment a user presses their mic the voice_curent_speaker_...
will update to them. If they release their mic it'll return to the last recent speaker who's still speaking, and empty when no one is speaking. If I was to set the delay to 500 that would stop someone who just tapped their mic on/off (frequent if using sound activated rather than PTT). If you want to also prevent people who speak just for a 1 word answer like 'yes', 'no', 'uh huh', etc... then you may need a slightly longer delay.
from companion-module-discord-api.
I've been trying a few different ideas, and have pushed an update that will be in the next Companion beta build, that you may want to try out and see if it meets your needs.
There's now the variables
voice_current_speaker_id
,voice_current_speaker_nick
,voice_current_speaker_number
, as well as the user specific variablesvoice_user_X_volume
,voice_user_X_mute
,voice_user_X_self_mute
,voice_user_X_self_deaf
,voice_user_X_speaking
(where X is the index, nick, or ID).There's also a Speaker Delay option in the settings, which will be the delay before a new speaker is updated on the speaking variables. For example, if Speaker Delay is 0, the moment a user presses their mic the
voice_curent_speaker_...
will update to them. If they release their mic it'll return to the last recent speaker who's still speaking, and empty when no one is speaking. If I was to set the delay to 500 that would stop someone who just tapped their mic on/off (frequent if using sound activated rather than PTT). If you want to also prevent people who speak just for a 1 word answer like 'yes', 'no', 'uh huh', etc... then you may need a slightly longer delay.
Dude! Awesome!! I'm gonna try it out now!! Thank you so much for implementing this!!
from companion-module-discord-api.
Related Issues (20)
- Module not connecting to discord HOT 7
- [Bug] Issue with voice channel feedback when changing channels
- [Bug] Crashed on Companion v3.0 RC1&RC2 HOT 1
- warn: Login err: {} on Companion RaspberryPi HOT 4
- [Bug] Connection failure on new config HOT 4
- How to install 1.1.3?
- Issue with changing volume of other users HOT 1
- Connection config unavailable HOT 6
- A way to access the current Voicechannel in a leave action
- Retry connection HOT 1
- test Error: Could not connect HOT 3
- Join Direct Message
- Start and stop streaming current game in voice channel HOT 1
- Soundboard buttons through bitfocus HOT 1
- [Feat] Toggle Streamer mode HOT 2
- Login err: {} HOT 4
- Start/Stop Video HOT 1
- Toggle between all users in the discord call HOT 1
- Discord Module "Connection Failure" On Linux HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from companion-module-discord-api.