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

Google Speech-To-Text with Web-Chat #2126

Closed
mamhh opened this issue Jun 27, 2019 · 7 comments
Closed

Google Speech-To-Text with Web-Chat #2126

mamhh opened this issue Jun 27, 2019 · 7 comments
Labels
question Further information is requested. Stack Overflow candidate

Comments

@mamhh
Copy link

mamhh commented Jun 27, 2019

How Can we use (Google Speech-To-Text) with WebChat instead of MS cognitive speech services?

@compulim
Copy link
Contributor

Web Chat can be used with any speech engine that has a client library that conforms to W3C Web Speech API standard.

Looking at this Google Cloud Speech doc, they currently do not have any client libraries that works in browser.

They do have a client library for Node.js called @google-cloud/speech, but it doesn't looks conform to W3C Web Speech API and might not work with browser because their underlying google-gax library probably only works with Node.js. So porting that library to browser doesn't sounds very feasible.

So, the easiest path, you will need to build a client library for Google Cloud Speech, by bridging between their REST API and W3C Web Speech API.

After you have create the W3C-based client library, then you can easily plug it into Web Chat.

@compulim compulim added the question Further information is requested. Stack Overflow candidate label Jun 27, 2019
@mamhh
Copy link
Author

mamhh commented Jun 27, 2019

Web Chat can be used with any speech engine that has a client library that conforms to W3C Web Speech API standard.

Looking at this Google Cloud Speech doc, they currently do not have any client libraries that works in browser.

They do have a client library for Node.js called @google-cloud/speech, but it doesn't looks conform to W3C Web Speech API and might not work with browser because their underlying google-gax library probably only works with Node.js. So porting that library to browser doesn't sounds very feasible.

So, the easiest path, you will need to build a client library for Google Cloud Speech, by bridging between their REST API and W3C Web Speech API.

After you have create the W3C-based client library, then you can easily plug it into Web Chat.

Thanks a lot ... could you please provide me with a sample implementation of W3C Web Speech API standard .. that will be great support

@compulim
Copy link
Contributor

Web Chat use this adapter to bridge between Azure Cognitive Services client library for JavaScript in a browser, and the Web Speech API. It is a bit easier in our case because the client library of Azure Cognitive Services supports browser, but Google Cloud Speech don't.

This adapter handles both speech-to-text and text-to-speech scenarios. For speech-to-text, it use Azure Cognitive Services client library. For text-to-speech, it use Cognitive Services REST API directly.

Web Chat supports hybrid engine for Web Speech API. So you can configure Web Chat to use your Google Cloud Speech adapter for speech-to-text, and browser speech or Cognitive Services for text-to-speech. You can pick the best of the world based on your scenario. 😉

@mamhh
Copy link
Author

mamhh commented Jul 1, 2019

@compulim Could you please help me on this ..(you will need to build a client library for Google Cloud Speech, by bridging between their REST API and W3C Web Speech API.)

@corinagum
Copy link
Contributor

'How to' questions such as this one are better suited for Stack Overflow. Please feel free to post other questions you have about developing your own features over there so the community at large may help out. If you need help with a Web Chat implementation, you can post a question to the Web Chat tag. Thank you!

Please share the link to your Stack Overflow question on this issue. The Web Chat team will close this issue after a week or when the Stack Overflow link has been added.

@mamhh
Copy link
Author

mamhh commented Jul 1, 2019

'How to' questions such as this one are better suited for Stack Overflow. Please feel free to post other questions you have about developing your own features over there so the community at large may help out. If you need help with a Web Chat implementation, you can post a question to the Web Chat tag. Thank you!

Please share the link to your Stack Overflow question on this issue. The Web Chat team will close this issue after a week or when the Stack Overflow link has been added.

@corinagum @compulim
Well.. I've conceptually primitive question about WebChat.. why did you divide all components into node JS packages ??
Shouldn't everything be simple pure javascript?? WebChat is all about UI/logic running within browser environment..this is really confusing me !!
It will be great if you explain the concept for me ..

@corinagum
Copy link
Contributor

I believe @tdurnford answered your questions on #2123 (comment)

I recommend further questions like these be brought to Stack Overflow. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested. Stack Overflow candidate
Projects
None yet
Development

No branches or pull requests

4 participants