I need to be able to switch participants in and out of a video conference from say a database of online users. I've been working with Hangout since they are the only open source video conferencing service I know. I know in Hangout you can get an extension to 'kick' someone, but I can't seem to find it in their API. Does anyone know how I can kick and add people either automatically, or manually? I want to ideally do it in Ruby, and I've tried with Python since Hangout is in python, but to no avail. Any help would be appreciated.
In the api, you can only change who is in the broadcast but not in the actual Hangout (ie no kick API.) This functionality is the same is in the builtin "Cameraman" app for Hangout On Air. Read more about the api at setParticipantBroadcast on the Developer Site.
Related
So, I've been wanting to make my own personal assistant using Python. I would speak to my headset, call out it's name. Give a command or ask a question. Get a response like either a webpage opening, a program, a spoken string ...
My problem is getting started. I had the idea to use Google's Assistant as a base for my project. I would like to make a framework which would make it extremely easy to add my own commands and questions. I would make something that listens for a keywords. When those keywords get triggered I can program the action that should follow. For example, I could learn it to listen to the keyword "launch", and what comes after would be queried to an array of program shortcuts I made and it would launch the correct program when I ask it to. But when I ask something that I didn't program, the call would get passed on to Google's Assistant and that would give back the response. This would save me the trouble programming all kinds of standard things like "What's the weather?", "What's the time?" etc..
Now I did some research before coming here and there's two big services that keep showing up when I try to find stuff. Wit.ai and Api.ai. Both of these are not what I am looking for. I'm looking for a base personal assistant, preferably as smart as Google's that I can use a base for my project. Can anyone point me in a direction for this? Is it even possible to find a base assistant to start working on top off like this in Python?
You came to the right tag! You're looking for the Google Assistant SDK and the Assistant Library for Python. Although still in Developer Preview, it sounds like it provides much (but not all) of what you're looking for.
I am using the python libraries from the Assistant SDK for speech recognition via gRPC. I have the speech recognized and returned as a string calling the method resp.result.spoken_request_text from \googlesamples\assistant\__main__.py and I have the answer as an audio stream from the assistant API with the method resp.audio_out.audio_data also from \googlesamples\assistant\__main__.py
I would like to know if it is possible to have the answer from the service as a string as well (hoping it is available in the service definition or that it could be included), and how I could access/request the answer as string.
Thanks in advance.
Currently (Assistant SDK Developer Preview 1), there is no direct way to do this. You can probably feed the audio stream into a Speech-to-Text system, but that really starts getting silly.
Speaking to the engineers on this subject while at Google I/O, they indicated that there are some technical complications on their end to doing this, but they understand the use cases. They need to see questions like this to know that people want the feature.
Hopefully it will make it into an upcoming Developer Preview.
Update: for
google.assistant.embedded.v1alpha2
the assistant SDK includes the field supplemental_display_text
which is meant to extract the assistant response as text which aids
the user's understanding
or to be displayed on screens. Still making the text available to the developer. Goolge assistant documentation
I failed to get approval for my application that I started to write against the TradeMe API. My API access was not approved. I'm therefore looking for alternatives.
Any NZ property for sale APIs out there? I have seen realestate.co.nz which according to the github repo, might provide something in PHP and Ruby, but the Ruby repo hasn't been touched in several years. Google API perhaps?
I'm specifically interested in obtaining geo-location information for the properties on sale.
The sandbox should let you access trademe without the need to access the main server.
realestate.co.nz seems to have both Javascript and Ruby APIs. I'm going to investigate the possibility of building a Python port as their code is on github/realestate.co.nz
I have no financial interest in either TradeMe or realestate.co.nz, for the record. Just a guy trying to avoid screen scraping.
I'm trying to make a video upload to youtube using the gdata api.
I also had a look at the hello-youtube example.
Does anyone knows if I can use youtube browser upload without requiring the user to loggin to youtube? I want the user to select a video from their computer, and upload it to my developer account (not the users account). Is this possible?
In case it its, can someone help me with an example?
Many thanks!
EDIT
I found that it's possible to log from server side using any normal youtube account (not sharing my password, although my account still subjected of being suspended in case someone submits bad content). The code can be found on the "ClientLogin authentication for installed applications" of the python developers guide
This is a very bad idea because you are responsible for the content of your channel and the usage of your account.
It also means you will share your Google password with the entire world. Bad idea, bad idea, bad idea, ...
I'm a Social Media Manager for Musicians and Bands across the globe, and have run in to a snag and am looking for anyones opinion who can help on the matter!
I'm using a service called Ping.FM that I use for updating status messages across multiple social networks. Unfortunately, it doesn't seem the development team is in the works anymore and two of the networks no longer work, Tagged and MyYearBook. Now, these two services have no custom service API, email update, or really any kind of function for updating status messages other then using a mouse, keyboard, and browser.
Now the second part. I have a shared web host (HostGator) that I use to run and leave Python scripts running to do my bidding whenever needed. What I'm thinking of is writing a script that will monitor an email account. When an email is received, it'll post the body as a status message.
Now the tricky part, how to post the status message. The shared host is all terminal only, no GUI. If there was a GUI, I would just use something like iMacro with Firefox and a Python script to alter it in order to post the status messages. Unfortunately though, no GUI, so as far as I'm aware it's not possible.
Is there any method of doing an idea like this, but without a GUI? Something terminal based, that can achieve the same idea? Any help is appreciated, thanks in advance!
All websites have an API, called HTTP. You can use mechanize to access it, so long as it doesn't use JavaScript for dynamic display.