Browse through the questions and answers listed below or filter and sort to narrow down your results.
How to transcribe a call with AWS transcribe API ?
I got this error when I'm trying to transcribe a call:
> Account isn't authorized to call this operation. Check your account perm
I think the bad property is DataAccessRoleArn, I tried to create new role on IAM console, but it does not work.
Here's the full PHP code:
```
<?php
require 'vendor/autoload.php';
use Aws\TranscribeService\TranscribeServiceClient;
$awsKey = "{awsKey}";
$awsSecretKey = "{awsSecretKey}";
$clientAWS = new TranscribeServiceClient([
'region' => 'eu-west-3',
'version' => 'latest',
'credentials' => [
'key' => $awsKey,
'secret' => $awsSecretKey
],
]);
$result = $clientAWS->startCallAnalyticsJob([
'CallAnalyticsJobName' => 'Transcript1', // REQUIRED
'ChannelDefinitions' => [
[
'ChannelId' => 0,
'ParticipantRole' => 'AGENT',
],
[
'ChannelId' => 1,
'ParticipantRole' => 'CUSTOMER',
]
],
'DataAccessRoleArn' => 'arn:aws:iam::{id}:role/AWSRole', // REQUIRED
'Media' => [ // REQUIRED
'MediaFileUri' => 's3://{bucketName}/2022/02/23/file.wav',
'RedactedMediaFileUri' => 's3://{bucketName}/2022/02/23/',
],
'Settings' => [
'ContentRedaction' => [
'RedactionOutput' => 'redacted', // REQUIRED
'RedactionType' => 'PII', // REQUIRED
],
],
]);
print_r($result);
```
Do you know how to fix role issue?
Thank you in advance,
J.
Accepted AnswerAmazon Transcribe
2
answers
0
votes
14
views
asked 3 months ago
1
answers
0
votes
4
views
asked 4 months ago
Problem configuring output S3 bucket for allowing AWS Transcribe to store t
I am trying to configure a job transcription within AWS Transcribe so that the result is automatically stored in a S3 Bucket.
```
aws transcribe start-transcription-job --transcription-job-name testingTranscription \
--language-code pt-BR \
--media-format wav \
--media MediaFileUri=s3://[BUCKET_NAME]/audio.wav \
--output-bucket-name s3://[BUCKET_NAME]/
```
I get the following message:
```
An error occurred (BadRequestException) when calling the StartTranscriptionJob operation: 1 validation error detected: Value 's3://[BUCKET_NAME]/' at 'outputBucketName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9]
```
It says something about regular expression pattern, but I think it is a permissions problem. I am not able to figure out how to set this permissions using IAM because when I try to create a Role for the service, it does not appear in the list: <https://i.stack.imgur.com/URHSJ.png>
The documentation says: "If you use your S3 bucket, you must grant Amazon Transcribe write access."
How can I do this if the service does not accept a role?
Accepted AnswerAmazon Transcribe
2
answers
0
votes
27
views
asked 3 years ago
How is Audio Identification transcription text created from JSON?
I am not familiar with JSON files. For a single speaker, I have been editing the JSON in Word, no problem as the full transcription text is easily extracted. Now for 2 speakers, I would like to extract the Audio Identification transcription text as shown in the 5000 character sample text where the speaker is identified. How do I create the Audio Identification transcription text for the full transcription as shown in the sample, from the JSON file? Thanks.
Accepted AnswerAmazon Transcribe
2
answers
0
votes
25
views
asked 3 years ago