It seems that you’re having issues with your task in Google Cloud Skills Boost. To assist you, refer to the following documentation for additional guidance to resolve the issue you’re encountering:
Speech-to-Text request construction - This documentation serves as an introductory guide to using Speech-to-Text. It explains the different types of requests you can make, how to construct these requests, and how to handle the responses.
Cloud Natural Language API - This documentation offers developers natural language understanding technologies, including sentiment analysis, entity recognition, entity sentiment analysis, and various text annotations.
You can also read this documentation that might help you get the support you needed on the issue you are encountering with Prepare Data for ML APIs on Google Cloud: Challenge Lab in Google Cloud Skills Boost
Yes, both of these labs are broken. Lab 3 is broken despite their pathetic FLAC file being properly recognized as “Welcome to … chaaaaalenge laaab” and submitted to GCS bucket, the Lab 4 is too where they ask you to “analyze the sentence from text about Odin”. They don’t explicitly ask you what exactly you have to do on the NLP API and by trial and error it is appears to be “analyze-entity-sentiment” not “analyze-entities” which is showed on the previous lab they reference you if you have errors. Don’t run this lab and if you do - be prepared to face these challenges. I hope they left all these bugs not on purpose.
Sorry for the late response, but I just figured out how to complete this lab myself. In addition to dbuzz777’s note about having to use “analyze-entity-sentiment” instead of “analyze-entities”, the metadata type of your output file needs to be “application/json” for some unknown reason. If you upload the file as “.result”, it will get a metadata type of “application/octet-stream” and the lab will reject it. This means you have to initially create your file with a “.json” extension, and then rename it as part of the bucket upload, e.g.
Was banging my head against the wall on why my submissions for Tasks 3 and 4 kept getting rejected.
Confirming that the Content-Type metadata needs to be “application/json” to be accepted. I ended up copying the *.result files to cloud storage and then editing the metadata for each file.
The following result does not allow in “Check my progress”.
gsutil cp task3-gcs-658.result gs://qwiklabs-XXXXXX-marking/task3-gcs-658.result
The following works well. Thanks community member.
gsutil -h “Content-Type:application/json” cp task3-gcs-658.result gs://qwiklabs-XXXXXX-marking/task3-gcs-658.result
gsutil ls -L gs://qwiklabs-XXXXXX-marking/task3-gcs-658.result | grep Content-Type
Content-Type: application/json