@@ -159,6 +159,9 @@ type LeMURBaseParams struct {
159
159
type LeMURBaseResponse struct {
160
160
// The ID of the LeMUR request
161
161
RequestID * string `json:"request_id,omitempty"`
162
+
163
+ // The usage numbers for the LeMUR request
164
+ Usage LeMURUsage `json:"usage,omitempty"`
162
165
}
163
166
164
167
// The model that is used for the final prompt after compression is performed.
@@ -225,6 +228,15 @@ type LeMURTaskResponse struct {
225
228
LeMURBaseResponse
226
229
}
227
230
231
+ // The usage numbers for the LeMUR request
232
+ type LeMURUsage struct {
233
+ // The number of input tokens used by the model
234
+ InputTokens * int64 `json:"input_tokens,omitempty"`
235
+
236
+ // The number of output tokens generated by the model
237
+ OutputTokens * int64 `json:"output_tokens,omitempty"`
238
+ }
239
+
228
240
type ListTranscriptParams struct {
229
241
// Get transcripts that were created after this transcript ID
230
242
AfterID * string `url:"after_id,omitempty"`
@@ -247,8 +259,10 @@ type ListTranscriptParams struct {
247
259
248
260
// Details of the transcript page. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts.
249
261
type PageDetails struct {
262
+ // The URL used to retrieve the current page of transcripts
250
263
CurrentURL * string `json:"current_url,omitempty"`
251
264
265
+ // The number of results this page is limited to
252
266
Limit * int64 `json:"limit,omitempty"`
253
267
254
268
// The URL to the next page of transcripts. The next URL always points to a page with newer transcripts.
@@ -257,6 +271,7 @@ type PageDetails struct {
257
271
// The URL to the next page of transcripts. The previous URL always points to a page with older transcripts.
258
272
PrevURL * string `json:"prev_url,omitempty"`
259
273
274
+ // The actual number of results in the page
260
275
ResultCount * int64 `json:"result_count,omitempty"`
261
276
}
262
277
@@ -270,6 +285,7 @@ type ParagraphsResponse struct {
270
285
Paragraphs []TranscriptParagraph `json:"paragraphs,omitempty"`
271
286
}
272
287
288
+ // The type of PII to redact
273
289
type PIIPolicy string
274
290
275
291
type PurgeLeMURRequestDataResponse struct {
@@ -314,7 +330,7 @@ type SentencesResponse struct {
314
330
315
331
type Sentiment string
316
332
317
- // The result of the sentiment analysis model
333
+ // The result of the Sentiment Analysis model
318
334
type SentimentAnalysisResult struct {
319
335
// The confidence score for the detected sentiment of the sentence, from 0 to 1
320
336
Confidence * float64 `json:"confidence,omitempty"`
@@ -420,7 +436,7 @@ type Transcript struct {
420
436
AutoHighlights * bool `json:"auto_highlights,omitempty"`
421
437
422
438
// An array of results for the Key Phrases model, if it is enabled.
423
- // See [Key phrases ](https://www.assemblyai.com/docs/models/key-phrases) for more information.
439
+ // See [Key Phrases ](https://www.assemblyai.com/docs/models/key-phrases) for more information.
424
440
AutoHighlightsResult AutoHighlightsResult `json:"auto_highlights_result,omitempty"`
425
441
426
442
// The word boost parameter value
@@ -513,7 +529,7 @@ type Transcript struct {
513
529
SentimentAnalysis * bool `json:"sentiment_analysis,omitempty"`
514
530
515
531
// An array of results for the Sentiment Analysis model, if it is enabled.
516
- // See [Sentiment analysis ](https://www.assemblyai.com/docs/models/sentiment-analysis) for more information.
532
+ // See [Sentiment Analysis ](https://www.assemblyai.com/docs/models/sentiment-analysis) for more information.
517
533
SentimentAnalysisResults []SentimentAnalysisResult `json:"sentiment_analysis_results,omitempty"`
518
534
519
535
// Whether [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, can be true or false
@@ -570,7 +586,7 @@ type Transcript struct {
570
586
// The status code we received from your server when delivering your webhook, if a webhook URL was provided
571
587
WebhookStatusCode * int64 `json:"webhook_status_code,omitempty"`
572
588
573
- // The URL to which we send webhooks upon trancription completion
589
+ // The URL to which we send webhooks upon transcription completion
574
590
WebhookURL * string `json:"webhook_url,omitempty"`
575
591
576
592
// The list of custom vocabulary to boost transcription probability for
@@ -632,7 +648,7 @@ type TranscriptOptionalParams struct {
632
648
// Enable [Auto Chapters](https://www.assemblyai.com/docs/models/auto-chapters), can be true or false
633
649
AutoChapters * bool `json:"auto_chapters,omitempty"`
634
650
635
- // Whether Key Phrases is enabled , either true or false
651
+ // Enable Key Phrases, either true or false
636
652
AutoHighlights * bool `json:"auto_highlights,omitempty"`
637
653
638
654
// The word boost parameter value
@@ -641,13 +657,13 @@ type TranscriptOptionalParams struct {
641
657
// Enable [Content Moderation](https://www.assemblyai.com/docs/models/content-moderation), can be true or false
642
658
ContentSafety * bool `json:"content_safety,omitempty"`
643
659
644
- // The confidence threshold for content moderation . Values must be between 25 and 100.
660
+ // The confidence threshold for the Content Moderation model . Values must be between 25 and 100.
645
661
ContentSafetyConfidence * int64 `json:"content_safety_confidence,omitempty"`
646
662
647
663
// Customize how words are spelled and formatted using to and from values
648
664
CustomSpelling []TranscriptCustomSpelling `json:"custom_spelling,omitempty"`
649
665
650
- // Whether custom topics is enabled , either true or false
666
+ // Enable custom topics, either true or false
651
667
CustomTopics * bool `json:"custom_topics,omitempty"`
652
668
653
669
// Transcribe Filler Words, like "umm", in your media file; can be true or false
@@ -672,7 +688,7 @@ type TranscriptOptionalParams struct {
672
688
// The default value is 'en_us'.
673
689
LanguageCode TranscriptLanguageCode `json:"language_code,omitempty"`
674
690
675
- // Whether [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection) was enabled in the transcription request , either true or false.
691
+ // Enable [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection), either true or false.
676
692
LanguageDetection * bool `json:"language_detection,omitempty"`
677
693
678
694
// Enable Automatic Punctuation, can be true or false
@@ -718,7 +734,7 @@ type TranscriptOptionalParams struct {
718
734
// The type of summary
719
735
SummaryType SummaryType `json:"summary_type,omitempty"`
720
736
721
- // The list of custom topics provided, if custom topics is enabled
737
+ // The list of custom topics
722
738
Topics []string `json:"topics,omitempty"`
723
739
724
740
// The header name which should be sent back with webhook calls
@@ -727,7 +743,7 @@ type TranscriptOptionalParams struct {
727
743
// Specify a header name and value to send back with a webhook call for added security
728
744
WebhookAuthHeaderValue * string `json:"webhook_auth_header_value,omitempty"`
729
745
730
- // The URL to which AssemblyAI send webhooks upon trancription completion
746
+ // The URL to which AssemblyAI send webhooks upon transcription completion
731
747
WebhookURL * string `json:"webhook_url,omitempty"`
732
748
733
749
// The list of custom vocabulary to boost transcription probability for
0 commit comments