Code Monkey home page Code Monkey logo

Comments (4)

thedist avatar thedist commented on August 19, 2024 1

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.

prehprehpreh avatar prehprehpreh commented on August 19, 2024

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.

thedist avatar thedist commented on August 19, 2024

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.

prehprehpreh avatar prehprehpreh commented on August 19, 2024

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.

Dude! Awesome!! I'm gonna try it out now!! Thank you so much for implementing this!!

from companion-module-discord-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.