Skip to content

Commit 3c617e1

Browse files
authored
Merge pull request #98 from deepgram/smart-format
add smart formatting
2 parents 36ff31c + bcefa1c commit 3c617e1

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

src/types/liveTranscriptionOptions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,11 @@ export type LiveTranscriptionOptions = {
224224
* Option to format measurements in the transcript
225225
* */
226226
measurements?: boolean;
227+
228+
/**
229+
* Indicates whether to use Smart Format on the transcript. When enabled,
230+
* Smart Format will add punctuation and formatting to entities like dates, times,
231+
* tracking numbers, and more.
232+
* */
233+
smart_format?: boolean;
227234
};

src/types/prerecordedTranscriptionOptions.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,4 +250,12 @@ export type PrerecordedTranscriptionOptions = {
250250
* Option to format measurements in the transcript
251251
* */
252252
measurements?: boolean;
253+
254+
255+
/**
256+
* Indicates whether to use Smart Format on the transcript. When enabled,
257+
* Smart Format will add punctuation and formatting to entities like dates, times,
258+
* tracking numbers, and more.
259+
* */
260+
smart_format?: boolean;
253261
};

src/types/usageOptions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ export type UsageOptions = {
2828
paragraphs?: boolean;
2929
utt_split?: boolean;
3030
analyze_sentiment?: boolean;
31+
smart_format?: boolean;
3132
sentiment_threshold?: boolean;
3233
};

src/types/usageRequestDetail.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export type UsageRequestDetail = {
2626
alternatives?: boolean;
2727
numerals?: boolean;
2828
numbers?: boolean;
29+
smart_format?: boolean;
2930
translate?: boolean;
3031
};
3132
};

0 commit comments

Comments
 (0)