Skip to content

Conversation

@jmdobry
Copy link
Contributor

@jmdobry jmdobry commented Sep 26, 2016

My initial attempt at using the autogen layer in the handwritten layer. I have a concern:

It would appear that gax-nodejs does not translate camel case option names into the snake case names defined the proto. Where sampleRate worked before, thy tests for recognize and createRecognitionStream started failing until I switched it to sample_rate.

Other than that it seems to work fine.

I found some other gax-nodejs usability issues with pagination that don't apply here.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 26, 2016
@stephenplusplus stephenplusplus added the api: speech Issues related to the Speech-to-Text API. label Sep 26, 2016
@stephenplusplus
Copy link
Contributor

stephenplusplus commented Sep 26, 2016

// @jmuk

Is it possible to update gax-nodejs to expect camelcase args instead of snake? JS convention is generally camelcase. These are the options we had to provide to grpc to enable this: https://github.com/GoogleCloudPlatform/google-cloud-node/blob/95881d2a83904be5f2e4ebc24ee93369db212ac4/packages/common/src/grpc-service.js#L755

};

common.GrpcService.call(this, config, options);
this.api = new v1beta1(options).speechApi();

This comment was marked as spam.

This comment was marked as spam.

};

common.GrpcService.call(this, config, options);
this.api = {

This comment was marked as spam.

This comment was marked as spam.


common.GrpcService.call(this, config, options);
this.api = {
speechApi: v1beta1(options).speechApi()

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@stephenplusplus
Copy link
Contributor

Just adding the don't merge while we wait to see if we can stick to 🐫 💼 .

@stephenplusplus
Copy link
Contributor

I found some other gax-nodejs usability issues with pagination that don't apply here.

Anything to call out here, or are you going to file something somewhere else?

@jmdobry
Copy link
Contributor Author

jmdobry commented Sep 26, 2016

Regarding camel case, it looks like gax-nodejs might need to be updated to output code that passes { convertFieldsToCamelCase: true } here: https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/packages/speech/src/v1beta1/speech_api.js#L220

Regarding pagination, will file elsewhere.

@stephenplusplus
Copy link
Contributor

There's a new release of gax out (0.7.0) which camelCases and upgrades to [email protected]. I believe we're now just waiting on the API files to be generated.

@jmdobry
Copy link
Contributor Author

jmdobry commented Sep 28, 2016

I'll wait for that PR to be merged then.

@stephenplusplus
Copy link
Contributor

The PR with the re-generated files has been merged.

};

self.request(protoOpts, reqOpts, function(err, apiResponse) {
self.api.Speech.syncRecognize(config, foundFile, function(err, apiResponse) {

This comment was marked as spam.

This comment was marked as spam.

@jmdobry
Copy link
Contributor Author

jmdobry commented Sep 28, 2016

Updated

@googlebot googlebot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Sep 28, 2016
@stephenplusplus stephenplusplus added cla: yes This human has signed the Contributor License Agreement. and removed don't merge cla: no This human has *not* signed the Contributor License Agreement. labels Sep 28, 2016
@stephenplusplus stephenplusplus merged commit 0f8d832 into googleapis:master Sep 28, 2016
@jmdobry jmdobry deleted the gax-speech branch September 28, 2016 17:36
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 216b575 on jmdobry:gax-speech into 96b845b on GoogleCloudPlatform:master.

sofisl pushed a commit that referenced this pull request Jan 24, 2023
sofisl pushed a commit that referenced this pull request Jan 25, 2023
miguelvelezsa pushed a commit that referenced this pull request Jul 23, 2025
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [jackspeak](https://togithub.com/isaacs/jackspeak) | [`3.4.0` -> `3.4.3`](https://renovatebot.com/diffs/npm/jackspeak/3.4.0/3.4.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/jackspeak/3.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/jackspeak/3.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/jackspeak/3.4.0/3.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/jackspeak/3.4.0/3.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>isaacs/jackspeak (jackspeak)</summary>

### [`v3.4.3`](https://togithub.com/isaacs/jackspeak/compare/v3.4.2...v3.4.3)

[Compare Source](https://togithub.com/isaacs/jackspeak/compare/v3.4.2...v3.4.3)

### [`v3.4.2`](https://togithub.com/isaacs/jackspeak/compare/v3.4.1...v3.4.2)

[Compare Source](https://togithub.com/isaacs/jackspeak/compare/v3.4.1...v3.4.2)

### [`v3.4.1`](https://togithub.com/isaacs/jackspeak/compare/v3.4.0...v3.4.1)

[Compare Source](https://togithub.com/isaacs/jackspeak/compare/v3.4.0...v3.4.1)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gax-nodejs).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
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. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants