ποΈEz Google AI

πLinks
Plugin Link on Bubble Marketplace
Introduction
There has never been a more exciting time in technology. We are experiencing one of the most significant shifts in history, where AI is creating entirely new ways to solve problems, engage customers, and work more efficiently. Google Cloud is ready to help organizations build a new way forward in an increasingly AI-driven world. We are glad to bring Google AI technology to the Bubble community. We decided that to have all tools in one place is best practice, so Ez Google AI combines several actions in one plugin:
Document AI
Speech To Text
Get Text from Image
Get Safe Search
Get Logo Search
Get Landmark Detection
Create Cloud Storage
Upload to Cloud Storage
You enter your private Key, Client ID, and Project ID in one place and it is ready to use Ez Google AI.
Instruction and Description
Create an account on Google Cloud. You can read more about the terms and conditions of registration, and further management of accounts, at the following link.
Enable APIs that You need to use (Image AI, Text To Speech, Speech to Text, Document AI, Cloud Storage).
Create Processor from Cloud Console(Needed for Document AI).
Create a Service Account. - Add Credentials to IAM.
Enable billing (needed, but You get from Google trial period and free calls).
Download a private key as JSONHints for Speech to Text.
Auto Authentication
Open the private key JSON file with a text editor and copy/paste the following parameters from your file to the Plugin settings: - client_email - project_id - private_key,
Including the -----BEGIN PRIVATE KEY-----\n prefix and \n-----END PRIVATE KEY-----\n. How itβs WorkEz Google AI contains Actions, Specify trigger (button, event, etc.), and starts Plugin Action.
Instruction to Document AI
Specify element Action from WorkFlow, add Action βDocument AI- Get Text From Documentβ
Now You need to fill in the fields βProcessor IDβ and βLink to Fileβ and choose βLocationβ
Processor ID field - Here you need to paste Your processor ID from Google Cloud Console, βMy Processorsβ tab. If You donβt have a Processor ID, create one with the βDocument OCRβ type.
Location - drop-down. By default, Document AI stores and processes resources in aβ―USβ―location. If you choose theβ―European Unionβ―location, Google will store your data and process it only in the European Union.
Link to File - Bubble Uri to document Example: β//0341b7fbc64b39338695c11fb9a66136.cdn.bubble.io/f1697709115621x854084300796481200/How%20much%20is%20the%20fish.pdfβ
After the plugin ends execution, you will get the response key-value object with the next keys: Text, Language code, and error.

Text - Contains all found text in one string
Language Code - Returns the language code of a document
error - Returns βnullβ for no error, or a String with an error definition
Instructions to Image AI
Specify element Action from WorkFlow, add Action βImageAI- Get Lable Searchβ, practically all Image AI actions have the same Input Fields.
Now You need to specify input fields βDynamic Imageβ, βMax Resultβ
Dynamic Image - Link to bubble Uri(ex. β//0341b7fbc64b39338695c11fb9a66136.cdn.bubble.io/f1697718926510x406478102390087000/items_test.jpgβ)
Max Result - Specify How many objects Image AI must recognize.
After the plugin ends execution, you will get the response key-value object with the next keys: Found Items and error.
Found Items - Return the string of Objects found on the image.
error - Returns βnullβ for no error, or a String with error definition.
Instructions for Cloud Storage
Specify element Action from WorkFlow, add Action βSTORAGE- Create Storageβ.
Now You need to specify the input field βStorage Nameβ
After the plugin ends execution, you will get a response key-value object with the next keys: Status and error.
Status - Returns βyes/noβ result if bucked created
error - Returns βnullβ for no error, or a String with an error definition
Upload Storage Action
For Uploading a file to Bucked You need to specify the Input Fields:
Link to File - Bubble Uri (ex.β//0341b7fbc64b39338695c11fb9a66136.cdn.bubble.io/f1697718926510x406478102390087000/items_test.jpgβ)
File Name - Name of the uploaded file to the bucket.
Bucket - Name of Your bucket(Place, Where You want to store a file).
After the plugin ends execution, you will get the response key-value object with the next keys: gs Link, status, and error.
-gs Link - Google Storage Link(Needed for Speech to Text action) ex. βgs://{bucket name}/{filename}β.
-status - Returns βyes/noβ result if bucked created.
-error - Returns βnullβ for no error, or a String with an error definition.
Delete Storage Action
For Deleting a file from Bucked You need to specify the Input Fields:
Bucket Name - Bucket from which You want to delete a file.
File Name - Name of File.
Mime - Specify file extension without β.β (ex. pdf, jpg, png, etc.).
After the plugin ends execution, you will get a response key-value object with the next keys: status and error.
status - Returns βyes/noβ result if bucked created.
error - Returns βnullβ for no error, or a String with an error definition.
Instructions to Text to Speech
Specify element Action from WorkFlow, add Action βText to Speechβ.
Now You need to specify the following fields:
Home Url - For βcross-originβ must be bubble.io home URL (needed for creating a link to an audio file)
Text.
Language Code - Choose Your Voice https://cloud.google.com/text-to-speech/docs/voices.
Gender - Choose the Gender of the speaker
After the plugin ends execution, you will get the response key-value object with the next key.
file - Returns link with your Audio File (ex. βhttps://meta-l.cdn.bubble.io/f1698044891872x337292678477508540/EazyCode.mp3β)
Speech To Text Action
Now You need to specify the following fields:
gcsUri - gs Link to your Audio File, for now, google can ONLY encode audio files from Cloud Storage Bucket, so the link must look like this: βgs://cloud-samples-data/speech/brooklyn_bridge.rawβ
Language Code - BCP-47 language code, e.g. en-US
Encoding - Google Speech-to-Text API can handle specific types of speech encoding.
Model - You must set the model field to one of the allowed values. https://cloud.google.com/speech-to-text/docs/reference/rest/v1p1beta1/RecognitionConfig
Profanity Filter - If enabled, Speech-to-Text will attempt to detect profane words and return only the first letter followed by asterisks in the transcript (for example, f***). If this field is set to false or not set, Speech-to-Text will not attempt to filter profanities.
Enable Automatic Punctuation
Transcript - Returns text string for Your Audio file.
Error - Returns βnullβ for no error, or a String with an error definition.
Speech to Text works only with βgsβ links. First, create a bucket or upload an audio file to storage, get βgsβ link(ex. gs://bucket/filename). If enabled, Speech-to-Text will attempt to detect profane words and return only the first letter followed by asterisks in the transcript (for example, f***). If this field is set to false or not set, Speech-to-Text will not attempt to filter profanities.
You can specify voices and Languages from https://cloud.google.com/text-to-speech/docs/voices You need to copy/paste the Language Code without ββ.
You need to create a Processor with the βDocument OCRβ option. Location is a spec for where Your Site will OCR document. Document AI supports the following file formats:
.pdf
.gif
.tiff
.tif
.jpg
.jpeg
.png
.bmp
.webp
Google has photo size restrictions, which you can find by the link.

Feel free to contact us for any inquiries and weβll be happy to find a solution for your ideas β http://eazycode.com/
Hire us:
https://www.fiverr.com/share/qQoDQZ
https://www.upwork.com/freelancers/~01c1a4cbef44ecb5f1
Follow us:
https://www.facebook.com/eazycode
https://twitter.com/ezcode_official
https://www.instagram.com/eazycodecom/
https://www.linkedin.com/company/eazycodecom/
Last updated
Was this helpful?
