BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

Custom voice (or speech?) is getting picked up in text box but not displayed in the chat history

Open prashanthsridhar opened this issue 7 years ago • 26 comments

Screenshots

image

Describe the bug

whatever the user says is being captured in the input text box but it's not being propagated to the chat window.

prashanthsridhar avatar Nov 05 '19 09:11 prashanthsridhar

Please use our bug report template to provide the information we will need in order to help you.

What, if any, are your console errors?

corinagum avatar Nov 05 '19 17:11 corinagum

Hi Corina, steps to reproduce: The snippet is as folows:

selectVoice: () => ({ voiceURI: 'sample' }),
            webSpeechPonyfillFactory: await this.WebChat.createCognitiveServicesSpeechServicesPonyfillFactory({
                region: 'westus2',
                speechSynthesisDeploymentId: 'sample',
                subscriptionKey: 'sample'
 })

Console output image

prashanthsridhar avatar Nov 06 '19 14:11 prashanthsridhar

@compulim assigning to you (since I don't have a custom voice to test with xD)

corinagum avatar Nov 06 '19 18:11 corinagum

Additional Information

botConnection:-

const botConnection = new this.WebChat.createDirectLine({
            token:"123123",
            webSocket: true,
            styleOptions:styleOptions
        });

verbatim code without keys:

this.WebChat.renderWebChat({            
            styleOptions: {
                bubbleFromUserBackground: '#F16236',
                bubbleFromUserTextColor: 'White',
            },
            directLine: botConnection,
            language: 'en-GB',
            chatTitle: false,
            userID: "user",
            name: "user",
            sender: "user",    
            receiver: "user",
            selectVoice: () => ({ voiceURI: 'name' }),
            webSpeechPonyfillFactory: await this.WebChat.createCognitiveServicesSpeechServicesPonyfillFactory({
                region: 'westus2',
                speechRecognitionEndpointId: '12123123123123213',
                speechSynthesisDeploymentId: '12312312312312312',
                subscriptionKey: '123123123123'
            })            
        },
            this.botWindowElement.nativeElement
        );

Description:

We are using custom speech and whatever we say is getting picked up and displayed in the text area, but it is not going to the chat window. If we type the text and hit enter it moves to the chat window .

prashanthsridhar avatar Nov 07 '19 07:11 prashanthsridhar

have the same issue

mountju avatar Nov 21 '19 12:11 mountju

Hi @compulim, this is a major blocker for us. It will be really helpful if this is picked up ASAP.

prashanthsridhar avatar Nov 27 '19 11:11 prashanthsridhar

@prashanthsridhar, sorry for the delay. I've managed to test both custom voice and custom speech and do not encounter any errors. Could you provide more detail about your Cognitive Services set up so that we can try to reproduce the problem? First it would be great if you could clarify which is causing you issues, since your bug reports custom voice originally, but you are using both in your example code.

Do you have a deployed source that I could take a look at?

corinagum avatar Dec 06 '19 21:12 corinagum

Hi @corinagum, we are using both.The issue that we faced was with custom speech.I'm not sure if this issue was fixed in the current sprint. The issue exists in the latest version of webchat. My cognitive services setup is as mentioned above. I can verify and validate with the recent nightly build if i can get access to it. When you verified it,did you use an angular app or a webpage? We are facing the issue when we tried it in an angular app.

prashanthsridhar avatar Dec 07 '19 04:12 prashanthsridhar

Hi @mountju , did you get a workaround or are you still facing the issue? Are you using it in an angular app as well?

prashanthsridhar avatar Dec 09 '19 11:12 prashanthsridhar

Hi @mountju , did you get a workaround or are you still facing the issue? Are you using it in an angular app as well?

hi @prashanthsridhar
I'm using it in Angular App as well

mountju avatar Dec 09 '19 12:12 mountju

@prashanthsridhar it would be great if you could check out the latest bits. Please check out our Contributing.md guidelines, which will tell you have to build the project. After you run npm build, you can take out the webchat file from packages/bundle/dist/ and link that in your app to test latest bits.

Since you are both using Angular, we'll add that to the list of possible reasons that this bug is occurring. Please let me know the results of testing on latest bits, and we will go from there. :)

corinagum avatar Dec 09 '19 18:12 corinagum

Hi @corinagum ,i compiled the js file from the repo and used it in my app. The issue still exists.

prashanthsridhar avatar Dec 10 '19 13:12 prashanthsridhar

I'm also facing the same issue, compiled the js file from the repo and used it in my app.

TechieWithBeard avatar Dec 11 '19 09:12 TechieWithBeard

Thanks for reporting. @vishnuramero, are you also using an Angular App?

corinagum avatar Dec 11 '19 21:12 corinagum

@corinagum yes, the same issue, pure HTML file works but when I'm trying to integrate with angular speech to text is not working, it's recognizing the voice but not sending anything. is there any fix??

TechieWithBeard avatar Dec 12 '19 10:12 TechieWithBeard

Hi, I am attempting the same in my Angular App using the sample provided in 03.b.host-with-angular. To this sample, I have tried to use my Azure Cognitive Service Speech subscription key to add Speech and voice capabilities following the instructions provided here.

Although the speech to text service is activated and I am able to see the recognized text in my message window, the same is not sent to the Bot. Attaching a screenshot with the error that I see in the console window, with this setup.

MicrosoftTeams-image

manish-95 avatar Dec 12 '19 14:12 manish-95

Update: I have tried the same setup, but with Browser Speech instead of Cognitive Services, and I am able to see that the message picked up by STT is sent to the Bot successfully.

manish-95 avatar Dec 12 '19 14:12 manish-95

did a patchwork, works fine for me changed "webchat.js" file a bit.

created a new array and pushed the data from speech to the array.

botchatCodeFix

TechieWithBeard avatar Dec 13 '19 11:12 TechieWithBeard

@corinagum will this be added in a release or patch?

prashanthsridhar avatar Jan 02 '20 10:01 prashanthsridhar

@prashanthsridhar at this time there's no plan for a patch. Unfortunately we still have to investigate the fix :/

corinagum avatar Jan 02 '20 17:01 corinagum