Find Jobs
Hire Freelancers

AWS Transcribe Service using PHP

$20-40 AUD

已取消
已发布超过 5 年前

$20-40 AUD

货到付款
I am a PHP programmer, and I can't get the AWS Transcribe Service to work. I need someone to send me a snippet of code that works. Requirements: 1. Use the AWS SDK for PHP v3 2. Create a new client for the Transcribe service 3. Make a request to the transcribe service 4. Receive a success response as documented on the PHP SDK page for the Transcribe service Here is the PHP code I have been using, but it fails. It seems to be failing when I create the client using the factory() method. I have tried creating the client in other ways, but it keeps failing. // AWS SDK (this path is for the ZIP file method of installing the SDK) require 'vendor/aws/[login to view URL]'; // Transcribe use Aws\TranscribeService\TranscribeServiceClient; $transcribeClient = TranscribeClient::factory( array( 'region' => 'ap-southeast-2', 'version' => '2017-10-26', 'credentials' => array( 'key' => 'yourAccessKeyHere', 'secret' => 'yourSecretKeyHere' ) ) ); $result = $transcribeClient->startTranscriptionJob([ 'LanguageCode' => 'en-AU', //'en-US|es-US|en-AU|fr-CA|en-GB|de-DE|pt-BR|fr-FR|it-IT', // REQUIRED 'Media' => [ // REQUIRED 'MediaFileUri' => 'https://url-to-file-in-S3-bucket', ], 'MediaFormat' => 'mp3', //'mp3|mp4|wav|flac', // REQUIRED //'MediaSampleRateHertz' => <integer>, //'OutputBucketName' => '<string>', //'Settings' => [ // 'ChannelIdentification' => true || false, // 'MaxSpeakerLabels' => <integer>, // 'ShowSpeakerLabels' => true || false, // 'VocabularyName' => '<string>', //], 'TranscriptionJobName' => 'job-name-here, // REQUIRED ]); // not sure if we need this here, you *do* need to do this for S3 response, so maybe we need it for Transcribe response. $result = $result->toArray(); print_r($result); /* Response: $result = [ 'TranscriptionJob' => [ 'CompletionTime' => <DateTime>, 'CreationTime' => <DateTime>, 'FailureReason' => '<string>', 'LanguageCode' => 'en-US|es-US|en-AU|fr-CA|en-GB|de-DE|pt-BR|fr-FR|it-IT', 'Media' => [ 'MediaFileUri' => '<string>', ], 'MediaFormat' => 'mp3|mp4|wav|flac', 'MediaSampleRateHertz' => <integer>, 'Settings' => [ 'ChannelIdentification' => true || false, 'MaxSpeakerLabels' => <integer>, 'ShowSpeakerLabels' => true || false, 'VocabularyName' => '<string>', ], 'Transcript' => [ 'TranscriptFileUri' => '<string>', ], 'TranscriptionJobName' => '<string>', 'TranscriptionJobStatus' => 'IN_PROGRESS|FAILED|COMPLETED', ], ] */
项目 ID: 18575917

关于此项目

远程项目
活跃5 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作

关于客户

AUSTRALIA的国旗
North Ward, Australia
5.0
105
付款方式已验证
会员自5月 13, 2008起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。