@deepgram/sdk 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ---
11
11
 
12
+ ## [1.2.2]
13
+
14
+ ### Updated
15
+
16
+ - Updated the `wordBase` type to include an optional `speaker` property.
17
+ - Updated the documentation for the speaker property of the `utterance` type.
18
+
12
19
  ## [1.2.1]
13
20
 
14
21
  ### Fixed
@@ -144,7 +151,8 @@ throw an error.
144
151
 
145
152
  ---
146
153
 
147
- [unreleased]: https://github.com/deepgram/node-sdk/compare/1.2.1...HEAD
154
+ [unreleased]: https://github.com/deepgram/node-sdk/compare/1.2.2...HEAD
155
+ [1.2.2]: https://github.com/deepgram/node-sdk/compare/1.2.1...1.2.2
148
156
  [1.2.1]: https://github.com/deepgram/node-sdk/compare/1.2.0...1.2.1
149
157
  [1.2.0]: https://github.com/deepgram/node-sdk/compare/1.1.0...1.2.0
150
158
  [1.1.0]: https://github.com/deepgram/node-sdk/compare/1.0.3...1.1.0
@@ -28,7 +28,8 @@ export declare type Utterance = {
28
28
  */
29
29
  words: Array<WordBase>;
30
30
  /**
31
- * Integer indicating the speaker who is saying the word being processed.
31
+ * Integer indicating the predicted speaker of the majority of words
32
+ * in the utterance who is saying the words being processed.
32
33
  */
33
34
  speaker?: number;
34
35
  /**
@@ -4,4 +4,5 @@ export declare type WordBase = {
4
4
  end: number;
5
5
  confidence: number;
6
6
  punctuated_word?: string;
7
+ speaker?: number;
7
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepgram/sdk",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "An SDK for the Deepgram automated speech recognition platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",