Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@google-cloud/speech

googleapis333.5kApache-2.07.0.1TypeScript support: included

Cloud Speech Client Library for Node.js

google apis client, google api client, google apis, google api, google, google cloud platform, google cloud, cloud, google speech, speech, Google Cloud Speech API

readme

Google Cloud Platform logo

Cloud Speech: Node.js Client

release level npm version

Cloud Speech Client Library for Node.js

A comprehensive list of changes in each version may be found in the CHANGELOG.

Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.

Table of contents:

Quickstart

Before you begin

  1. Select or create a Cloud Platform project.
  2. Enable the Cloud Speech API.
  3. Set up authentication with a service account so you can access the API from your local workstation.

Installing the client library

npm install @google-cloud/speech

Using the client library

// Imports the Google Cloud client library
const speech = require('@google-cloud/speech');

// Creates a client
const client = new speech.SpeechClient();

async function quickstart() {
  // The path to the remote LINEAR16 file
  const gcsUri = 'gs://cloud-samples-data/speech/brooklyn_bridge.raw';

  // The audio file's encoding, sample rate in hertz, and BCP-47 language code
  const audio = {
    uri: gcsUri,
  };
  const config = {
    encoding: 'LINEAR16',
    sampleRateHertz: 16000,
    languageCode: 'en-US',
  };
  const request = {
    audio: audio,
    config: config,
  };

  // Detects speech in the audio file
  const [response] = await client.recognize(request);
  const transcription = response.results
    .map(result => result.alternatives[0].transcript)
    .join('\n');
  console.log(`Transcription: ${transcription}`);
}
quickstart();

Samples

Samples are in the samples/ directory. Each sample's README.md has instructions for running its sample.

Sample Source Code Try it
Adaptation.create_custom_class source code Open in Cloud Shell
Adaptation.create_phrase_set source code Open in Cloud Shell
Adaptation.delete_custom_class source code Open in Cloud Shell
Adaptation.delete_phrase_set source code Open in Cloud Shell
Adaptation.get_custom_class source code Open in Cloud Shell
Adaptation.get_phrase_set source code Open in Cloud Shell
Adaptation.list_custom_classes source code Open in Cloud Shell
Adaptation.list_phrase_set source code Open in Cloud Shell
Adaptation.update_custom_class source code Open in Cloud Shell
Adaptation.update_phrase_set source code Open in Cloud Shell
Speech.long_running_recognize source code Open in Cloud Shell
Speech.recognize source code Open in Cloud Shell
Speech.streaming_recognize source code Open in Cloud Shell
Adaptation.create_custom_class source code Open in Cloud Shell
Adaptation.create_phrase_set source code Open in Cloud Shell
Adaptation.delete_custom_class source code Open in Cloud Shell
Adaptation.delete_phrase_set source code Open in Cloud Shell
Adaptation.get_custom_class source code Open in Cloud Shell
Adaptation.get_phrase_set source code Open in Cloud Shell
Adaptation.list_custom_classes source code Open in Cloud Shell
Adaptation.list_phrase_set source code Open in Cloud Shell
Adaptation.update_custom_class source code Open in Cloud Shell
Adaptation.update_phrase_set source code Open in Cloud Shell
Speech.long_running_recognize source code Open in Cloud Shell
Speech.recognize source code Open in Cloud Shell
Speech.streaming_recognize source code Open in Cloud Shell
Speech.batch_recognize source code Open in Cloud Shell
Speech.create_custom_class source code Open in Cloud Shell
Speech.create_phrase_set source code Open in Cloud Shell
Speech.create_recognizer source code Open in Cloud Shell
Speech.delete_custom_class source code Open in Cloud Shell
Speech.delete_phrase_set source code Open in Cloud Shell
Speech.delete_recognizer source code Open in Cloud Shell
Speech.get_config source code Open in Cloud Shell
Speech.get_custom_class source code Open in Cloud Shell
Speech.get_phrase_set source code Open in Cloud Shell
Speech.get_recognizer source code Open in Cloud Shell
Speech.list_custom_classes source code Open in Cloud Shell
Speech.list_phrase_sets source code Open in Cloud Shell
Speech.list_recognizers source code Open in Cloud Shell
Speech.recognize source code Open in Cloud Shell
Speech.streaming_recognize source code Open in Cloud Shell
Speech.undelete_custom_class source code Open in Cloud Shell
Speech.undelete_phrase_set source code Open in Cloud Shell
Speech.undelete_recognizer source code Open in Cloud Shell
Speech.update_config source code Open in Cloud Shell
Speech.update_custom_class source code Open in Cloud Shell
Speech.update_phrase_set source code Open in Cloud Shell
Speech.update_recognizer source code Open in Cloud Shell
Quickstart source code Open in Cloud Shell

The Cloud Speech Node.js Client API Reference documentation also contains samples.

Supported Node.js Versions

Our client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js. If you are using an end-of-life version of Node.js, we recommend that you update as soon as possible to an actively supported LTS version.

Google's client libraries support legacy versions of Node.js runtimes on a best-efforts basis with the following warnings:

  • Legacy versions are not tested in continuous integration.
  • Some security patches and features cannot be backported.
  • Dependencies cannot be kept up-to-date.

Client libraries targeting some end-of-life versions of Node.js are available, and can be installed through npm dist-tags. The dist-tags follow the naming convention legacy-(version). For example, npm install @google-cloud/speech@legacy-8 installs client libraries for versions compatible with Node.js 8.

Versioning

This library follows Semantic Versioning.

This library is considered to be stable. The code surface will not change in backwards-incompatible ways unless absolutely necessary (e.g. because of critical security issues) or with an extensive deprecation period. Issues and requests against stable libraries are addressed with the highest priority.

More Information: Google Cloud Platform Launch Stages

Contributing

Contributions welcome! See the Contributing Guide.

Please note that this README.md, the samples/README.md, and a variety of configuration files in this repository (including .nycrc and tsconfig.json) are generated from a central template. To edit one of these files, make an edit to its templates in directory.

License

Apache Version 2.0

See LICENSE

changelog

Changelog

npm history

7.0.1 (2025-03-19)

Bug Fixes

  • [Many APIs] await/catch promises, and update listOperationsAsync return type (#6188) (a73cdbf)
  • deps: Update dependency proto3-json-serializer to v3 (#6131) (73110e2)

7.0.0 (2025-03-18)

⚠ BREAKING CHANGES

  • upgrade to Node 18 (#6096)

Features

  • Add request/response debug logging to gapics, update templates to gax 5 and node 18 (#1671) (eed00f4)

Bug Fixes

  • Add json files to tsconfig templates (#1692) (ba6be1d) (eed00f4)

Miscellaneous Chores

6.7.1 (2025-02-12)

Bug Fixes

  • [Many APIs] finalize fixing typings for headers in generator (#6018) (9dc5856)

6.7.0 (2024-07-22)

Features

6.6.1 (2024-06-21)

Bug Fixes

  • Avoid unhandled exception on streamingRecognize (#5465) (30aef59)

6.6.0 (2024-05-21)

Features

  • [Many APIs] update Nodejs generator to send API versions in headers for GAPICs (#5351) (01f48fc)
  • [Many APIs] update Nodejs generator to send API versions in headers for GAPICs (#5354) (a9784ed)
  • [Many APIs] update Nodejs generator to send API versions in headers for GAPICs (#5355) (19f9d6d)

6.5.0 (2024-04-05)

Features

  • Add translation_config in RecognitionConfig message (#5216) (c86ddd0)

6.4.0 (2024-03-29)

Features

  • [Many APIs] add several fields to manage state of database encryption update (#5191) (57567db)

6.3.0 (2024-02-22)

Features

  • Add API for writing BatchRecognize transcripts in SRT and VTT formats (#5062) (6f3ab04)

6.2.0 (2024-02-09)

Features

  • Trusted Private Cloud support, use the universeDomain parameter (#5027) (88763bb)

6.1.1 (2024-01-23)

Bug Fixes

  • [Many APIs] improve retry logic for streaming API calls (#4967) (2b436da)

6.1.0 (2023-11-03)

Features

  • Support MP3, TranscriptNormalization and SpeakerLabels in STT V1 API (#4775) (10e783c)

6.0.2 (2023-09-06)

Bug Fixes

  • [Many APIs] simplify logic for HTTP/1.1 REST fallback option (#4588) (e5ad564)
  • deps: Update dependency google-proto-files to v4 (#4548) (892810a)

6.0.1 (2023-08-09)

Bug Fixes

  • deps: Update dependency proto3-json-serializer to v2 (#4523) (da600c6)

6.0.0 (2023-08-06)

⚠ BREAKING CHANGES

  • migrate to Node 14 (#4443)

Bug Fixes

Miscellaneous Chores

5.6.0 (2023-07-11)

Features

  • Add model and language_codes fields in RecognitionConfig message + enable default _ recognizer (#4395) (99d5324)

5.5.1 (2023-06-28)

Bug Fixes

5.5.0 (2023-05-11)

Features

  • Add processing strategy to batch recognition requests (#4268) (8b5caeb)

5.4.1 (2023-04-13)

Bug Fixes

5.4.0 (2023-02-28)

Features

  • Voice Activity Detection: adding speech event time and speech event type (#4020) (c66276d)

5.3.1 (2023-02-15)

Bug Fixes

  • [Many APIs] changing format of the jsdoc links (#3989) (95399f7)

5.3.0 (2023-01-28)

Features

  • Added SuggestConversationSummary RPC (#978) (a4a17b4)

5.2.0 (2023-01-20)

Features

  • Added SuggestConversationSummary RPC (#978) (f1fc857)

5.1.1 (2022-12-19)

Bug Fixes

5.1.0 (2022-09-30)

Features

Note: the v2 API is not enabled yet, it will be enabled within a few weeks. The v1 version is still the default at this moment. We'll switch the default to v2 in the next major release of the library.

5.0.3 (2022-09-22)

Bug Fixes

  • Preserve default values in x-goog-request-params header (#928) (ea654b5)

5.0.2 (2022-09-01)

Bug Fixes

  • Allow passing gax instance to client constructor (#924) (758a28a)
  • Do not import the whole google-gax from proto JS (#1553) (#923) (c300569)

5.0.1 (2022-08-23)

Bug Fixes

  • better support for fallback mode (#918) (7cf922a)
  • change import long to require (#920) (375a9b0)
  • deps: do not depend on protobufjs; bump dep in samples (#911) (02c3fb7)
  • deps: update dependency @google-cloud/common to v4 (#896) (3bdda3f)
  • deps: update dependency @google-cloud/storage to v6 (#893) (738c538)
  • deps: update dependency google-proto-files to v3 (#900) (557a2f0)
  • deps: update dependency proto3-json-serializer to v1 (#890) (697ca5c)
  • remove pip install statements (#1546) (#922) (8699490)

5.0.0 (2022-06-24)

⚠ BREAKING CHANGES

  • update library to use Node 12 (#891)

Build System

4.10.2 (2022-05-02)

Bug Fixes

4.10.1 (2022-04-11)

Bug Fixes

  • use full link in comment to fix JSDoc broken link (#851) (1f34087)

4.10.0 (2022-01-17)

Features

  • add alternative_language_codes to RecognitionConfig (#824) (f5cfad6)
  • add hint boost in SpeechContext (f5cfad6)
  • add result_end_time to SpeechRecognitionResult (#825) (11363fe)
  • add SpeechAdaptation configuration (f5cfad6)
  • add spoken punctuation and spoken emojis (f5cfad6)
  • add WEBM_OPUS codec (f5cfad6)
  • add word confidence (f5cfad6)

Bug Fixes

4.9.0 (2021-09-20)

Features

4.8.1 (2021-09-10)

Bug Fixes

4.8.0 (2021-08-23)

Features

  • turns on self-signed JWT feature flag (#794) (8e655cd)

4.7.0 (2021-08-19)

Features

4.6.1 (2021-08-17)

Bug Fixes

4.6.0 (2021-08-10)

Features

  • add total_billed_time response field (#787) (171cba0)

4.5.6 (2021-08-02)

Bug Fixes

4.5.5 (2021-07-21)

Bug Fixes

  • Updating WORKSPACE files to use the newest version of the Typescript generator. (#777) (8911be0)

4.5.4 (2021-07-12)

Bug Fixes

4.5.3 (2021-06-29)

Bug Fixes

4.5.2 (2021-05-25)

Bug Fixes

  • GoogleAdsError missing using generator version after 1.3.0 (#755) (0f612f3)

4.5.1 (2021-05-20)

Bug Fixes

4.5.0 (2021-04-29)

Features

  • Support for spoken punctuation and spoken emojis (#737) (1a30de0)

Bug Fixes

4.4.0 (2021-03-16)

Features

  • Support output transcript to GCS for LongRunningRecognize. (#708) (357e34d)

4.3.0 (2021-03-12)

Features

  • Support output transcript to GCS for LongRunningRecognize (#707) (11e2ec2)
  • v1p1beta1: support Model Adaptation (#703) (fbcc04b)

4.2.0 (2021-01-06)

Features

4.1.5 (2020-12-02)

Bug Fixes

  • browser: check for fetch on window (6378dc1)

4.1.4 (2020-11-06)

Bug Fixes

  • do not modify options object, use defaultScopes (#669) (eafbadd)

4.1.3 (2020-09-12)

Bug Fixes

  • deps: update dependency yargs to v16 (#646) (d208cf5)

4.1.2 (2020-09-01)

Bug Fixes

  • samples: end stream before destroying it (#611) (2b3a220)

4.1.1 (2020-07-06)

Bug Fixes

4.1.0 (2020-06-12)

Features

  • secrets: begin migration to secret manager from keystore (#605) (e3ac050)

Bug Fixes

4.0.0 (2020-05-15)

⚠ BREAKING CHANGES

  • The library now supports Node.js v10+. The last version to support Node.js v8 is tagged legacy-8 on NPM.

Features

Bug Fixes

  • deps: update dependency @google-cloud/common to v3 (#561) (ac55d63)
  • remove eslint, update gax, fix generated protos, run the generator (#573) (4be282e)
  • deps: update dependency @google-cloud/storage to v5 (#595) (076d0be)
  • deps: update dependency chalk to v4 (#567) (cda7977)
  • samples: use writable stream (#597) (8f73071)

3.6.0 (2020-02-04)

Features

  • created sample for speechcontext classes (#515) (69e9d28)

Bug Fixes

  • enum, bytes, and Long types now accept strings (9742189)

3.5.4 (2020-01-05)

Bug Fixes

  • better client close(), update .nycrc, require mocha explicitly (824e75c)
  • increase timeout from 20s to 60s (#490) (d822f90)

3.5.3 (2019-12-12)

Bug Fixes

  • added clarity around needing SoX for 'streamingMicRecognize' sample (edee8d2)

3.5.2 (2019-12-11)

Bug Fixes

  • make operationsClient and service stub public (0c22cd7)

3.5.1 (2019-12-05)

Bug Fixes

3.5.0 (2019-11-22)

In this release this library has been converted to TypeScript. This change is supposed to be compatible with the previous versions, but if you find that your code is broken by this change, please file an issue!

Features

Bug Fixes

  • deps: update dependency yargs to v15 (#469) (9e7d2e4)

3.4.0 (2019-11-14)

Features

  • samples: bump auto-punctuation sample to v1 and move diarization to v1 (#463) (ebcd0d3)
  • add support for speaker tag field (#466) (a027563)

Bug Fixes

  • docs: snippets are now replaced in jsdoc comments (#465) (e8c4269)

3.3.2 (2019-10-22)

Bug Fixes

  • deps: bump google-gax to 1.7.5 (#452) (3444982)
  • deps: update dependency @google-cloud/storage to v4 (#449) (98f5d6b)

3.3.1 (2019-10-09)

Bug Fixes

  • use compatible version of google-gax (14b96af)

3.3.0 (2019-09-16)

Bug Fixes

  • docs: stop linking reference documents to anchor (d54da3d)

Features

  • introduces speaker diarization configuration (8adb72a)
  • load protos from JSON, grpc-fallback support (3cc8989)

3.2.6 (2019-08-27)

Bug Fixes

  • deps: update dependency yargs to v14 (254e9d9)
  • use correct version for x-goog-api-client header (6fa0c13)

3.2.5 (2019-08-02)

Bug Fixes

  • allow calls with no request, add JSON proto (61349c0)

3.2.4 (2019-07-29)

Bug Fixes

  • deps: update dependency pumpify to v2 (#409) (aea90b3)

3.2.3 (2019-07-23)

Bug Fixes

3.2.2 (2019-06-26)

Bug Fixes

  • docs: link to reference docs section on googleapis.dev (#393) (a6e3104)

3.2.1 (2019-06-13)

Bug Fixes

3.2.0 (2019-06-06)

Features

  • support apiEndpoint override in client constructor (#377) (c77ef77)

3.1.1 (2019-05-29)

Bug Fixes

  • deps: update dependency @google-cloud/common to v2 (#366) (e9012f3)

3.1.0 (2019-05-24)

Features

  • add support for MP3 bitrates and hint boost (#363) (b1369ae)

3.0.0 (2019-05-20)

⚠ BREAKING CHANGES

  • upgrade engines field to >=8.10.0 (#339)

Bug Fixes

  • deps: update dependency @google-cloud/common to ^0.32.0 (13d76eb), closes #8203
  • DEADLINE_EXCEEDED is idempotent (#351) (aa5cca5)
  • DEADLINE_EXCEEDED no longer treated as idempotent and retried (8b0655f)
  • deps: update dependency @google-cloud/common to v1 (#349) (d3f216d)
  • deps: update dependency google-gax to ^0.26.0 (#338) (b589b2c)
  • deps: update dependency google-gax to v1 (#350) (a43fb45)

Build System

Features

v2.3.1

03-20-2019 15:38 PDT

Bug Fixes

  • fix: throw on invalid credentials (#302)

Dependencies

  • fix(deps): update dependency @google-cloud/common to ^0.31.0 (#292)

Documentation

  • docs: add backticks to JavaScript samples in jsdoc (#317)
  • docs(samples): Multi-channel GA sample (#295)
  • docs: add lint/fix example to contributing guide (#291)
  • docs: update links in contrib guide (#304)
  • docs: update contributing path in README (#297)
  • docs: move CONTRIBUTING.md to root (#296)

Internal / Testing Changes

  • chore: publish to npm using wombat (#322)
  • build: use per-repo npm publish token (#320)
  • chore: update proto comments and fix tests (#316)
  • build: Add docuploader credentials to node publish jobs (#314)
  • build: update release config (#310)
  • build: use node10 to run samples-test, system-test etc (#313)
  • chore: update proto docs and code style (#308)
  • chore(deps): update dependency mocha to v6 (#305)
  • build: use linkinator for docs test (#303)
  • fix(deps): update dependency yargs to v13 (#301)
  • build: create docs test npm scripts (#300)
  • build: test using @grpc/grpc-js in CI (#298)

v2.3.0

02-04-2019 14:07 PST

New Features

  • feat: support audioChannelCount (#289)

Dependencies

  • fix(deps): update dependency google-gax to ^0.25.0 (#287)
  • chore(deps): update dependency eslint-config-prettier to v4 (#286)
  • fix(deps): update dependency google-gax to ^0.24.0 (#283)
  • fix(deps): update dependency @google-cloud/common to ^0.30.0 (#282)

Documentation

  • build: ignore googleapis.com in doc link check (#281)
  • chore: update the generated doc comments (#279)

Internal / Testing Changes

  • chore: update year in the license headers (#280)

v2.2.0

01-14-2019 12:45 PST

New Features

  • feat: Multi-channel recognition

Dependencies

  • fix(deps): update dependency google-gax to ^0.23.0 (#275)

Documentation

  • docs: check broken links in generated docs (#268)

v2.1.2

01-08-2019 14:18 PST

Docs

  • docs: update readme badges (#248)
  • docs: fixed encoding typo (#263)
  • docs(samples): updated samples code to use async await (#214)
  • docs: remove unused long running operation message types
  • docs: fix typo in sample (#203)

Dependencies

  • fix(deps): update dependency @google-cloud/common to ^0.29.0 (#264)
  • fix(deps): update dependency @google-cloud/common to ^0.27.0 (#245)
  • fix(deps): update dependency @google-cloud/common to ^0.26.0 (#210)
  • fix(deps): update dependency google-gax to ^0.22.0 (#236)
  • fix(deps): update dependency through2 to v3 (#230)
  • fix(deps): update dependency google-proto-files to ^0.17.0 (#200)

Internal / Testing Changes

  • refactor: modernize the sample tests (#265)
  • chore(build): inject yoshi automation key (#262)
  • chore: update nyc and eslint configs (#261)
  • chore: fix publish.sh permission +x (#259)
  • fix(build): fix Kokoro release script (#258)
  • build: add Kokoro configs for autorelease (#257)
  • chore: always nyc report before calling codecov (#253)
  • chore: nyc ignore build/test by default (#252)
  • chore: update license file (#250)
  • fix(build): fix system key decryption (#246)
  • chore: add a synth.metadata
  • refactor: convert samples test from ava to mocha (#221)
  • chore: update eslintignore config (#235)
  • chore: update proto comments and grpc timeouts (#234)
  • chore(deps): update dependency @google-cloud/nodejs-repo-tools to v3 (#233)
  • chore: drop contributors from multiple places (#232)
  • chore: use latest npm on Windows (#231)
  • chore: update eslint config (#228)
  • chore: update CircleCI config (#227)
  • chore(deps): update dependency eslint-plugin-node to v8 (#219)
  • fix: fix the sample tests again (#218)
  • fix: fix the sample tests (#217)
  • chore: remove unused dependencies (#216)
  • chore: update issue templates (#215)
  • chore: remove old issue template (#212)
  • build: run tests on node11 (#211)
  • chores(build): do not collect sponge.xml from windows builds (#209)
  • chores(build): run codecov on continuous builds (#208)
  • chore: update new issue template (#207)
  • chore(deps): update dependency sinon to v7 (#202)
  • build: fix codecov uploading on Kokoro (#204)

v2.1.1

Bug fixes

  • fix: send streamingConfig as a separate write before audioContent (#176)
  • fix: Parse response errors and emit as error event. (#172)
  • fix(deps): update dependency google-gax to ^0.20.0 (#168)
  • fix(samples): storage import (#166)
  • fix(deps): update dependency @google-cloud/common to ^0.25.0 (#178)

Documentation

  • docs(sample): auto_punctuation & model selection (#179)
  • docs: regenerate library README.md that got overwritten by samples README (#175)

Internal / Testing Changes

  • chore(deps): update dependency eslint-plugin-prettier to v3 (#193)
  • Update kokoro config (#190)
  • Update kokoro config (#189)
  • test: remove appveyor config (#187)
  • Update the CI config (#185)
  • test: throw on deprecation (#132)
  • Fix unhandled promise rejection in tests (#180)
  • Enable prefer-const in the eslint config (#181)
  • Enable no-var in eslint (#177)
  • fix(tests): match regex (#174)
  • Switch to let/const (#169)

v2.1.0

Implementation Changes

  • fix: Register error event handler immediately. (#156)

New Features

  • Re-generate library using /synth.py (#160)
    • brings in Audio logging, Automatic punctuation, Video transcription, Model selection features

Dependencies

  • fix(deps): update dependency @google-cloud/storage to v2 (#159)
  • chore(deps): update dependency nyc to v13 (#153)
  • fix(deps): update dependency google-gax to ^0.19.0 (#148)
  • chore(deps): update dependency eslint-config-prettier to v3 (#143)
  • chore(deps): lock file maintenance (#137)
  • chore(deps): lock file maintenance (#136)
  • fix(deps): update dependency google-gax to ^0.18.0 (#131)
  • chore(deps): lock file maintenance (#129)
  • chore(deps): lock file maintenance (#123)
  • chore(deps): update dependency eslint-plugin-node to v7 (#119)
  • chore(deps): lock file maintenance (#117)

Documentation

  • Add streaming microphone sample for Speech (#87)
  • Code Samples for new v1p1beta1 features (#118)

Internal / Testing Changes

  • Update CI config (#164)
  • Retry npm install in CI (#161)
  • Update the CircleCI config (#157)
  • fix: use regex to test output (#150)
  • updates word time offsets region tag (#146)
  • Speech region tag update (#145)
  • Update the CI config (#152)
  • Add kokoro config (#151)
  • chore: make the CircleCI config consistent
  • chore: do not use npm ci (#141)
  • chore: ignore package-lock.json (#138)
  • chore: update renovate config (#133)
  • chore: make the CircleCI config consistent
  • chore: move mocha options to mocha.opts (#127)
  • chore: require node 8 for samples (#128)
  • test: use strictEqual in tests (#120)
  • modify helpers.js to be compatible with generated code (#116)