-
Notifications
You must be signed in to change notification settings - Fork 42
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
How can i help migrate this package for support flutter web? #20
Comments
HI, thank you for wanting to help. To make google_speech available for web, it is necessary to use grpc for web. The current implementation of grpc (https://pub.dev/packages/grpc) does not support web. The protocols of grpc-web are very different from grpc-dart, so a simple port is not so easy. I have seen that in the current grpc-dart master branch an interface has been created that connects grpc-web and grpc-dart. Maybe this is a first starting point. Unfortunately, I have not been able to get it to work on web yet. If you don't need streaming support for your web project, it might also be possible to switch to the following package: https://pub.dev/packages/googleapis |
Another idea would be to abandon streaming support for web for now. I haven't found a package that supports streaming on the web yet anyway. Then you could use the Api version of Google Speech for web. If that would be a solution, I could try to implement it. |
Hi Felix, thanks for your reply, and sorry for my late reply.. i had personal problems, btw i also tried grpc-web interface, but thats not simple work to do. What about APi Version how that could be possible ? count on me on any efforts |
The problem with grpc-web is requirement of proxy to make it work. But that's not what we wish while using package like this :/ |
i got grpc-web working for flutter web 2 years ago. it works fine. https://github.com/amplify-edge/sys-share has working example. |
Hi @felixjunghans, seeing what @gedw99 just commented is there a light at the end of the tunnel after all? |
Hello Folks, project is more then a year frozen because i was not able to make it work for web :( i will have a check with the commment of @gedw99 , but in order to add this supporte, we will need to make a task force in order to proceed in advancements, thanks for your mutual interest. @gedw99 we need a backend in order to make it work ? thats the path of usage of grpc-web right ? |
You need envoy or the golang GRPC- Web project if I recall. |
Here is the main.go that kicks off the backend https://github.com/amplify-edge/main/blob/master/deploy/templates/maintemplatev2/server_commands.go github.com/improbable-eng/grpc-web/go/grpcweb Is what does the magic to make GRPC-web work with needed envoy of GRPC gateway. under the hood , for web, flutter and golang use web sockets. i stopped using flutter 2 years ago and now use GIO for portable gui btw. If you want more info just yell |
Thanks @gedw99. There is now a new Branch called https://github.com/felixjunghans/google_speech/tree/web-example . In the sample folder there is a project called audio_file_example. This should now be able to be launched on the web. Unfortunately I can't connect to Google's Speech API at the moment. If someone finds the bug, feel free to create a PR. |
@felixjunghans , for CORS errors, check the headers of request: other way: syour request to a proxy, or create a own proxy . |
Well, I noticed that the package used for streaming the voice input is |
@alaincruz06 In audio_file_example I don't use any streaming packages at all. There is an audio file in the assets folder which should be opened and transcribed. |
My bad, I was trying out mic_stream_example |
Any updates on this @felixjunghans @menezes85 ?
|
@alaincruz06 @felixjunghans I am getting the same error:
|
Hello Felix, thanks for this awesome work, i really wang to help you migrate this project for flutter web, how can i help? i have a request on my app to run on web and without this package the project is freeze, i realy apreciate your return
The text was updated successfully, but these errors were encountered: