What is the Endpoint/Port used for Google Cloud Speech API - google-cloud-speech

For using Google Cloud Speech API via the streaming API(Performing Streaming Speech Recognition on an Audio Stream),
what are the endpoints/ports we need to enable/whitelist?
The reason being asked is, we are running this on a restricted device, and need to open only the required outbound endpoints/ports.

You should whitelist *.googleapis.com and accounts.google.com. These all are using https protocol.
The actual endpoint for speech is https://speech.googleapis.com/v1/speech, but you will also need to access authentication endpoints accounts.google.com, www.googleapis.com
and oauth2.googleapis.com.

I have got following URLs white-listed for the same
https://texttospeech.googleapis.com/*
https://speech.googleapis.com/*
https://accounts.google.com/*
https://www.googleapis.com/*
https://oauth2.googleapis.com/*
https://cloud.google.com/*

Related

Proxied IOS App doesn't send http/s requests? How are they fetching the data then?

I'm currently trying to intercept API calls of an IOS App.
Why? I want to reverse engineer their private API and use it for more specific requests.
However, the App has nearly zero https traffic and traffic via web sockets.
The only requests they have sent during the start of the app were on to:
Mapbox (probably to display maps)
and Google to request a fcmtoken for Cloud Messaging
Thus, I was wondering how they fetch the data displaying in the app.
After some more deep research and reverse engineering the android app, I noticed that the app uses flutter. The problem with that is that Flutter uses Dart and Dart is not proxy aware and uses its own certificate store. Hence, the application doesn't take any proxy settings from the system and sends data directly to the server. Thus, I wasn't able to intercept the request using Burpsuite.
I was able to intercept the firebase and mapbox requests as they were imported as nodejs packages.

Youtube Data API Access Not Configured

I have this error when trying to recover an endpoint on youtube api.
Access Not Configured. YouTube Data API has not been used in project 602077678805 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=602077678805 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.',
This is image console configuration
This is image com http return
Access Not Configured.
This error message can mean you have not enabled the api for use in your project. In order to use an API you must tell google that you intend to use it in your project. You cant just create a project and automatically use all of the apis google would like to know which ones you intend to use.
Go to the google developer console for your project as instructed in the link. under Libraries search for YouTube API enable it and apply for a quota.

IOS mobile access to Google IOT Core REST API authentication authorization scope problem

一:I would like to ask some questions about our IOS mobile access to Google IOT Core permission scope authentication. We are planning to use API services from Google IOT Core to access device-specific data;
But we encountered the problem of OAuth authentication, requesting the scope of Google API, it may take up to several weeks, I wonder if this is the case?
OAuth image
My application will use the following request scopes: https://www.googleapis.com/auth/cloudiot, https://www.googleapis.com/ auth / cloud-platform I want to be able to view and manage and manage and Create a registered device.
https://www.googleapis.com/auth/pubsub Want to use this API to publish subscriptions / topics on your phone, receive device data, and assume: temperature, humidity, alarm values, etc. Mobile terminals can access IoT data through HTTPS (https://cloudiot.googleapis.com/v1/{name=projects//locations//registries/*}) nodes.
二:Use Google Cloud Functions to connect to the cloud platform to get device data from IOS;
Google Cloud and the device have been successfully bound and deployed through the console, but it is impossible to understand how to write the Google core API from the cloud function so that the device connects to the cloud, IAM grants permissions, or the private key to access the Google API (Purpose: IOS mobile phone calls Google API through cloud functions, implements JSON interface, and gets device data for IOS) Thank you in advance, thank you!
My article might be helpful for your problem if you're still having this issue, It shows how to connect to IoT Core using CocoaMQTT and SwiftJWT, you can do something similar but instead of connecting to the specific device you could register the device with a given ES256 public key.
Controlling you phone from the cloud

Enabling youtube data api

I generated an youtube api key, but when I use it in
https://www.googleapis.com/youtube/v3/videos?part=snippet&id=FH2zbHrRY9A&key={YOUR_API_KEY}
it shows me a warning message like
"Access Not Configured. YouTube Data API has not been used in project 950908475774 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=950908475774 then retry"
I have wrote a simple tutorial for this. See Getting Started
You can follow my tutorial to enable the service.
You need to enable this api service before you use the YouTube DATA API.

Use Google Places nearbySearch function in iOS

In Web API, use the nearbySearch function will return the results nearby the specific coordinate.
But I cannot find a similar function in iOS SDK.
I think the worst way is using REST API likes
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=22.979468,112.544345&radius=100&key=API_KEY by Alamofire
But I have another problem, I don't know how to restrict my API key for iOS REST API only.
I tried to set it for iOS Application but it does not work.
Please give me some idea, thank you very much!
You cannot apply iOS app restriction on web service API key. The only supported restrictions for web services are IP address restrictions. This supposes that you are executing web service requests from your backend server and restrict an API key with IP address of your backend server.
In case of mobile iOS app that means you should create an intermediate server to execute web services and pass responses back to your app in order to protect an API key that you use with web service.
There is a feature request in the Google issue tracker to add nearby search as a part of Places API for iOS:
https://issuetracker.google.com/issues/35830334
Feel free to star this feature request to add your vote and subscribe to further notifications from Google.
Hope this resolves your doubt.

Resources