Skip to content

sampleRate is not a field: undefined #343

Description

@muhammadsamir11

I always getting this error

lubuntu 16.04

google.cloud.speech.v1.RecognitionConfig#sampleRate is not a field: undefined

Activity

  1. jaumard commented on Apr 29, 2017

    @jaumard

    Same for me on raspberry pi with minibian distrib
    For log:

    Error: .google.cloud.speech.v1.RecognitionConfig#sampleRate is not a field: undefined
           at MessagePrototype.set (/var/www/sonus/node_modules/protobufjs/dist/protobuf.js:2490:35)
           at MessagePrototype.set (/var/www/sonus/node_modules/protobufjs/dist/protobuf.js:2483:38)
           at Message (/var/www/sonus/node_modules/protobufjs/dist/protobuf.js:2411:34)
           at Element.ProtoBuf.Reflect.ElementPrototype.verifyValue (/var/www/sonus/node_modules/protobufjs/dist/protobuf.js:1925:28)
           at Field.ProtoBuf.Reflect.FieldPrototype.verifyValue (/var/www/sonus/node_modules/protobufjs/dist/protobuf.js:3499:33)
           at MessagePrototype.set (/var/www/sonus/node_modules/protobufjs/dist/protobuf.js:2493:59)
           at MessagePrototype.set (/var/www/sonus/node_modules/protobufjs/dist/protobuf.js:2483:38)
           at Message (/var/www/sonus/node_modules/protobufjs/dist/protobuf.js:2411:34)
           at Element.ProtoBuf.Reflect.ElementPrototype.verifyValue (/var/www/sonus/node_modules/protobufjs/dist/protobuf.js:1925:28)
           at Field.ProtoBuf.Reflect.FieldPrototype.verifyValue (/var/www/sonus/node_modules/protobufjs/dist/protobuf.js:3499:33)
    

    Node v7.9.0

  2. jmdobry commented on May 2, 2017

    @jmdobry
    Member

    The sampleRate field was recently renamed to sampleRateHertz. That's annoying I know, but the @google-cloud/speech client library has not yet reached 1.0.0, so make sure to check the changelog every time you upgrade. Here's the release that contained the breaking change.

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

    🚨This issue needs some love.triage meI really want to be triaged.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions