@deepgram/sdk 1.0.2 → 1.2.1

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +53 -1
  2. package/README.md +39 -791
  3. package/dist/helpers/index.d.ts +1 -0
  4. package/dist/helpers/index.js +14 -0
  5. package/dist/helpers/index.js.map +1 -0
  6. package/dist/helpers/secondsToTimestamp.d.ts +1 -0
  7. package/dist/helpers/secondsToTimestamp.js +8 -0
  8. package/dist/helpers/secondsToTimestamp.js.map +1 -0
  9. package/dist/httpRequest.d.ts +2 -1
  10. package/dist/httpRequest.js +22 -14
  11. package/dist/httpRequest.js.map +1 -1
  12. package/dist/keys.d.ts +3 -2
  13. package/dist/keys.js +19 -5
  14. package/dist/keys.js.map +1 -1
  15. package/dist/projects.js +3 -3
  16. package/dist/projects.js.map +1 -1
  17. package/dist/transcription/index.js +1 -1
  18. package/dist/transcription/index.js.map +1 -1
  19. package/dist/transcription/liveTranscription.js +2 -2
  20. package/dist/transcription/liveTranscription.js.map +1 -1
  21. package/dist/transcription/preRecordedTranscription.js +35 -10
  22. package/dist/transcription/preRecordedTranscription.js.map +1 -1
  23. package/dist/types/createKeyOptions.d.ts +13 -0
  24. package/dist/types/createKeyOptions.js +3 -0
  25. package/dist/types/createKeyOptions.js.map +1 -0
  26. package/dist/types/index.d.ts +1 -0
  27. package/dist/types/index.js +1 -0
  28. package/dist/types/index.js.map +1 -1
  29. package/dist/types/prerecordedTranscriptionResponse.d.ts +16 -2
  30. package/dist/types/prerecordedTranscriptionResponse.js +48 -0
  31. package/dist/types/prerecordedTranscriptionResponse.js.map +1 -1
  32. package/dist/types/transcriptionSource.d.ts +6 -1
  33. package/dist/usage.js +4 -4
  34. package/dist/usage.js.map +1 -1
  35. package/package.json +18 -18
package/CHANGELOG.md CHANGED
@@ -9,6 +9,54 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ---
11
11
 
12
+ ## [1.2.1]
13
+
14
+ ### Fixed
15
+
16
+ - Fixed a bug that caused real-time transcriptions to not close correctly. This
17
+ would result in the user not received the final transcription.
18
+
19
+ ## [1.2.0]
20
+
21
+ ### Updated
22
+
23
+ - Updated the `keys.create` function to allow new `expirationDate` or `timeToLive`
24
+ values. These are optional and one at most can be provided. Providing both will
25
+ throw an error.
26
+
27
+ ## [1.1.0]
28
+
29
+ ### Added
30
+
31
+ - Prerecorded transcription responses can now be used to generate WebVTT and
32
+ SRT caption files. Example:
33
+
34
+ ```js
35
+ const response = await deepgram.transcription.preRecorded(
36
+ { url: "URL_TO_FILE" },
37
+ {
38
+ punctuate: true,
39
+ utterances: true,
40
+ }
41
+ );
42
+ const webVTT = response.toWebVTT();
43
+ const SRT = response.toSRT();
44
+ ```
45
+
46
+ The [utterances](https://developers.deepgram.com/documentation/features/utterances/)
47
+ feature is required to use this functionality.
48
+
49
+ ## [1.0.3]
50
+
51
+ ### Added
52
+
53
+ - In addition to a Url and Buffer, `trascricription.preRecorded` now accepts a
54
+ ReadStream as a source of the file to transcribe.
55
+
56
+ ### Updated
57
+
58
+ - Removed a console log that occurred when an HTTP request ended
59
+
12
60
  ## [1.0.2]
13
61
 
14
62
  ### Added
@@ -96,7 +144,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
96
144
 
97
145
  ---
98
146
 
99
- [unreleased]: https://github.com/deepgram/node-sdk/compare/1.0.2...HEAD
147
+ [unreleased]: https://github.com/deepgram/node-sdk/compare/1.2.1...HEAD
148
+ [1.2.1]: https://github.com/deepgram/node-sdk/compare/1.2.0...1.2.1
149
+ [1.2.0]: https://github.com/deepgram/node-sdk/compare/1.1.0...1.2.0
150
+ [1.1.0]: https://github.com/deepgram/node-sdk/compare/1.0.3...1.1.0
151
+ [1.0.3]: https://github.com/deepgram/node-sdk/compare/1.0.2...1.0.3
100
152
  [1.0.2]: https://github.com/deepgram/node-sdk/compare/1.0.0...1.0.2
101
153
  [1.0.0]: https://github.com/deepgram/node-sdk/compare/0.6.5...1.0.0
102
154
  [0.6.5]: https://github.com/deepgram/node-sdk/compare/0.6.4...0.6.5