-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prediction - Transcribe usage and documentation #14233
Comments
Hi @austinrausch thanks for reporting this documentation issue. The information about passing Re:
What was the payload you sent. According to this |
Thanks @austinrausch, documentation has been updated with your suggestion. |
Hi all, thanks for updating the documentation! I have a working setup now with the correct file type for the payload so I appreciate your help. Hopefully anybody else needing help with transcribe in the future can use this thread. |
Hi @austinrausch, I am also getting empty string for the output. Can you suggest what you did to fix the issue? |
@hivemynds-dev Sure. I found the following github page from a youtube video: https://github.com/gitmurali/react-aws-sentiment-analysis/blob/b381790f893d4d13f4c16ee5890165d43544778e/src/components/AudioRecorder.js In this example he uses microphone-stream and get-user-media-promise npm packages to format the data correctly. After trying this I was able to get the transcription back. |
get-user-media-promise is a very old library and microphone-stream is really hard to get working on the latest react versions. I feel this issue was closed prematurely. |
Before opening, please confirm:
JavaScript Framework
Angular
Amplify APIs
Predictions
Amplify Version
v6
Amplify Categories
predictions
Backend
Amplify Gen 2
Environment information
Describe the bug
Hello! I would like to request an update to documentation and to give a usable example for the Prediction calls that can be made with Amplify. I joined the Discord channel office hours to ask for clarification and I was asked to make a post here. Currently the documentation is a little thin, but I've found that the calls do work with a significant amount of custom changes around the given example.
I followed the instructions here: https://docs.amplify.aws/angular/build-a-backend/add-aws-services/predictions/set-up-predictions/
My backend.ts includes:
I also included in my main.ts the following:
My other Amplify backend features are working fine. Auth, api, data, storage, deploy all work. Predictions returns the error
Error processing chunk: NoRegion: Missing region.
It was suggested in my discord post that I update my project to include the following to resolve the error:
After this, the call succeeded, but I was only receiving empty string results when sending my payload after recording with the stock MediaRecorder approach. I found the following React project from a YouTuber which utilizes microphone-stream and get-user-media-promise packages: https://github.com/gitmurali/react-aws-sentiment-analysis/blob/b381790f893d4d13f4c16ee5890165d43544778e/src/components/AudioRecorder.js.
I was able to piece together parts of this to get it to work, but I feel like I'm missing something. Is there a simpler approach without installing multiple npm packages?
Thanks for all you do!
Expected behavior
Documentation provides a clear example of how to use the Transcribe call.
Reproduction steps
Using Amplify gen 2, attempt to use a transcription call by following the steps in this documentation:
https://docs.amplify.aws/angular/build-a-backend/add-aws-services/predictions/set-up-predictions/
https://docs.amplify.aws/angular/build-a-backend/add-aws-services/predictions/set-up-predictions/
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: