This Call Analytics Request doesn't work to using ChannelDefinitions

0
<?php require 'vendor/autoload.php'; // AWS SDK를 로드 use Aws\S3\S3Client; use Aws\TranscribeService\TranscribeServiceClient; // 파일 체크 if (isset($_FILES['transcribeFile'])) { $target_file = $_SERVER['DOCUMENT_ROOT'] . 'newurl/' . basename($_FILES['transcribeFile']['name']); // AWS 계정 자격 증명 설정 $credentials = [ 'credentials' => array( 'key' => $mykey, 'secret' => $mysecretkey ), 'region' => $myregion, 'version' => 'latest', ]; // $s3Client = new S3Client($credentials); // s3 object 객체 if (!is_file($target_file)) { move_uploaded_file($_FILES['transcribeFile']['tmp_name'], $target_file); } $outputBucket = $mybucket; // 변환된 결과를 저장할 S3 버킷 이름 // 업로드 여부 확인 $result = $s3Client->doesObjectExist($outputBucket,basename($_FILES['transcribeFile']['name'])); if(!$result){ try{ $s3Client->putObject([ 'Bucket' => $outputBucket, 'Key' => basename($_FILES['transcribeFile']['name']), 'SourceFile' => basename($_FILES['transcribeFile']['name']), ]); }catch(\S3Exception $e){ echo $e->getMessage(); exit; } $result = $s3Client->doesObjectExist($outputBucket,basename($_FILES['transcribeFile']['name'])); // 업로드 오류가 없어도 재확인 } if($result){ // TranscribeServiceClient 생성 $client = new TranscribeServiceClient($credentials); // transcribe 객체 // 변환 작업 설정 $jobName = basename($_FILES['transcribeFile']['name']); $mediaFileUri = $myaudioUri; // 오디오 파일의 S3 경로 $params = [ 'CallAnalyticsJobName' => $jobName, // 작업 이름을 지정합니다. 'Media' => [ 'MediaFileUri' => $mediaFileUri, // 분석할 오디오 파일의 S3 URI ], 'OutputLocation' => $myoutputlocation, // 결과를 저장할 S3 버킷 이름을 지정합니다. 'ChannelDefinitions' => [ [ 'ChannelId' => 0, 'ParticipantRole' => 'AGENT' ], [ 'ChannelId' => 1, 'ParticipantRole' => 'CUSTOMER' ] ], 'Settings'=>[ 'LanguageOptions'=>['ko-KR'] ] ]; $TranscribeResult = $client->startCallAnalyticsJob($params); echo 'Transcription job started: ' . $jobName . "\n"; } catch (Exception $e) { echo 'Error: ' . $e->getMessage(); exit; } } ?>

This request is working. but, participantRole isn't divide.

(Can make S3 Object and transcribe Job, return json file.)

File is consists of only "Korean".

And another consists of English file is working very well on this request.

  1. If this request don't apply Korean to ChannelDefinitions?

  2. If is true, can you help me to fix this issue to another process?

I will waiting response.

Thanks for assistance! :)

==============================================================

해당 요청은 동작하지만 화자 분리가 되지 않습니다.

( S3 Object 생성, Transcribe Job 생성, return되는 json 파일 생성 모두 가능합니다.)

오디오 파일은 "한국어"로만 구성되어 있습니다.

영어로된 오디오 파일은 화자분리가 잘 됩니다.

  1. 한국어는 화자분리 지원이 안되나요?
  2. 그렇다면, 이를 해결하기 위한 다른 방법이 뭐가 있나요?

연락 기다리겠습니다.

감사합니다! :)

dongil
질문됨 7달 전230회 조회
1개 답변
0

안녕하세요. Transcribe를 사용해주셔서 감사합니다. 고객님께서는 한국에서 ChannelDefinition이 동작되는지 알고싶으신 것으로 이해하였는데요. 해당 링크에 따르면 한국어가 지원되는 것으로 확인됩니다. 다만, 고객님의 문의에 구체적인 답변을 드리기위해서는 좀 더 자세한 고객님의 정보가 필요합니다. 따라서, 전달드리는 링크를 통해 AWS Support에 케이스를 열어주시기 바랍니다.

AWS
답변함 7달 전
  • 현재 Basic Support 플랜을 이용해야만 해서 Support 케이스 오픈이 안됩니다. 다른 지원 방법은 없나요?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠