Skip to content

Commit ff37ea8

Browse files
Fixing version parameter of transcription options (#35)
1 parent fbc5868 commit ff37ea8

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
---
11+
12+
## [1.2.3]
13+
1014
### Fixed
1115

1216
- Getting the list of API keys was returning the wrong type of object. The SDK now returns the correct object type, but also returns what was previously implemented with deprecation notices.
13-
14-
---
17+
- The `version` parameter was typed as required for both pre-recorded and live transcription. Changed this to be optional.
1518

1619
## [1.2.2]
1720

@@ -155,7 +158,8 @@ throw an error.
155158

156159
---
157160

158-
[unreleased]: https://github.com/deepgram/node-sdk/compare/1.2.2...HEAD
161+
[unreleased]: https://github.com/deepgram/node-sdk/compare/1.2.3...HEAD
162+
[1.2.2]: https://github.com/deepgram/node-sdk/compare/1.2.2...1.2.3
159163
[1.2.2]: https://github.com/deepgram/node-sdk/compare/1.2.1...1.2.2
160164
[1.2.1]: https://github.com/deepgram/node-sdk/compare/1.2.0...1.2.1
161165
[1.2.0]: https://github.com/deepgram/node-sdk/compare/1.1.0...1.2.0

src/types/liveTranscriptionOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type LiveTranscriptionOptions = {
1818
* @remarks latest OR <version_id>
1919
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/version
2020
*/
21-
version: string;
21+
version?: string;
2222
/**
2323
* BCP-47 language tag that hints at the primary spoken language.
2424
* @default en-US

src/types/prerecordedTranscriptionOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type PrerecordedTranscriptionOptions = {
1818
* @remarks latest OR <version_id>
1919
* @see https://developers.deepgram.com/api-reference/speech-recognition-api#operation/transcribeAudio/properties/version
2020
*/
21-
version: string;
21+
version?: string;
2222
/**
2323
* BCP-47 language tag that hints at the primary spoken language.
2424
* @default en-US

0 commit comments

Comments
 (0)