Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 使用语音进行反应或使用放大交互进行角度调整_Angular_Reactjs_Aws Amplify_Amazon Lex - Fatal编程技术网

Angular 使用语音进行反应或使用放大交互进行角度调整

Angular 使用语音进行反应或使用放大交互进行角度调整,angular,reactjs,aws-amplify,amazon-lex,Angular,Reactjs,Aws Amplify,Amazon Lex,交互代码为: I am using aws-amplify interaction : https://aws-amplify.github.io/docs/ 谁能帮我解决这个问题 我对amplify chatbot ui组件也有同样的问题,我已经在aws sdk repo中解决了这个问题: 在做了一些分析之后,我认为需要对lib进行一些调整,以解决这个错误。我对amplify chatbot ui组件也有同样的问题,我在aws sdk repo中提出了一个问题: 在做了一些分析之后,我认为需

交互代码为:

I am using aws-amplify interaction : https://aws-amplify.github.io/docs/

谁能帮我解决这个问题

我对amplify chatbot ui组件也有同样的问题,我已经在aws sdk repo中解决了这个问题:
在做了一些分析之后,我认为需要对lib进行一些调整,以解决这个错误。

我对amplify chatbot ui组件也有同样的问题,我在aws sdk repo中提出了一个问题: 在做了一些分析之后,我认为需要对lib进行一些调整,以解决这个错误

 <ChatBot
          title="My Bot"
          theme={myTheme}
          botName="OrderFlowers"
          welcomeMessage="Welcome, how can I help you today?"
          onComplete={this.handleComplete.bind(this)}
          clearOnComplete={true}
          conversationModeOn={false}
          voiceEnabled={true}
          voiceConfig={customVoiceConfig}
        />

 const customVoiceConfig = {
      silenceDetectionConfig: {
          time: 2000,
          amplitude: 0.2
      }   
  }
    *While using voice enabled interaction I am getting this error. When I press the voice button.*

    [enter image description here][1]Aws_restJson1_1.ts:834 Uncaught (in promise) **BadRequestException: Invalid Request: The header x-amz-content-sha256 must be set to the literal string** UNSIGNED-PAYLOAD.
        at http://localhost:3000/static/js/1.chunk.js:91237:42
        at step (http://localhost:3000/static/js/1.chunk.js:318206:17)
        at Object.next (http://localhost:3000/static/js/1.chunk.js:318137:14)
        at fulfilled (http://localhost:3000/static/js/1.chunk.js:318092:24)

      [1]: https://i.stack.imgur.com/4heUC.png