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

Can't recognize data in MULAW format feeded via RTP (during SIP call) #279

Closed
bloodcarter opened this issue Dec 21, 2016 · 1 comment
Closed
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@bloodcarter
Copy link

I'm trying to feed the raw data from RTP session into Speech API using createRecognizeStream() like this:

py.stdout.pipe(speechClient.createRecognizeStream({
                                            config: {
                                              encoding: 'MULAW',
                                              sampleRate: 8000,
                                              languageCode: "ru-RU",
                                            },
                                            singleUtterance: false,
                                            interimResults: false
                                          }))
                                          .on('error', console.error)
                                          .on('data', function(data) {
                                            console.log("APIdata:");  
                                            console.log(data);
                                          });

stdout contains raw data from RTP in PCMU/8000 format. As I understood this means it's in MULAW format. But I get results like:

APIdata:
{ error: null,
  results: '',
  resultIndex: 0,
  endpointerType: 'END_OF_SPEECH' }

Maybe PCMU/8000 and your MULAW are not quite the same thing or what? This is not nodejs specific question, rather a general Speech API question.

@bloodcarter bloodcarter changed the title Couldn't recognize data in MULAW format feeded via RTP (during SIP call) Can't recognize data in MULAW format feeded via RTP (during SIP call) Dec 21, 2016
@jmdobry
Copy link
Member

jmdobry commented Dec 21, 2016

This is not nodejs specific question, rather a general Speech API question.

In that case, can you post your question on the official Google Cloud Speech API mailing list?

@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 6, 2020
pattishin pushed a commit that referenced this issue Nov 18, 2022
🤖 I have created a release *beep* *boop*
---


## [1.18.0](googleapis/nodejs-ai-platform@v1.17.0...v1.18.0) (2022-03-17)


### Features

* add `service_account` to `BatchPredictionJob` in aiplatform `v1beta1` `batch_prediction_job.proto` ([#278](googleapis/nodejs-ai-platform#278)) ([1f05428](googleapis/nodejs-ai-platform@1f05428))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
pattishin pushed a commit that referenced this issue Nov 22, 2022
🤖 I have created a release *beep* *boop*
---


## [1.18.0](googleapis/nodejs-ai-platform@v1.17.0...v1.18.0) (2022-03-17)


### Features

* add `service_account` to `BatchPredictionJob` in aiplatform `v1beta1` `batch_prediction_job.proto` ([#278](googleapis/nodejs-ai-platform#278)) ([1f05428](googleapis/nodejs-ai-platform@1f05428))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants