Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
prashanthsridhar opened this issue Nov 5, 2019 · 26 comments · Fixed by #2960
Assignees
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete. p0 Must Fix. Release-blocker

Comments

@prashanthsridhar
Copy link

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 prashanthsridhar added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. Pending customer-reported Required for internal Azure reporting. Do not delete. labels Nov 5, 2019
@corinagum
Copy link
Contributor

corinagum commented Nov 5, 2019

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 corinagum added the customer-replied-to Required for internal reporting. Do not delete. label Nov 5, 2019
@corinagum corinagum self-assigned this Nov 5, 2019
@prashanthsridhar
Copy link
Author

prashanthsridhar commented Nov 6, 2019

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

@corinagum corinagum added the needs-repro Waiting for repro or investigation label Nov 6, 2019
@corinagum corinagum assigned compulim and unassigned corinagum Nov 6, 2019
@corinagum
Copy link
Contributor

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

@corinagum corinagum assigned corinagum and compulim and unassigned compulim and corinagum Nov 6, 2019
@prashanthsridhar
Copy link
Author

prashanthsridhar commented Nov 7, 2019

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 .

@cwhitten cwhitten added the R7 label Nov 7, 2019
@corinagum corinagum removed the Pending label Nov 7, 2019
@mountju
Copy link

mountju commented Nov 21, 2019

have the same issue

@prashanthsridhar
Copy link
Author

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

@corinagum corinagum self-assigned this Dec 2, 2019
@corinagum corinagum changed the title Custom voice is getting picked up in text box but not displayed in the chat history Custom speech is getting picked up in text box but not displayed in the chat history Dec 5, 2019
@corinagum
Copy link
Contributor

@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 corinagum changed the title Custom speech is getting picked up in text box but not displayed in the chat history Custom voice (or speech?) is getting picked up in text box but not displayed in the chat history Dec 6, 2019
@corinagum corinagum removed the R7 label Dec 7, 2019
@corinagum
Copy link
Contributor

@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. :)

@prashanthsridhar
Copy link
Author

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

@TechieWithBeard
Copy link

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

@corinagum
Copy link
Contributor

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

@TechieWithBeard
Copy link

@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??

@manish-95
Copy link

manish-95 commented Dec 12, 2019

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
Copy link

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.

@TechieWithBeard
Copy link

TechieWithBeard commented Dec 13, 2019

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

@prashanthsridhar
Copy link
Author

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

@corinagum
Copy link
Contributor

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

@cwhitten cwhitten added p0 Must Fix. Release-blocker and removed needs-repro Waiting for repro or investigation labels Jan 2, 2020
@corinagum
Copy link
Contributor

Investigating this now! Hope to have updates soon.

@corinagum
Copy link
Contributor

Update: I have a repro of this problem and am hunting around looking for the source code. :) thanks for your patience!

@corinagum corinagum assigned compulim and unassigned corinagum Jan 9, 2020
@corinagum
Copy link
Contributor

I'm reassigning this to @compulim. I believe the fix is going to be in his package: https://github.com/compulim/web-speech-cognitive-services

@corinagum corinagum removed their assignment Jan 13, 2020
@compulim
Copy link
Contributor

This is still scheduled for R8. Please stay tuned.

@compulim
Copy link
Contributor

Working on this one now. Repro on 4.7.1 and latest [email protected].

@compulim
Copy link
Contributor

This bug is same as the one mentioned in our FAQs (#1961), i.e. speech will fail on Web Chat 4.6 when running under Angular, due to an unresolved bug in Angular that opened since 2016.

I have create a new bug with workaround steps, along with background and "how to fix".

Please follow the workaround steps in #2957.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete. p0 Must Fix. Release-blocker
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants