aws cli 命令行创建语音转文本 transcribe 任务
到了新的一个月,又有
一、IAM
二、aws configure 设置区域
aws configure
Default region name [None]: us-east-2
三、aws cli
把音频文件传到
aws s3api put-object --bucket 你的s3存储桶--key 放在s3 上的文件名 --body VPS上的文件名
创建
aws transcribe start-transcription-job --media MediaFileUri=s3://Dirtbag.The.Legend.of.Fred.Beckey/output00.mp3 --media-format mp3 --language-code en-US --transcription-job-name Dirtbag_en00 --output-bucket-name Dirtbag.The.Legend.of.Fred.Beckey --output-key Dirtbag_en00.json
检查任务
aws transcribe get-transcription-job --transcription-job-name "Dirtbag_en00"
当任务完成的时候 "TranscriptionJobStatus": "COMPLETED",
就可以把 json 文件取下来了
aws s3api get-object --bucket 你的 S3 存储桶名称 -key S3 上文件的 KEY 你准备保存到 VPS 的文件名
评论
发表评论