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 API: enableWordTimeOffsets = true not working for streamingRecognize #2793

Closed
bloodcarter opened this issue Jan 16, 2018 · 1 comment
Assignees
Labels
api: speech Issues related to the Speech-to-Text API. type: question Request for information or clarification. Not an issue.

Comments

@bloodcarter
Copy link

enableWordTimeOffsets option yelds empty "words" array at least for streamingRecognize and al least for Russian.

Env:

Code:

var recognizeStream = Speech.streamingRecognize(
    {
      config: {
        enableWordTimeOffsets: true,
        encoding: self.inputFormat.encoding,
        sampleRateHertz: self.inputFormat.sampleRate,
        languageCode: "ru-RU"
      },
      singleUtterance: false,
      interimResults: true
    }
  );

recognizeStream.on('data', (data)=>{...});
@stephenplusplus
Copy link
Contributor

Closing in favor of googleapis/nodejs-speech#15

@stephenplusplus stephenplusplus added type: question Request for information or clarification. Not an issue. api: speech Issues related to the Speech-to-Text API. labels Jan 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: speech Issues related to the Speech-to-Text API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants