有没有一种方法可以使用python将Amazon Transcribe的输出文件放置在Azure存储容器中

时间:2020-07-22 16:15:49

标签: python azure python-3.6 azure-storage-blobs aws-transcribe

下面是代码,

    bucket_name="https://example.blob.core.windows.net/output_files/"    
transcribe.start_transcription_job(TranscriptionJobName = callerfile,
                                        Media = {'MediaFileUri': blob_uri},
                                        MediaFormat = fileExten,
                                        LanguageCode = lang_code,
                                        OutputBucketName = bucket_name,
                                        Settings = {
                                                #'VocabularyName': 'string',
                                                'ShowSpeakerLabels': True,
                                                'MaxSpeakerLabels': 2
                                                #'ChannelIdentification': True
                                            }

                                        ) 

错误

BadRequestException: An error occurred (BadRequestException) when calling the 
StartTranscriptionJob operation: 1 validation error detected: Value 
'https://example.blob.core.windows.net/output_files/' at 
'outputBucketName' failed to satisfy constraint: Member must satisfy regular 
expression pattern: [a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9]

请帮助我们指导使用python将AWS Transcribe的输出文件放置在存储容器Azure中的逻辑。

0 个答案:

没有答案