<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kiran S Raj on Medium]]></title>
        <description><![CDATA[Stories by Kiran S Raj on Medium]]></description>
        <link>https://medium.com/@kiransraj1999?source=rss-249ae2950ca9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jM-OG-NiB-9yZWjrUldr5g.jpeg</url>
            <title>Stories by Kiran S Raj on Medium</title>
            <link>https://medium.com/@kiransraj1999?source=rss-249ae2950ca9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 17:47:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kiransraj1999/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Notify: Revolutionize the art of Note Taking with Google Cloud]]></title>
            <link>https://medium.com/google-cloud/notify-revolutionize-the-art-of-note-taking-with-google-cloud-8a28943d117c?source=rss-249ae2950ca9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a28943d117c</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[gcp-app-dev]]></category>
            <category><![CDATA[vertex-ai]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[gemini]]></category>
            <dc:creator><![CDATA[Kiran S Raj]]></dc:creator>
            <pubDate>Tue, 13 Feb 2024 16:13:57 GMT</pubDate>
            <atom:updated>2024-02-13T16:13:57.562Z</atom:updated>
            <content:encoded><![CDATA[<p>With the rapid advancements in Generative AI and the release of Gemini Pro on Google Cloud, the distinction between fiction and reality is slowly blurring. It’s safe to say that some of the applications that we can build with such powerful tools right now were mere ideas that could only be pondered in a farfetched future 4–5 years back.</p><h4>Overview ✨</h4><p>“Note Taking”, the art of writing down important points from any lecture/session, this skill goes way back to one’s elementary grades. With notes, you have condensed information about the most paramount point accompanied by various headings, subheadings, points .etc. This art has existed throughout the years and with Gemini Pro on Google Cloud, we’re here to revolutionize the way of taking notes.</p><p>With “Notify”, you will create an application that reads audio files, understands them, and creates structured, detailed, and concise notes for that input audio file. Let’s delve deeper…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LYk81amJ9KNOOzcpzBq7gA.gif" /><figcaption>Notify in action ✨</figcaption></figure><h4><strong>What are we going to use to build “Notify”? 💻</strong></h4><ol><li><strong>Flask</strong></li><li><strong>Google Cloud’s Speech-to-Text API:</strong> An API to convert audio to text by leveraging the best of Google’s AI research and technology</li><li><strong>Google Cloud Storage:</strong> A Managed Service to store unstructured data (here, our Audio Files)</li><li><strong>Cloud Run:</strong> A serverless platform to run containerized applications</li><li><strong>Vertex AI — Gemini Pro API</strong>: Google’s most capable AI Model</li></ol><h4><strong>Prerequisites</strong></h4><ul><li>In the <a href="https://console.cloud.google.com/">Google Cloud Console</a>, on the project selector page, select or create a Google Cloud <a href="https://cloud.google.com/resource-manager/docs/creating-managing-projects">project</a></li><li>Search for “Google Cloud Storage” in the Search box and click on Cloud Storage from the dropdown options</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmUUqzQg0Vhgsm6HFb3szg.png" /><figcaption>Click on Cloud Storage from the dropdown</figcaption></figure><ul><li>Alright, after loading up the Cloud Storage page, let’s go ahead and create a bucket. Click on Create to proceed with creating a bucket to house your audio files</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xP1sDRgwSYN4er5nf4Jrzw.png" /><figcaption>Click on Create to proceed with creating a bucket</figcaption></figure><ul><li>Go ahead with the setup process of creating a bucket, and make sure to add a unique bucket name (oh yes, make note of this bucket name as we would need it in our forthcoming steps). <em>For your reference, these are the options that I selected: Bucket Name: notify-audio-files, </em><strong><em>Location Type: Region (us-east1), Storage Class: Standard</em></strong><em>, after doing so hit create to complete</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iABg1uOSfQr607P-OExo8A.png" /><figcaption>The setup process associated with creating a Bucket</figcaption></figure><ul><li>After the previous step, you should find your bucket to have been created successfully! <em>(Keep a note of the bucket name)</em></li><li>Click on the Cloud Shell icon to activate a Command Line Interface for Google Cloud</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*bcQWMdhiHI_lNXJN" /><figcaption>Cloud Shell Icon</figcaption></figure><p><strong>Enable the APIs 🔧</strong></p><p>Let’s enable all the Google Cloud APIs necessary to facilitate the execution of our application. Run the command below in your Cloud Shell:</p><pre>gcloud services enable cloudfunctions.googleapis.com \<br>aiplatform.googleapis.com \<br>storage.googleapis.com \<br>cloudbuild.googleapis.com \<br>run.googleapis.com \<br>logging.googleapis.com \<br>speech.googleapis.com</pre><p><strong>Creating Environment Variables ⚙</strong></p><p>Let’s set the following environment variables:</p><pre>export PROJECT_ID=&lt;your project id&gt;<br>export REGION=us-central1</pre><p><strong>Creating a new Service Account ⛏</strong></p><p>Create a new service account (use the same terminal opened in the previous section)</p><pre>gcloud iam service-accounts create notify-service-acc</pre><p>To provide access to your project and your resources, grant a role to the service account</p><pre>gcloud projects add-iam-policy-binding ${PROJECT_ID} --member=&quot;serviceAccount:notify-service-acc@${PROJECT_ID}.iam.gserviceaccount.com&quot; --role=roles/ml.developer</pre><p>Grant your Google Account a role that lets you use the service account’s roles and attach the service account to other resources. Replace USER_EMAIL with your Google Account Email ID</p><pre>gcloud iam service-accounts add-iam-policy-binding notify-service-acc@${PROJECT_ID}.iam.gserviceaccount.com --member=&quot;user:USER_EMAIL&quot; --role=roles/iam.serviceAccountUser</pre><h4><strong>Let’s dive into creating “Notify” 🌟</strong></h4><p><strong>Cloning Repository 🔗</strong></p><p>The source code for “Notify” is present in the following repository. Let’s go ahead and clone it!</p><pre>git clone https://github.com/flazer99/Notify.git</pre><pre>cd Notify/</pre><p><strong>Dissecting “Notify” ✍</strong></p><p>Before we go ahead with running “Notify”, let’s understand what comprises “Notify” and what makes it work for our use case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*F45swYqsSkpG11xqtlOReg.png" /><figcaption>Directory Structure for the “Notify” Repository</figcaption></figure><p><strong>Let’s look at “Notify” from a high-level view</strong></p><p><strong>The Flow:</strong> The user is presented with a web application, where they have an option to upload an audio file (MP3), which is then uploaded to Google Cloud Storage. Our frontend for the application fetches the uploaded audio files on user request. When their desired audio track is selected from the frontend, the Speech to Text AI API is invoked to transcribe the entire text. The transcribed text then passes through Gemini Pro, which then generates the necessary notes along with any additional information that is considered necessary in a markdown format. This response is further rendered onto the frontend for user perusal.</p><p><strong>What are these files in the repository? 🔎</strong></p><ul><li><strong>Dockerfile — </strong>This file contains the necessary commands needed to package and create a Docker Image for our application</li><li><strong>main.py — </strong>This is our flask server, our business logic of handling incoming requests and responding to them is housed under this file</li><li><strong>speech_transciber.py — </strong>As the name suggests, this is where the Speech to Text API is invoked to transcribe our Audio File to textual content</li><li><strong>vertex_ai_component.py — </strong>The transcribed text is then passed through Gemini Pro’s API for our specified text generation here</li><li><strong>requirements.txt — </strong>Python packages required to run the application</li></ul><p><strong>Let’s run “Notify” 🚀</strong></p><p>In the following steps, we will be deploying our Application to Cloud Run (Cloud Run is a serverless service provided by Google Cloud, where one can easily deploy their containerized application without worrying about the underlying infrastructure — to learn more, visit: <a href="https://cloud.google.com/run">https://cloud.google.com/run</a>)</p><blockquote>Remember I told you to keep your Bucket Name and Project ID handy? Well, now is the time we put that stored information to use</blockquote><p>To run our Application, you will need to replace &lt;PROJECT_ID&gt; and &lt;BUCKET_NAME&gt;with your specific details respectively in the Dockerfile (Open Cloud Editor to edit the contents of the Dockerfile)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*5U7Xauq1RDX9xvLWKJxjQg.png" /><figcaption>Variables needed to be replaced by the user in the Dockerfile</figcaption></figure><p>We will be using the Google Artifact Registry to build and store our Docker Images</p><p>Create an Artifact Registry Repository. Open the <strong>Cloud Shell</strong> (use the same terminal opened in our initial section)</p><pre>gcloud artifacts repositories create notify-app-repo --repository-format=docker --location=${REGION}</pre><p>Create an environment variable for the Artifact Registry repository URL</p><pre>export DOCKER_URL=${REGION}-docker.pkg.dev/${PROJECT_ID}/notify-app-repo/notify-image</pre><p>Build the docker container and tag it with the Artifact Registry Repository location. Tagging the Docker image with a repository name configures the docker push command to push the image to a specific location</p><pre>docker build . -t ${DOCKER_URL}</pre><p>Push the image to the Artifact Registry</p><pre>docker push ${DOCKER_URL}</pre><p>Deploy the docker container to Cloud Run</p><pre>gcloud run deploy notify-app --allow-unauthenticated --platform=managed --region=${REGION} --image=${DOCKER_URL}</pre><p>Voila! 🎉 You have successfully deployed “Notify” to Cloud Run and will have a public webservice endpoint where you can play around with this revolutionary way of taking down notes!</p><h4>It doesn’t stop here…</h4><p>With the exemplary Generative AI Suite provided by Google Cloud in Vertex AI, look out for the additions to Notify. Well, let me spoil it a bit… we can generate Images for the specific content of notes taken, and change the style of the content being generated by narrowing down on what mode/type should the notes resonate with (professional, student, and more), add the scope of creating videos with the generated content and many more… Innovation never ceases to exist and fortunately we’re in the era of unbounded opportunities!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a28943d117c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/notify-revolutionize-the-art-of-note-taking-with-google-cloud-8a28943d117c">Notify: Revolutionize the art of Note Taking with Google Cloud</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>