⏲️ est. time to complete: 30 min. ⏲️
In this challenge you will learn how to:
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.
New repository secret
.VITE_SPEECH_API_KEY
Add Secret.
Now we will make our app understand when we talk to our Milligram social media application.
Navigate to Actions > Pages and Run workflow
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.
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!
Ask your coach if you did not succeed. We have you covered with a back up. ⚠️
Look at the prepared application with our pictures for you to play around Milligram.
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:
Tipps 📝
Be sure to check out our Microsoft Programs:
◀ Previous challenge | 🔼 Home |