Controlling local user voice volume in Discord with setLocalVolume - discord

I'm trying to programmatically control the relative local volume of users' voices in a Discord channel from a web app.
Discord's Game SDK has a documented API call to control a user's local volume with VoiceManager.setLocalVolume(userId, level) from a native game, but Game SDK approvals are currently on-hold and I'm not trying to make a native game.
So, I turned to Discord browser plugins. On discordapp.com, I can see that a function called setLocalVolume is defined, but I don't know how to call it. The Discord API seems to be obfuscated by Webpack.
How can I control local user volume in Discord by tapping into a local Discord process? I'm happy to make and install a custom browser plugin to do this against a web-based discordapp.com page.

Related

Building my first kik bot through api reference guide provided by Kik

I am trying to setup my first test bot in kik messanger , tried the following steps
I have created my test bot in kik.
Configured my rest api URL as a webhook URL using the kik config api provided in the docs (Not using python or node.js libraries provided by kik)
Now trying to chat with my test bot from the Kik iOS app , test bot is not yet submitted to the store (as it is not doing anything now to submit to store).
But the test bot says it is not fully configured.
Please advise, how do i test if i am using rest api's to interact with the Bot (Rest API's are developed based on the api reference guide).
Any help here is highly appreciated.
Thank you
Make a GET request to https://api.kik.com/v1/config with your bot username and API key and check that webhook is set.
If it is, I would suggest checking that you are talking to the right bot, and use the right bot username/API key when you call the APIs.

How to amazon alexa api for a web or mobile app?

I want to use amazon alexa api for my website/ mobile application. I would like to know if it is possible to use and how to integrate alexa, given that I develop my custom skill.
You can use the Alexa Voice Service. You will need to collect the user's audio and then submit it to Amazon. The voice snippet does not need to contain the hotword (e.g. Alexa). You should be able to use most features that don't involve the device and aren't asynchronous. For example, you can utilize the alarm or timer features nor the music streams.
It sounds like you are asking how to allow the user to talk to your website or mobile app.
An Alexa custom skill is something you create to extend Alexa's vocabulary, so to speak. It isn't an alternative to using a mouse or keyboard with an existing app.
A website and a mobile app are, or can be, two different ways for a user to access the functionality you provide. Think of an Alexa skill as a 3rd way to access that functionality. A user could ask the Alexa device (Echo, Dot, iPhone Lexi app, etc) to get or perform the same things that your website does.
So for example, if your website explains how your widgets work, then you could create a widget Alexa skill that would allow Alexa user's to ask about your widgets.
The Alexa Voice Service is something entirely different. It is an API to enable adding Alexa voice to a different piece of hardware. For example, my friend Thaddeus created an Alexa Voice Service app called Lexi that runs on an iPhone. This allows a user to talk to Alexa using their iPhone. However, it doesn't add any new capability to Alexa. It only allows me to do things on my iPhone that I can already do on my Echo.

Google Glass Development for another

Wondering if anyone knows about developing a Google Glass app for another person. Someone who is in the Glass Explorer program has asked me to help them with developing an app (which I'm happy to do) but it looks like I will need to sign in as that person in the API Console. Is this correct? Is there any way for me to prototype separately?
There is indeed a way to do this without logging in as your colleague. Join the project team on the API console. Just follow these steps:
Have your Explorer friend create an API Console project and enable the Google Mirror API for that project from the services panel.
Have them go to the team panel for that project. Have them add your account to the project's team.
This enables you to develop on the same project, but since you're not an Explorer you cannot enable or disable the Mirror API for this project.

Certification error: Background music in XNA game

My application failed in certification due to error in background music. The reasoning given for the rejecting is given below
App music plays at the same time as music is playing
App does not have settings to allow users to configure the background music.
Please suggest me what is referred by "allow users to configure the background music". What setting/code I need to expose please?
Did you actually read the Microsoft requirements for certification?
6.5.1 – Initial launch functionality
When the user is already playing music on the phone when the app is launched, the app must not pause, resume, or stop the active music in the phone MediaQueue by calling the Microsoft.Xna.Framework.Media.MediaPlayer class.
If the app plays its own background music or adjusts background music volume, it must ask the user for consent to stop playing/adjust the background music (e.g. message dialog or settings menu). This prompt must occur each time the app launches, unless there is an opt-in setting provided to the user and the user has used this setting to opt-in.
6.5.2 - Configurable functionality
If an app plays background music, the app must provide the user with configurable settings for both the background music, and the background music volume.
Sounds like your app doesn't do either of these.

Using GAE channels without browser

I want to write GAE based application that synchronizes information between computers/phones. Right now I am only querying periodically, which causes delays or requires user to click a button to refresh manually.
With GAE channels, it should be possible to do it this way that a device can be notified when it should refresh. However, since I want it to be a desktop app (not web app), I am wondering if I can write my own client to channel API? Or grab whatever's out there.
Is the protocol documented or are there clients available for anything other than JS?
The only official interface is the Javascript client library. Although you could reverse-engineer how it works, since it's not a documented part of the interface, it could change at any time without notice.
If you're interfacing with Android phones or iPhones, each of them has a 'push' messaging API that you could use (Cloud to Device Messaging for Android, and Push Messaging for iPhone).
There is now a Java implementation for the Channels API. It was just released days ago and is available via git at https://github.com/gvsumasl/jacc. I've also taken the liberty of forking it and providing a mavenized version at https://github.com/hatboyzero/jacc.

Resources