Skip to content

Latest commit

 

History

History
89 lines (54 loc) · 4.31 KB

README.md

File metadata and controls

89 lines (54 loc) · 4.31 KB

Challenge 6: Speech Recognition

⏲️ est. time to complete: 30 min. ⏲️

Here is what you will learn 🎯

In this challenge you will learn how to:

  • Create a Speech API service in Azure
  • Connect you Speech API service with your app
  • Pass the API key to you app using GitHub Secrets
  • How to talk to our application

Table of contents

Further informative resources

Getting started

Integrate Speech Service credentials into GitHub Secret

Again you need to share the information of this resource with the web app, so that it can utilize the Speech service's intelligence. Therefore, we will create another GitHub Secret and share this with the app.

  • Navigate to GitHub > Settings > Secrets > Actions and add a New repository secret.

  • Name: VITE_SPEECH_API_KEY

  • Value: The Key of your Speech service you copied before

  • Add Secret.

    Screenshot of creating secret

Now we will make our app understand when we talk to our Milligram social media application.

Run Frontend Pipeline again

  • Navigate to Actions > Pages and Run workflow Run a workflow Run all jobs

Click on the frontend link displayed under the deploy step under your pipeline https://<yourgithubhandle>.github.io/... or open the app on your phone.

Our frontend application should now have a new button with a microphone symbol that allows us to talk to our app in English and German and have our speech transcribed.

Neither what you say nor what is transcribed will be saved and will not appear on the timeline or news feed.

Talk to me! What do you have to say? Play around

So go ahead and say at least 5 sentences and tell us how great your application understands you.

Take also a look and read to your application or ask other people to talk to your phone, you might be surprised.

By default, it will only understand German and English, if you want to change the language you could change the repo in Frontend > scr > views > Microphone.vue on line 7 and add e.g. Ukrainian <option value="uk-UA">Ukrainian</option>

As you can see, the language is represented by four letters. For German it's de-DE, for English (USA) it is en-US and for Ukrainian it is uk-UA. Here you can find all supported languages with their code.

That's a wrap for our 2 days. Congrats!

Overcharged? We got you covered

Ask your coach if you did not succeed. We have you covered with a back up. ⚠️

Use prepared Milligram Backend Service

Look at the prepared application with our pictures for you to play around Milligram.

What's next?

Start your own coding journey now or try out an Azure certification as we did using Udacity, Udemy, Pluralsight, Edx etc., make sure to check out the links posted below:

:::tip

Be sure to check out our Microsoft Programs:

◀ Previous challenge | 🔼 Home