Skip to content

browser microphone streaming throgh websocketin StreamingRecognizieClient.java #556

Closed

Description

@manjunaras

In which file did you encounter the issue?

https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/speech/grpc/src/main/java/com/examples/cloud/speech/StreamingRecognizeClient.java

Did you change the file? If so, how?

No

Describe the issue

In StreamingRecognizeClient.java need to replace getAudioInputLine() with audio stream PCM samples coming from browser microphone through websocket.

Activity

  1. changed the title [-]replace browser microphone streaming in StreamingRecognizieClient.java[/-] [+]browser microphone streaming throgh websocketin StreamingRecognizieClient.java[/+] on Mar 9, 2017
  2. jerjou commented on Mar 13, 2017

    @jerjou
    Contributor

    Hello! Thanks for the feedback. We're trying to keep the samples in this repo as simple as practical to accomplish the task we're trying to teach (in this case, communicating with the Speech API with streaming audio). Adding websockets isn't applicable to all use cases, so probably not appropriate for this repo.

    That said, we have a codelab that covers this, which also has a corresponding repo with a sample solution that implements what you describe. Specifically, see TranscribeSocket.java, which listens on a websocket for data, that it then forwards to the Speech API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions