I am working on building an external site to manage transcriptions and am currently trying to fetch a custom vocabulary I have created for AWS Transcribe using the API. My intention is to fetch the list of words, display them in a textbox for the user to edit, and then send the edited list back to AWS. The 'GetVocabulary' action that exists does allow me to request a custom vocabulary but it simply returns:
Response Syntax
{
"DownloadUri": "string",
"FailureReason": "string",
"LanguageCode": "string",
"LastModifiedTime": number,
"VocabularyName": "string",
"VocabularyState": "string"
}
I have tried grabbing/scraping the text document from the "DownloadUri" in many different ways but have not been successful due to receiving all kinds of access/CORS issues. This was something I was able to get around for normal transcription files since they are stored on my own S3 buckets for which I can set the access permissions. Custom vocabularies, however, are stored somewhere on AWS's own default buckets (I have no idea where) and thus I cannot change the access permissions (or at least don't know where to do so).
My current workaround is to simply load the DownloadUri into an iframe and have the user simply copy and paste the words from the iframe into a textbox and then edit them. This is obviously not ideal/elegant at all though.
Any help/info with this would be greatly appreciated, thanks!!