Google Text-to-speech - How to specify region EU? - google-cloud-platform

I'm using Google Cloud Text-to-speech to synthesize speech from text. How can I specify the region for the API calls? This is similar to this question Specify Region for Google Speech API? but my question is for text-to-speech, not speech-to-text.
For speech-to-text there wasn't an available endpoint in Europe but there is one now: https://cloud.google.com/speech-to-text/docs/endpoints
I can't find the same type of endpoint documentation for text-to-speech, the closest I find is this page: https://cloud.google.com/text-to-speech/docs/reference/rest that specifies a single endpoint: https://texttospeech.googleapis.com
Does this mean that I cannot keep the text-to-speech requests within Europe? It could also be that the region is fetched from the Google Cloud project region or something like that but I cannot find such an option.

The specifying of region for text-to-speech API that you are asking for is currently a requested feature in GCP public issue tracker. You can track the progress with this link.

Related

Where can i find the pricing details for API calls made using googleapiclient or cloud client library for python

I searched a lot throughout but, in some documentation, google has mentioned only pricing for cloud endpoints and Api gateways nowhere mention of Api calls to google cloud itself i was curious to know about the limitations of making API calls and if there is any where i can find the pricing list.
Google Cloud does not charge for calling APIs. The service you are calling might charge based upon what the API does e.g. reading a secret or storing data but there is no change for the API call itself.

Google Cloud (API GATEWAY) Custom Domain

I am currently building a rest api, for this I am using Google Cloud API Gateway and Google Cloud Run. I've been looking at all the google cloud documentation and researching elsewhere and I can't find how to add a custom domain to an API gateway instance. The funny thing is that there is more documentation for Google Cloud endpoints, I could find how to do it with endpoints but it does not apply to my use case.
I have 10 instances of google cloud run each one running a microservice respectively and I want to join everything in a single domain and add support with openapi, but I have failed in the attempt.
In any case, if someone has managed to customize the domain of an api gateway instance, I would appreciate if you could guide me, greetings.
For the beta release, custom domain names are not supported on GCP for API Gateway. Since it is still beta as of today, if you want to use a custom domain, you could use Cloud Endpoints in Cloud Run or you could even look into using Microservices in App Engine.

How to Set Which Server Google Vision Sends its API calls to?

Our client does not let information be sent offshore. This isn't a discussion as to whether this is good policy or not.
I am wondering if there's any way to set the server that you send Google Vision's API calls to. In the same way you can select which server you want in Google's Compute.
At this time Google Cloud Vision is a global product and you cannot set a specific region for data processing.
On the following link scroll down to Global Products.
Google Cloud Locations
Vision OCR offers regional support
Vision OCR multiregion support
AutoML Vision is limited to us-central1 only at this time.

Does google cloud have something like "lambda#edge origin response"

Aws let setup lambda#edge function executed after a response is received from the origin(see picture bellow), can I do it with GCP?
UPDATE
This can be done now with the Cloud Functions service in Google Cloud Platform, as stated in the official documentation 1.
"Cloud Functions allows you to trigger your code from Google Cloud, Firebase, and Google Assistant, or call it directly from any web, mobile, or backend application via HTTP."
In this document can find the features comparison of AWS and Azure with matching features in GCP, including the one just mentioned of GCP Cloud Run matching AWS Lambda 2.
Finally, can find documentation on how to write Cloud Functions, the different programming languages used, and examples for the different usages here 3.

google cloud analogy to AWS Lambda

Does google cloud have an analogous functionality to AWS Lambda?
In particular I would like compute resources to be opened up and jobs scheduled via https events.
I'm also interested in any other cloud hosting providers which have similar functionality.
I just found out that there is something that looks interesting in the latest documentation of the SDK's command line tool gcloud.
https://cloud.google.com/sdk/gcloud/reference/alpha/functions/
This sounds exciting.
UPDATE: Google just released some official documentation of an alpha version of Cloud Functions. For now, functions can be written in Javascript using Node, and triggered by Pub/Sub, Cloud Storage, direct HTTP stimuli or manually for debugging purposes.
Google Cloud Storage has Object Change Notification. Only web hooks are currently supported at this time.
A client application can send a request to watch for a bucket's change notification events in order to be notified about changes to a bucket's objects. After a notification channel is initiated, Google Cloud Storage notifies the application any time an object is added, updated, or removed from the bucket.
For example, when you add a new picture to a bucket, an application could be notified to create a thumbnail.
More info can be found at: https://cloud.google.com/storage/docs/object-change-notification
Regarding other providers that have similar functionality, check out IronWorker. You can kick off IronWorker tasks via https endpoints using the webhook endpoint and you can run jobs on multiple clouds. Here's a comparison of Lambda vs IronWorker.
And yes, I work for Iron.io.
Lately Google announced alpha release of Google Cloud Functions which supports http interface.
There is Google Cloud Functions and Microsoft Azure functions, they are both fairly new (Microsoft announced Azure function on March 31 2016)
if you need Lambda with HTTP interface then look at Nano Lambda
They can deploy to any cloud and on premise.