-
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
Predictions text to speech throws error related to ArrayBuffer (React Native) #11588
Comments
Hi @hoangtam101 thank you for opening this issue - Question i have for you is, are you doing anything to consume the result from |
Hi @nadetastic For example I just want to code is work and log the result to know the data. Thanks, |
Hello @nadetastic I stuck with it. |
@hoangtam101 I spent some time digging into this and found a potential problem that affects how Im transferring this over to the Javascript repo to better continue investigating this issue. |
Hi @hoangtam101 we've identified this as a bug with the library and are continuing to investigate a fix for this. In short, the implementation in place uses ArrayBuffer conversions which works as expected for web, however RN BlobManager doesn't supports ArrayBuffer conversions very well. amplify-js/packages/predictions/src/Providers/AmazonAIConvertPredictionsProvider.ts Lines 141 to 157 in 28bc873
I'll update this issue once I have some additional info. |
Any updates on this issue with ArrayBuffer? |
Hello, @hoangtam101, @Umoren, and @kyokchyan 👋. Wanted to update this issue and let you all know that we'll be consolidating this into #13322 in order to better focus on a more general investigation into the support/bugs with Predictions and React Native in v5 of Amplify. If you have any additional context/feedback, feel free to comment on that issue and follow it for updates. |
Hi everybody,
I trying to create an example using aws-amplify to handle text-to-speech.
So I follow the document: https://docs.amplify.aws/lib/predictions/text-speech/q/platform/react-native/#set-up-the-backend
Then I run the example I got the message
[Error: FileReader.readAsArrayBuffer is not implemented]
Here is my code for calling Predictions to convert text to speech.
Predictions.convert({ textToSpeech: { source: { text: 'Hello. Text to speak', }, voiceId: 'Ivy', }, }) .then(result => {}) .catch(err => console.log({ err }));
Can anyone help me?
Thank a lot.
The text was updated successfully, but these errors were encountered: