Stream Zoom session to Azure cognitive services (APIs) to retrieve realtime text - java

Problem statement:
Send Zoom video stream to Azure cognitive services (API calls) to get the text in realtime.
I am a java developer, I have gone through the samples provided for Azure cognitive services. Samples take input either from microphone or from a WAV files. My requirement is send input stream directly to Azure cognitive services APIs and receive realtime text.
Is it possible. Do we have APIs for such requirement?
My plan is to use an Nginx RTMP server receive the stream from Zoom (using custom streaming service) and invoke Azure cognitive service sending stream as received.
Suggestions please.

Related

How to fetch the number of unacknowledged messages in a Pub/Sub Subscription via the Google Cloud Monitoring JAVA Client Library

I have a number on Pub/Sub subscriptions created which do NOT have a consumer attached and can store messages upto 7 days. This is because ideally the number of messages in these Pub/Sub should not go over a certain threshold. I want to monitor these Pub/Sub periodically from my app and then handle the messages in the rare case that the number goes over the threshold. If not, even setting an alert for the same helps.
I know that I can setup Cloud Monitoring from the Google Cloud Console for the subscriptions and create dashboards/alerts. Is there a way to do this programmatically via the JAVA Client Library (Google Cloud Monitoring Link to Documentation)?. As there aren't a lot of code samples available, I am finding it difficult.
TLDR: How to fetch the number of unack messages in a Pub/Sub Subscription, in my code using the google-cloud-monitoring JAVA client Library
You can use the listTimeSeries method to get the data.
You can use MetricServiceClient.ListTimeSeriesRequest to read these metrics programmatically (e.g. subscription/num_undelivered_messages). The Cloud Monitoring docs page contains examples of how to initialize the client library in general: https://cloud.google.com/monitoring/docs/reference/libraries#using_the_client_library

How to send video live stream to azure cloud?

I search for suitable service that I can use in this case:
open camera in video mode and stream it to the azure cloud.
and from other side listen to it (also clients).
I read about Azure Media services.
but according this I Understand that it is not allow from the client side.
does have other way to workaround or other service that I can use?
Can you share more details on the use case scenario?
If I understand your request above, you are looking for a way to build an Android application that can use the local device camera and push the stream to Azure Media Services, and view it on another device?
Is that the use case scenario?
That is certainly possible, but you would need an application that is capable of sending RTMP protocol. There are a number of 3rd party libraries out there that can send RTMP.
The article that you linked to was responded to by me, and what I was pointing out there is that you should try not to store any of your Azure Media Services account credentials inside a phone app. You should use a middle tier to authenticate the app user, and provide the app with the appropriate RTMP ingest URL for a Live Event.

How to Return Result of AWS Lambda Function to Android App?

I have a web page where I can perform CRUD operations on a DynamoDB. This web page is written in PHP and works perfectly for performing operations on the database.
I also have a Lambda function that polls the stream every time any operation is performed through this website. It polls the stream, gets all the records and returns the data as a String.
Both the web page to update the DB and the Lambda function are working as intended. However, I also have an android app that relies on data in the DB for various things. My question is how could I access the String returned by the DynamoDB from my android app? Basically, I want the lambda function to run every time the database is updated through the web page (this is done) and then automatically return the String of updated records directly to the android app. How could I go about this?
I would implement Google's Firebase Cloud Messaging API. It is fast, well integrated into Android (and many other platforms), reliable, and you get a ton of free features out of the box. You can look here for a quick feature overview to see if it is right for you.
If I understand the above requirement correctly, you need to send notification to android application. I think this can be achieved using AWS SNS. It has the feature to send the notification to mobile device.
Amazon Simple Notification Service (SNS) is a flexible, fully managed
pub/sub messaging and mobile notifications service for coordinating
the delivery of messages to subscribing endpoints and clients. With
SNS you can fan-out messages to a large number of subscribers,
including distributed systems and services, and mobile devices.
Amazon SNS Mobile Notifications makes it simple and cost effective to
send push notifications to iOS, Android, Fire OS, Windows and
Baidu-based devices.
Refer this link for SNS Mobile Push

Java - Subscribe to Youtube Channel

I was wondering, is there any way that you could add a subscriber to a YouTube Channel, programmatically in Java?
Is it simple enough that it could be likethis.addSuscriber("username", "password", "suscriberTo");?
Would it have to use the YouTubeAPI, would it be possible with HTTP Requests through Java?
Doing this with plain java would be pain for you. You will have to manage the whole web service authentication process, data mapping, ... by yourself.
Google offers it's own Java API for YouTube:
YouTube Data API Client Library for Java
You will find a GitHub repository delivering you examples how to access youtube web services by using java and for your question topic also a dedicated example of managing subscriptions:
com.google.api.services.samples.youtube.cmdline.data.AddSubscription.java

Streaming data from a wcf service with Java client

I am developing an Android application which consumes some wcf services and visualises the data to the user. I connect with the service using KSOAP2 exchanging buffered messages.
The thing is that some services return large amount of data so the only way for this to be done is via streamedRespose, and then do a lazy load of the data to the user.
My question is how can I receive and use a stream with ksoap2 from a wcf web service.

Categories

Resources