@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.
- package/CHANGELOG.md +53 -1
- package/README.md +39 -791
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +14 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/secondsToTimestamp.d.ts +1 -0
- package/dist/helpers/secondsToTimestamp.js +8 -0
- package/dist/helpers/secondsToTimestamp.js.map +1 -0
- package/dist/httpRequest.d.ts +2 -1
- package/dist/httpRequest.js +22 -14
- package/dist/httpRequest.js.map +1 -1
- package/dist/keys.d.ts +3 -2
- package/dist/keys.js +19 -5
- package/dist/keys.js.map +1 -1
- package/dist/projects.js +3 -3
- package/dist/projects.js.map +1 -1
- package/dist/transcription/index.js +1 -1
- package/dist/transcription/index.js.map +1 -1
- package/dist/transcription/liveTranscription.js +2 -2
- package/dist/transcription/liveTranscription.js.map +1 -1
- package/dist/transcription/preRecordedTranscription.js +35 -10
- package/dist/transcription/preRecordedTranscription.js.map +1 -1
- package/dist/types/createKeyOptions.d.ts +13 -0
- package/dist/types/createKeyOptions.js +3 -0
- package/dist/types/createKeyOptions.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/prerecordedTranscriptionResponse.d.ts +16 -2
- package/dist/types/prerecordedTranscriptionResponse.js +48 -0
- package/dist/types/prerecordedTranscriptionResponse.js.map +1 -1
- package/dist/types/transcriptionSource.d.ts +6 -1
- package/dist/usage.js +4 -4
- package/dist/usage.js.map +1 -1
- 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.
|
|
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
|