Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

@google-cloud/speech v0.9.0

Compare
Choose a tag to compare
@lukesneeringer lukesneeringer released this 05 Nov 04:55
· 637 commits to main since this release

release level

⚠️ Breaking Changes

API upgraded to v1

This release introduces the Speech v1 API, which brings a few small, but significant changes.

  • English as the default language is no longer assumed.

  • sampleRate sampleRateHertz

These changes affect all API requests.

var request = {
  config: {
+    languageCode: 'en-US',  // <-- Now required!
    encoding: 'LINEAR16',
-    sampleRate: 16000,
+    sampleRateHertz: 16000,  // <-- Not `sampleRate` anymore!
  }
};

Additionally, the following endpointer types have been removed:

  • Speech.endpointerTypes.START_OF_SPEECH
  • Speech.endpointerTypes.END_OF_SPEECH
  • Speech.endpointerTypes.END_OF_AUDIO

The event types that now exist are:

  • Speech.eventTypes.ENDPOINTER_EVENT_UNSPECIFIED: No event specified.
  • Speech.eventTypes.END_OF_SINGLE_UTTERANCE: Indicates that the server has detected the end of the user's speech utterance and expects no additional speech.