This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
@google-cloud/speech v0.9.0
⚠️ 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.