forked from pvd-dot/elevenlabs-go-unofficial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
elevenlabstypes.gen.go
1034 lines (862 loc) · 59.1 KB
/
elevenlabstypes.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Package elevenlabs provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen version v1.13.0 DO NOT EDIT.
package elevenlabs
import (
"encoding/json"
"github.com/deepmap/oapi-codegen/pkg/runtime"
openapi_types "github.com/deepmap/oapi-codegen/pkg/types"
)
// Defines values for ChapterResponseModelState.
const (
ChapterResponseModelStateConverting ChapterResponseModelState = "converting"
ChapterResponseModelStateDefault ChapterResponseModelState = "default"
)
// Defines values for ExtendedSubscriptionResponseModelCurrency.
const (
ExtendedSubscriptionResponseModelCurrencyEur ExtendedSubscriptionResponseModelCurrency = "eur"
ExtendedSubscriptionResponseModelCurrencyUsd ExtendedSubscriptionResponseModelCurrency = "usd"
)
// Defines values for ExtendedSubscriptionResponseModelStatus.
const (
ExtendedSubscriptionResponseModelStatusActive ExtendedSubscriptionResponseModelStatus = "active"
ExtendedSubscriptionResponseModelStatusCanceled ExtendedSubscriptionResponseModelStatus = "canceled"
ExtendedSubscriptionResponseModelStatusFree ExtendedSubscriptionResponseModelStatus = "free"
ExtendedSubscriptionResponseModelStatusIncomplete ExtendedSubscriptionResponseModelStatus = "incomplete"
ExtendedSubscriptionResponseModelStatusIncompleteExpired ExtendedSubscriptionResponseModelStatus = "incomplete_expired"
ExtendedSubscriptionResponseModelStatusPastDue ExtendedSubscriptionResponseModelStatus = "past_due"
ExtendedSubscriptionResponseModelStatusTrialing ExtendedSubscriptionResponseModelStatus = "trialing"
ExtendedSubscriptionResponseModelStatusUnpaid ExtendedSubscriptionResponseModelStatus = "unpaid"
)
// Defines values for FineTuningResponseModelFinetuningState.
const (
FineTuned FineTuningResponseModelFinetuningState = "fine_tuned"
IsFineTuning FineTuningResponseModelFinetuningState = "is_fine_tuning"
NotStarted FineTuningResponseModelFinetuningState = "not_started"
)
// Defines values for HistoryItemResponseModelState.
const (
Created HistoryItemResponseModelState = "created"
Deleted HistoryItemResponseModelState = "deleted"
Processing HistoryItemResponseModelState = "processing"
)
// Defines values for HistoryItemResponseModelVoiceCategory.
const (
Cloned HistoryItemResponseModelVoiceCategory = "cloned"
Generated HistoryItemResponseModelVoiceCategory = "generated"
Premade HistoryItemResponseModelVoiceCategory = "premade"
Professional HistoryItemResponseModelVoiceCategory = "professional"
)
// Defines values for ProjectExtendedResponseModelState.
const (
ProjectExtendedResponseModelStateConverting ProjectExtendedResponseModelState = "converting"
ProjectExtendedResponseModelStateDefault ProjectExtendedResponseModelState = "default"
ProjectExtendedResponseModelStateInQueue ProjectExtendedResponseModelState = "in_queue"
)
// Defines values for ProjectResponseModelState.
const (
Converting ProjectResponseModelState = "converting"
Default ProjectResponseModelState = "default"
)
// Defines values for SubscriptionResponseModelCurrency.
const (
SubscriptionResponseModelCurrencyEur SubscriptionResponseModelCurrency = "eur"
SubscriptionResponseModelCurrencyUsd SubscriptionResponseModelCurrency = "usd"
)
// Defines values for SubscriptionResponseModelStatus.
const (
SubscriptionResponseModelStatusActive SubscriptionResponseModelStatus = "active"
SubscriptionResponseModelStatusCanceled SubscriptionResponseModelStatus = "canceled"
SubscriptionResponseModelStatusFree SubscriptionResponseModelStatus = "free"
SubscriptionResponseModelStatusIncomplete SubscriptionResponseModelStatus = "incomplete"
SubscriptionResponseModelStatusIncompleteExpired SubscriptionResponseModelStatus = "incomplete_expired"
SubscriptionResponseModelStatusPastDue SubscriptionResponseModelStatus = "past_due"
SubscriptionResponseModelStatusTrialing SubscriptionResponseModelStatus = "trialing"
SubscriptionResponseModelStatusUnpaid SubscriptionResponseModelStatus = "unpaid"
)
// Defines values for VoiceSharingResponseModelReviewStatus.
const (
Allowed VoiceSharingResponseModelReviewStatus = "allowed"
AllowedWithChanges VoiceSharingResponseModelReviewStatus = "allowed_with_changes"
Declined VoiceSharingResponseModelReviewStatus = "declined"
NotRequested VoiceSharingResponseModelReviewStatus = "not_requested"
Pending VoiceSharingResponseModelReviewStatus = "pending"
)
// Defines values for VoiceSharingResponseModelStatus.
const (
Copied VoiceSharingResponseModelStatus = "copied"
CopiedDisabled VoiceSharingResponseModelStatus = "copied_disabled"
Disabled VoiceSharingResponseModelStatus = "disabled"
Enabled VoiceSharingResponseModelStatus = "enabled"
)
// AddProjectResponseModel defines model for AddProjectResponseModel.
type AddProjectResponseModel struct {
Project ProjectResponseModel `json:"project"`
}
// AddPronunciationDictionaryResponseModel defines model for AddPronunciationDictionaryResponseModel.
type AddPronunciationDictionaryResponseModel struct {
CreatedBy string `json:"created_by"`
CreationTimeUnix int `json:"creation_time_unix"`
Description *string `json:"description,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
VersionId string `json:"version_id"`
}
// AddVoiceResponseModel defines model for AddVoiceResponseModel.
type AddVoiceResponseModel struct {
VoiceId string `json:"voice_id"`
}
// AudioNativeCreateProjectResponseModel defines model for AudioNativeCreateProjectResponseModel.
type AudioNativeCreateProjectResponseModel struct {
Converting bool `json:"converting"`
HtmlSnippet string `json:"html_snippet"`
ProjectId string `json:"project_id"`
}
// BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost defines model for Body_Add_a_pronunciation_dictionary_v1_pronunciation_dictionaries_add_from_file_post.
type BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost struct {
// Description A description of the pronunciation dictionary, used for identification only.
Description *string `json:"description,omitempty"`
// File A lexicon .pls file which we will use to initialize the project with.
File *openapi_types.File `json:"file,omitempty"`
// Name The name of the pronunciation dictionary, used for identification only.
Name string `json:"name"`
}
// BodyAddProjectV1ProjectsAddPost defines model for Body_Add_project_v1_projects_add_post.
type BodyAddProjectV1ProjectsAddPost struct {
// AcxVolumeNormalization When the project is downloaded, should the returned audio have postprocessing in order to make it compliant with ACX loudness requirements
AcxVolumeNormalization *bool `json:"acx_volume_normalization,omitempty"`
// Author An optional name of the author of the project, this will be added as metadata to the mp3 file on project / chapter download.
Author *string `json:"author,omitempty"`
// DefaultModelId The model_id of the model to be used for this project, you can query GET https://api.elevenlabs.io/v1/models to list all available models.
DefaultModelId string `json:"default_model_id"`
// DefaultParagraphVoiceId The voice_id that corresponds to the default voice used for new paragraphs.
DefaultParagraphVoiceId string `json:"default_paragraph_voice_id"`
// DefaultTitleVoiceId The voice_id that corresponds to the default voice used for new titles.
DefaultTitleVoiceId string `json:"default_title_voice_id"`
// FromDocument An optional .epub, .pdf, .txt or similar file can be provided. If provided, we will initialize the project with its content. If this is set, 'from_url' must be null. If neither 'from_url' or 'from_document' are provided we will initialize the project as blank.
FromDocument *openapi_types.File `json:"from_document,omitempty"`
// FromUrl An optional URL from which we will extract content to initialize the project. If this is set, 'from_url' must be null. If neither 'from_url' or 'from_document' are provided we will initialize the project as blank.
FromUrl *string `json:"from_url,omitempty"`
// IsbnNumber An optional ISBN number of the project you want to create, this will be added as metadata to the mp3 file on project / chapter download.
IsbnNumber *string `json:"isbn_number,omitempty"`
// Name The name of the project, used for identification only.
Name string `json:"name"`
// PronunciationDictionaryLocators A list of pronunciation dictionary locators (id, version_id) encoded as a list of JSON strings for pronunciation dictionaries to be applied to the text. A list of json encoded strings is required as adding projects may occur through formData as opposed to jsonBody
PronunciationDictionaryLocators []string `json:"pronunciation_dictionary_locators"`
// QualityPreset Output quality of the generated audio. Must be one of:
// standard - standard output format, 128kbps with 44.1kHz sample rate.
// high - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side. Using this setting increases the character cost by 20%.
// ultra - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side. Using this setting increases the character cost by 50%.
QualityPreset *string `json:"quality_preset,omitempty"`
// Title An optional name of the author of the project, this will be added as metadata to the mp3 file on project / chapter download.
Title *string `json:"title,omitempty"`
}
// BodyAddVoiceV1VoicesAddPost defines model for Body_Add_voice_v1_voices_add_post.
type BodyAddVoiceV1VoicesAddPost struct {
// Description How would you describe the voice?
Description *string `json:"description,omitempty"`
// Files One or more audio files to clone the voice from
Files []openapi_types.File `json:"files"`
// Labels Serialized labels dictionary for the voice.
Labels *string `json:"labels,omitempty"`
// Name The name that identifies this voice. This will be displayed in the dropdown of the website.
Name string `json:"name"`
}
// BodyCreatesAudioNativeEnabledProjectV1AudioNativePost defines model for Body_Creates_AudioNative_enabled_project__v1_audio_native_post.
type BodyCreatesAudioNativeEnabledProjectV1AudioNativePost struct {
// Author Author used in the player. If not provided, default author set in the Player settings is used.
Author *string `json:"author,omitempty"`
// AutoConvert Whether to auto convert the project to audio or not.
AutoConvert *bool `json:"auto_convert,omitempty"`
// BackgroundColor Background color used in the player. If not provided, default background color set in the Player settings is used.
BackgroundColor *string `json:"background_color,omitempty"`
// File HTML input file with a specific format.
File openapi_types.File `json:"file"`
// Image Image URL used in the player. If not provided, default image set in the Player settings is used.
Image *string `json:"image,omitempty"`
// ModelId TTS Model ID used in the player. If not provided, default model ID set in the Player settings is used.
ModelId *string `json:"model_id,omitempty"`
// Name Project name.
Name string `json:"name"`
// Sessionization Specifies for how many minutes to persist the session across page reloads. If not provided, default sessionization set in the Player settings is used.
Sessionization *int `json:"sessionization,omitempty"`
// Small Whether to use small player or not. If not provided, default value set in the Player settings is used.
Small *bool `json:"small,omitempty"`
// TextColor Text color used in the player. If not provided, default text color set in the Player settings is used.
TextColor *string `json:"text_color,omitempty"`
// VoiceId Voice ID used to voice the content. If not provided, default voice ID set in the Player settings is used.
VoiceId *string `json:"voice_id,omitempty"`
}
// BodyDownloadHistoryItemsV1HistoryDownloadPost defines model for Body_Download_history_items_v1_history_download_post.
type BodyDownloadHistoryItemsV1HistoryDownloadPost struct {
// HistoryItemIds A list of history items to download, you can get IDs of history items and other metadata using the GET https://api.elevenlabs.io/v1/history endpoint.
HistoryItemIds []string `json:"history_item_ids"`
}
// BodyEditVoiceV1VoicesVoiceIdEditPost defines model for Body_Edit_voice_v1_voices__voice_id__edit_post.
type BodyEditVoiceV1VoicesVoiceIdEditPost struct {
// Description How would you describe the voice?
Description *string `json:"description,omitempty"`
// Files Audio files to add to the voice
Files *[]openapi_types.File `json:"files,omitempty"`
// Labels Serialized labels dictionary for the voice.
Labels *string `json:"labels,omitempty"`
// Name The name that identifies this voice. This will be displayed in the dropdown of the website.
Name string `json:"name"`
}
// BodyTextToSpeechV1TextToSpeechVoiceIdPost defines model for Body_Text_to_speech_v1_text_to_speech__voice_id__post.
type BodyTextToSpeechV1TextToSpeechVoiceIdPost struct {
// ModelId Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property.
ModelId *string `json:"model_id,omitempty"`
// Text The text that will get converted into speech.
Text string `json:"text"`
// VoiceSettings Voice settings overriding stored setttings for the given voice. They are applied only on the given request.
VoiceSettings *VoiceSettingsResponseModel `json:"voice_settings,omitempty"`
}
// BodyTextToSpeechV1TextToSpeechVoiceIdStreamPost defines model for Body_Text_to_speech_v1_text_to_speech__voice_id__stream_post.
type BodyTextToSpeechV1TextToSpeechVoiceIdStreamPost struct {
// ModelId Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property.
ModelId *string `json:"model_id,omitempty"`
// Text The text that will get converted into speech.
Text string `json:"text"`
// VoiceSettings Voice settings overriding stored setttings for the given voice. They are applied only on the given request.
VoiceSettings *VoiceSettingsResponseModel `json:"voice_settings,omitempty"`
}
// BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost defines model for Body_Update_Pronunciation_Dictionaries_v1_projects__project_id__update_pronunciation_dictionaries_post.
type BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost struct {
// PronunciationDictionaryLocators A list of pronunciation dictionary locators (id, version_id) encoded as a list of JSON strings for pronunciation dictionaries to be applied to the text. A list of json encoded strings is required as adding projects may occur through formData as opposed to jsonBody
PronunciationDictionaryLocators []PronunciationDictionaryVersionLocatorDBModel `json:"pronunciation_dictionary_locators"`
}
// ChapterResponseModel defines model for ChapterResponseModel.
type ChapterResponseModel struct {
CanBeDownloaded bool `json:"can_be_downloaded"`
ChapterId string `json:"chapter_id"`
ConversionProgress float32 `json:"conversion_progress"`
LastConversionDateUnix int `json:"last_conversion_date_unix"`
Name string `json:"name"`
State ChapterResponseModelState `json:"state"`
Statistics ChapterStatisticsResponseModel `json:"statistics"`
}
// ChapterResponseModelState defines model for ChapterResponseModel.State.
type ChapterResponseModelState string
// ChapterSnapshotResponseModel defines model for ChapterSnapshotResponseModel.
type ChapterSnapshotResponseModel struct {
ChapterId string `json:"chapter_id"`
ChapterSnapshotId string `json:"chapter_snapshot_id"`
CreatedAtUnix int `json:"created_at_unix"`
Name string `json:"name"`
ProjectId string `json:"project_id"`
}
// ChapterSnapshotsResponseModel defines model for ChapterSnapshotsResponseModel.
type ChapterSnapshotsResponseModel struct {
Snapshots []ChapterSnapshotResponseModel `json:"snapshots"`
}
// ChapterStatisticsResponseModel defines model for ChapterStatisticsResponseModel.
type ChapterStatisticsResponseModel struct {
CharactersConverted int `json:"characters_converted"`
CharactersUnconverted int `json:"characters_unconverted"`
ParagraphsConverted int `json:"paragraphs_converted"`
ParagraphsUnconverted int `json:"paragraphs_unconverted"`
}
// ExtendedSubscriptionResponseModel defines model for ExtendedSubscriptionResponseModel.
type ExtendedSubscriptionResponseModel struct {
AllowedToExtendCharacterLimit bool `json:"allowed_to_extend_character_limit"`
CanExtendCharacterLimit bool `json:"can_extend_character_limit"`
CanExtendVoiceLimit bool `json:"can_extend_voice_limit"`
CanUseInstantVoiceCloning bool `json:"can_use_instant_voice_cloning"`
CanUseProfessionalVoiceCloning bool `json:"can_use_professional_voice_cloning"`
CharacterCount int `json:"character_count"`
CharacterLimit int `json:"character_limit"`
Currency ExtendedSubscriptionResponseModelCurrency `json:"currency"`
HasOpenInvoices bool `json:"has_open_invoices"`
MaxVoiceAddEdits int `json:"max_voice_add_edits"`
NextCharacterCountResetUnix int `json:"next_character_count_reset_unix"`
NextInvoice InvoiceResponseModel `json:"next_invoice"`
ProfessionalVoiceLimit int `json:"professional_voice_limit"`
Status ExtendedSubscriptionResponseModelStatus `json:"status"`
Tier string `json:"tier"`
VoiceAddEditCounter int `json:"voice_add_edit_counter"`
VoiceLimit int `json:"voice_limit"`
}
// ExtendedSubscriptionResponseModelCurrency defines model for ExtendedSubscriptionResponseModel.Currency.
type ExtendedSubscriptionResponseModelCurrency string
// ExtendedSubscriptionResponseModelStatus defines model for ExtendedSubscriptionResponseModel.Status.
type ExtendedSubscriptionResponseModelStatus string
// FeedbackResponseModel defines model for FeedbackResponseModel.
type FeedbackResponseModel struct {
AudioQuality bool `json:"audio_quality"`
Emotions bool `json:"emotions"`
Feedback string `json:"feedback"`
Glitches bool `json:"glitches"`
InaccurateClone bool `json:"inaccurate_clone"`
Other bool `json:"other"`
ReviewStatus *string `json:"review_status,omitempty"`
ThumbsUp bool `json:"thumbs_up"`
}
// FineTuningResponseModel defines model for FineTuningResponseModel.
type FineTuningResponseModel struct {
FineTuningRequested bool `json:"fine_tuning_requested"`
FinetuningState FineTuningResponseModelFinetuningState `json:"finetuning_state"`
IsAllowedToFineTune bool `json:"is_allowed_to_fine_tune"`
Language string `json:"language"`
ManualVerification ManualVerificationResponseModel `json:"manual_verification"`
ManualVerificationRequested bool `json:"manual_verification_requested"`
SliceIds []string `json:"slice_ids"`
VerificationAttempts []VerificationAttemptResponseModel `json:"verification_attempts"`
VerificationAttemptsCount int `json:"verification_attempts_count"`
VerificationFailures []string `json:"verification_failures"`
}
// FineTuningResponseModelFinetuningState defines model for FineTuningResponseModel.FinetuningState.
type FineTuningResponseModelFinetuningState string
// GetChaptersResponseModel defines model for GetChaptersResponseModel.
type GetChaptersResponseModel struct {
Chapters []ChapterResponseModel `json:"chapters"`
}
// GetHistoryResponseModel defines model for GetHistoryResponseModel.
type GetHistoryResponseModel struct {
HasMore bool `json:"has_more"`
History []HistoryItemResponseModel `json:"history"`
LastHistoryItemId string `json:"last_history_item_id"`
}
// GetProjectsResponseModel defines model for GetProjectsResponseModel.
type GetProjectsResponseModel struct {
Projects []ProjectResponseModel `json:"projects"`
}
// GetPronunciationDictionaryMetadataResponseModel defines model for GetPronunciationDictionaryMetadataResponseModel.
type GetPronunciationDictionaryMetadataResponseModel struct {
CreatedBy string `json:"created_by"`
CreationTimeUnix int `json:"creation_time_unix"`
Description *string `json:"description,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
}
// GetVoicesResponseModel defines model for GetVoicesResponseModel.
type GetVoicesResponseModel struct {
Voices []VoiceResponseModel `json:"voices"`
}
// HTTPValidationError defines model for HTTPValidationError.
type HTTPValidationError struct {
Detail *[]ValidationError `json:"detail,omitempty"`
}
// HistoryItemResponseModel defines model for HistoryItemResponseModel.
type HistoryItemResponseModel struct {
CharacterCountChangeFrom int `json:"character_count_change_from"`
CharacterCountChangeTo int `json:"character_count_change_to"`
ContentType string `json:"content_type"`
DateUnix int `json:"date_unix"`
Feedback FeedbackResponseModel `json:"feedback"`
HistoryItemId string `json:"history_item_id"`
ModelId string `json:"model_id"`
RequestId string `json:"request_id"`
Settings map[string]interface{} `json:"settings"`
State HistoryItemResponseModelState `json:"state"`
Text string `json:"text"`
VoiceCategory HistoryItemResponseModelVoiceCategory `json:"voice_category"`
VoiceId string `json:"voice_id"`
VoiceName string `json:"voice_name"`
}
// HistoryItemResponseModelState defines model for HistoryItemResponseModel.State.
type HistoryItemResponseModelState string
// HistoryItemResponseModelVoiceCategory defines model for HistoryItemResponseModel.VoiceCategory.
type HistoryItemResponseModelVoiceCategory string
// InvoiceResponseModel defines model for InvoiceResponseModel.
type InvoiceResponseModel struct {
AmountDueCents int `json:"amount_due_cents"`
NextPaymentAttemptUnix int `json:"next_payment_attempt_unix"`
}
// LanguageResponseModel defines model for LanguageResponseModel.
type LanguageResponseModel struct {
LanguageId string `json:"language_id"`
Name string `json:"name"`
}
// ManualVerificationFileResponseModel defines model for ManualVerificationFileResponseModel.
type ManualVerificationFileResponseModel struct {
FileId string `json:"file_id"`
FileName string `json:"file_name"`
MimeType string `json:"mime_type"`
SizeBytes int `json:"size_bytes"`
UploadDateUnix int `json:"upload_date_unix"`
}
// ManualVerificationResponseModel defines model for ManualVerificationResponseModel.
type ManualVerificationResponseModel struct {
ExtraText string `json:"extra_text"`
Files []ManualVerificationFileResponseModel `json:"files"`
RequestTimeUnix int `json:"request_time_unix"`
}
// ModelResponseModel defines model for ModelResponseModel.
type ModelResponseModel struct {
CanBeFinetuned bool `json:"can_be_finetuned"`
CanDoTextToSpeech bool `json:"can_do_text_to_speech"`
CanDoVoiceConversion bool `json:"can_do_voice_conversion"`
CanUseSpeakerBoost bool `json:"can_use_speaker_boost"`
CanUseStyle bool `json:"can_use_style"`
Description string `json:"description"`
Languages []LanguageResponseModel `json:"languages"`
MaxCharactersRequestFreeUser int `json:"max_characters_request_free_user"`
MaxCharactersRequestSubscribedUser int `json:"max_characters_request_subscribed_user"`
ModelId string `json:"model_id"`
Name string `json:"name"`
RequiresAlphaAccess bool `json:"requires_alpha_access"`
ServesProVoices bool `json:"serves_pro_voices"`
TokenCostFactor float32 `json:"token_cost_factor"`
}
// ProjectExtendedResponseModel defines model for ProjectExtendedResponseModel.
type ProjectExtendedResponseModel struct {
CanBeDownloaded bool `json:"can_be_downloaded"`
Chapters []ChapterResponseModel `json:"chapters"`
CreateDateUnix int `json:"create_date_unix"`
DefaultModelId string `json:"default_model_id"`
DefaultParagraphVoiceId string `json:"default_paragraph_voice_id"`
DefaultTitleVoiceId string `json:"default_title_voice_id"`
LastConversionDateUnix int `json:"last_conversion_date_unix"`
Name string `json:"name"`
ProjectId string `json:"project_id"`
State ProjectExtendedResponseModelState `json:"state"`
}
// ProjectExtendedResponseModelState defines model for ProjectExtendedResponseModel.State.
type ProjectExtendedResponseModelState string
// ProjectResponseModel defines model for ProjectResponseModel.
type ProjectResponseModel struct {
AcxVolumeNormalization bool `json:"acx_volume_normalization"`
Author string `json:"author"`
CanBeDownloaded bool `json:"can_be_downloaded"`
CreateDateUnix int `json:"create_date_unix"`
DefaultModelId string `json:"default_model_id"`
DefaultParagraphVoiceId string `json:"default_paragraph_voice_id"`
DefaultTitleVoiceId string `json:"default_title_voice_id"`
IsbnNumber string `json:"isbn_number"`
LastConversionDateUnix int `json:"last_conversion_date_unix"`
Name string `json:"name"`
ProjectId string `json:"project_id"`
State ProjectResponseModelState `json:"state"`
Title string `json:"title"`
}
// ProjectResponseModelState defines model for ProjectResponseModel.State.
type ProjectResponseModelState string
// ProjectSnapshotResponseModel defines model for ProjectSnapshotResponseModel.
type ProjectSnapshotResponseModel struct {
CreatedAtUnix int `json:"created_at_unix"`
Name string `json:"name"`
ProjectId string `json:"project_id"`
ProjectSnapshotId string `json:"project_snapshot_id"`
}
// ProjectSnapshotsResponseModel defines model for ProjectSnapshotsResponseModel.
type ProjectSnapshotsResponseModel struct {
Snapshots []ProjectSnapshotResponseModel `json:"snapshots"`
}
// PronunciationDictionaryVersionLocatorDBModel defines model for PronunciationDictionaryVersionLocatorDBModel.
type PronunciationDictionaryVersionLocatorDBModel struct {
PronunciationDictionaryId string `json:"pronunciation_dictionary_id"`
VersionId string `json:"version_id"`
}
// RecordingResponseModel defines model for RecordingResponseModel.
type RecordingResponseModel struct {
MimeType string `json:"mime_type"`
RecordingId string `json:"recording_id"`
SizeBytes int `json:"size_bytes"`
Transcription string `json:"transcription"`
UploadDateUnix int `json:"upload_date_unix"`
}
// SampleResponseModel defines model for SampleResponseModel.
type SampleResponseModel struct {
FileName string `json:"file_name"`
Hash string `json:"hash"`
MimeType string `json:"mime_type"`
SampleId string `json:"sample_id"`
SizeBytes int `json:"size_bytes"`
}
// SubscriptionResponseModel defines model for SubscriptionResponseModel.
type SubscriptionResponseModel struct {
AllowedToExtendCharacterLimit bool `json:"allowed_to_extend_character_limit"`
CanExtendCharacterLimit bool `json:"can_extend_character_limit"`
CanExtendVoiceLimit bool `json:"can_extend_voice_limit"`
CanUseInstantVoiceCloning bool `json:"can_use_instant_voice_cloning"`
CanUseProfessionalVoiceCloning bool `json:"can_use_professional_voice_cloning"`
CharacterCount int `json:"character_count"`
CharacterLimit int `json:"character_limit"`
Currency SubscriptionResponseModelCurrency `json:"currency"`
MaxVoiceAddEdits int `json:"max_voice_add_edits"`
NextCharacterCountResetUnix int `json:"next_character_count_reset_unix"`
ProfessionalVoiceLimit int `json:"professional_voice_limit"`
Status SubscriptionResponseModelStatus `json:"status"`
Tier string `json:"tier"`
VoiceAddEditCounter int `json:"voice_add_edit_counter"`
VoiceLimit int `json:"voice_limit"`
}
// SubscriptionResponseModelCurrency defines model for SubscriptionResponseModel.Currency.
type SubscriptionResponseModelCurrency string
// SubscriptionResponseModelStatus defines model for SubscriptionResponseModel.Status.
type SubscriptionResponseModelStatus string
// UserResponseModel defines model for UserResponseModel.
type UserResponseModel struct {
CanUseDelayedPaymentMethods bool `json:"can_use_delayed_payment_methods"`
IsNewUser bool `json:"is_new_user"`
Subscription SubscriptionResponseModel `json:"subscription"`
XiApiKey string `json:"xi_api_key"`
}
// ValidationError defines model for ValidationError.
type ValidationError struct {
Loc []ValidationError_Loc_Item `json:"loc"`
Msg string `json:"msg"`
Type string `json:"type"`
}
// ValidationErrorLoc0 defines model for .
type ValidationErrorLoc0 = string
// ValidationErrorLoc1 defines model for .
type ValidationErrorLoc1 = int
// ValidationError_Loc_Item defines model for ValidationError.loc.Item.
type ValidationError_Loc_Item struct {
union json.RawMessage
}
// VerificationAttemptResponseModel defines model for VerificationAttemptResponseModel.
type VerificationAttemptResponseModel struct {
Accepted bool `json:"accepted"`
DateUnix int `json:"date_unix"`
LevenshteinDistance float32 `json:"levenshtein_distance"`
Recording RecordingResponseModel `json:"recording"`
Similarity float32 `json:"similarity"`
Text string `json:"text"`
}
// VoiceResponseModel defines model for VoiceResponseModel.
type VoiceResponseModel struct {
AvailableForTiers []string `json:"available_for_tiers"`
Category string `json:"category"`
Description string `json:"description"`
FineTuning FineTuningResponseModel `json:"fine_tuning"`
HighQualityBaseModelIds []string `json:"high_quality_base_model_ids"`
Labels map[string]string `json:"labels"`
Name string `json:"name"`
PreviewUrl string `json:"preview_url"`
Samples []SampleResponseModel `json:"samples"`
Settings VoiceSettingsResponseModel `json:"settings"`
Sharing VoiceSharingResponseModel `json:"sharing"`
VoiceId string `json:"voice_id"`
}
// VoiceSettingsResponseModel defines model for VoiceSettingsResponseModel.
type VoiceSettingsResponseModel struct {
SimilarityBoost float32 `json:"similarity_boost"`
Stability float32 `json:"stability"`
Style *float32 `json:"style,omitempty"`
UseSpeakerBoost *bool `json:"use_speaker_boost,omitempty"`
}
// VoiceSharingResponseModel defines model for VoiceSharingResponseModel.
type VoiceSharingResponseModel struct {
ClonedByCount int `json:"cloned_by_count"`
Description string `json:"description"`
EnabledInLibrary bool `json:"enabled_in_library"`
HistoryItemSampleId string `json:"history_item_sample_id"`
Labels map[string]string `json:"labels"`
LikedByCount int `json:"liked_by_count"`
Name string `json:"name"`
OriginalVoiceId string `json:"original_voice_id"`
PublicOwnerId string `json:"public_owner_id"`
ReviewMessage string `json:"review_message"`
ReviewStatus VoiceSharingResponseModelReviewStatus `json:"review_status"`
Status VoiceSharingResponseModelStatus `json:"status"`
WhitelistedEmails []string `json:"whitelisted_emails"`
}
// VoiceSharingResponseModelReviewStatus defines model for VoiceSharingResponseModel.ReviewStatus.
type VoiceSharingResponseModelReviewStatus string
// VoiceSharingResponseModelStatus defines model for VoiceSharingResponseModel.Status.
type VoiceSharingResponseModelStatus string
// CreatesAudioNativeEnabledProjectV1AudioNativePostParams defines parameters for CreatesAudioNativeEnabledProjectV1AudioNativePost.
type CreatesAudioNativeEnabledProjectV1AudioNativePostParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetGeneratedItemsV1HistoryGetParams defines parameters for GetGeneratedItemsV1HistoryGet.
type GetGeneratedItemsV1HistoryGetParams struct {
// PageSize How many history items to return at maximum. Can not exceed 1000, defaults to 100.
PageSize *int `form:"page_size,omitempty" json:"page_size,omitempty"`
// StartAfterHistoryItemId After which history_item_id to start fetching, use this parameter to paginate across a large collection of history items. In case this parameter is not provided history items will be fetched starting from the most recently created one ordered descending by their creation date.
StartAfterHistoryItemId *string `form:"start_after_history_item_id,omitempty" json:"start_after_history_item_id,omitempty"`
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// DownloadHistoryItemsV1HistoryDownloadPostParams defines parameters for DownloadHistoryItemsV1HistoryDownloadPost.
type DownloadHistoryItemsV1HistoryDownloadPostParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// DeleteHistoryItemV1HistoryHistoryItemIdDeleteParams defines parameters for DeleteHistoryItemV1HistoryHistoryItemIdDelete.
type DeleteHistoryItemV1HistoryHistoryItemIdDeleteParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetHistoryItemByIDV1HistoryHistoryItemIdGetParams defines parameters for GetHistoryItemByIDV1HistoryHistoryItemIdGet.
type GetHistoryItemByIDV1HistoryHistoryItemIdGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetParams defines parameters for GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGet.
type GetAudioFromHistoryItemV1HistoryHistoryItemIdAudioGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetModelsV1ModelsGetParams defines parameters for GetModelsV1ModelsGet.
type GetModelsV1ModelsGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetProjectsV1ProjectsGetParams defines parameters for GetProjectsV1ProjectsGet.
type GetProjectsV1ProjectsGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// AddProjectV1ProjectsAddPostParams defines parameters for AddProjectV1ProjectsAddPost.
type AddProjectV1ProjectsAddPostParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// DeleteProjectV1ProjectsProjectIdDeleteParams defines parameters for DeleteProjectV1ProjectsProjectIdDelete.
type DeleteProjectV1ProjectsProjectIdDeleteParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetProjectByIDV1ProjectsProjectIdGetParams defines parameters for GetProjectByIDV1ProjectsProjectIdGet.
type GetProjectByIDV1ProjectsProjectIdGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetChaptersV1ProjectsProjectIdChaptersGetParams defines parameters for GetChaptersV1ProjectsProjectIdChaptersGet.
type GetChaptersV1ProjectsProjectIdChaptersGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteParams defines parameters for DeleteChapterV1ProjectsProjectIdChaptersChapterIdDelete.
type DeleteChapterV1ProjectsProjectIdChaptersChapterIdDeleteParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetChapterByIDV1ProjectsProjectIdChaptersChapterIdGetParams defines parameters for GetChapterByIDV1ProjectsProjectIdChaptersChapterIdGet.
type GetChapterByIDV1ProjectsProjectIdChaptersChapterIdGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostParams defines parameters for ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPost.
type ConvertChapterV1ProjectsProjectIdChaptersChapterIdConvertPostParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetChapterSnapshotsV1ProjectsProjectIdChaptersChapterIdSnapshotsGetParams defines parameters for GetChapterSnapshotsV1ProjectsProjectIdChaptersChapterIdSnapshotsGet.
type GetChapterSnapshotsV1ProjectsProjectIdChaptersChapterIdSnapshotsGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// StreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPostParams defines parameters for StreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.
type StreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPostParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// ConvertProjectV1ProjectsProjectIdConvertPostParams defines parameters for ConvertProjectV1ProjectsProjectIdConvertPost.
type ConvertProjectV1ProjectsProjectIdConvertPostParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetProjectSnapshotsV1ProjectsProjectIdSnapshotsGetParams defines parameters for GetProjectSnapshotsV1ProjectsProjectIdSnapshotsGet.
type GetProjectSnapshotsV1ProjectsProjectIdSnapshotsGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// StreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPostParams defines parameters for StreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.
type StreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPostParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostParams defines parameters for UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost.
type UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// AddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePostParams defines parameters for AddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.
type AddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePostParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetMetadataForAPronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdGetParams defines parameters for GetMetadataForAPronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdGet.
type GetMetadataForAPronunciationDictionaryV1PronunciationDictionariesPronunciationDictionaryIdGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// TextToSpeechV1TextToSpeechVoiceIdPostParams defines parameters for TextToSpeechV1TextToSpeechVoiceIdPost.
type TextToSpeechV1TextToSpeechVoiceIdPostParams struct {
// OptimizeStreamingLatency You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model. Possible values:
// 0 - default mode (no latency optimizations)
// 1 - normal latency optimizations (about 50% of possible latency improvement of option 3)
// 2 - strong latency optimizations (about 75% of possible latency improvement of option 3)
// 3 - max latency optimizations
// 4 - max latency optimizations, but also with text normalizer turned off for even more latency savings (best latency, but can mispronounce eg numbers and dates).
//
// Defaults to 0.
OptimizeStreamingLatency *int `form:"optimize_streaming_latency,omitempty" json:"optimize_streaming_latency,omitempty"`
// OutputFormat Output format of the generated audio. Must be one of:
// mp3_44100_32 - output format, mp3 with 44.1kHz sample rate at 32kbps.
// mp3_44100_64 - output format, mp3 with 44.1kHz sample rate at 64kbps.
// mp3_44100_96 - output format, mp3 with 44.1kHz sample rate at 96kbps.
// mp3_44100_128 - default output format, mp3 with 44.1kHz sample rate at 128kbps.
// mp3_44100_192 - output format, mp3 with 44.1kHz sample rate at 192kbps. Requires you to be subscribed to Creator tier or above.
// pcm_16000 - PCM format (S16LE) with 16kHz sample rate.
// pcm_22050 - PCM format (S16LE) with 22.05kHz sample rate.
// pcm_24000 - PCM format (S16LE) with 24kHz sample rate.
// pcm_44100 - PCM format (S16LE) with 44.1kHz sample rate. Requires you to be subscribed to Independent Publisher tier or above.
// ulaw_8000 - μ-law format (sometimes written mu-law, often approximated as u-law) with 8kHz sample rate. Note that this format is commonly used for Twilio audio inputs.
OutputFormat *string `form:"output_format,omitempty" json:"output_format,omitempty"`
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// TextToSpeechV1TextToSpeechVoiceIdStreamPostParams defines parameters for TextToSpeechV1TextToSpeechVoiceIdStreamPost.
type TextToSpeechV1TextToSpeechVoiceIdStreamPostParams struct {
// OptimizeStreamingLatency You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model. Possible values:
// 0 - default mode (no latency optimizations)
// 1 - normal latency optimizations (about 50% of possible latency improvement of option 3)
// 2 - strong latency optimizations (about 75% of possible latency improvement of option 3)
// 3 - max latency optimizations
// 4 - max latency optimizations, but also with text normalizer turned off for even more latency savings (best latency, but can mispronounce eg numbers and dates).
//
// Defaults to 0.
OptimizeStreamingLatency *int `form:"optimize_streaming_latency,omitempty" json:"optimize_streaming_latency,omitempty"`
// OutputFormat Output format of the generated audio. Must be one of:
// mp3_44100_32 - output format, mp3 with 44.1kHz sample rate at 32kbps.
// mp3_44100_64 - output format, mp3 with 44.1kHz sample rate at 64kbps.
// mp3_44100_96 - output format, mp3 with 44.1kHz sample rate at 96kbps.
// mp3_44100_128 - default output format, mp3 with 44.1kHz sample rate at 128kbps.
// mp3_44100_192 - output format, mp3 with 44.1kHz sample rate at 192kbps. Requires you to be subscribed to Creator tier or above.
// pcm_16000 - PCM format (S16LE) with 16kHz sample rate.
// pcm_22050 - PCM format (S16LE) with 22.05kHz sample rate.
// pcm_24000 - PCM format (S16LE) with 24kHz sample rate.
// pcm_44100 - PCM format (S16LE) with 44.1kHz sample rate. Requires you to be subscribed to Independent Publisher tier or above.
// ulaw_8000 - μ-law format (sometimes written mu-law, often approximated as u-law) with 8kHz sample rate. Note that this format is commonly used for Twilio audio inputs.
OutputFormat *string `form:"output_format,omitempty" json:"output_format,omitempty"`
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetUserInfoV1UserGetParams defines parameters for GetUserInfoV1UserGet.
type GetUserInfoV1UserGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetUserSubscriptionInfoV1UserSubscriptionGetParams defines parameters for GetUserSubscriptionInfoV1UserSubscriptionGet.
type GetUserSubscriptionInfoV1UserSubscriptionGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetVoicesV1VoicesGetParams defines parameters for GetVoicesV1VoicesGet.
type GetVoicesV1VoicesGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// AddVoiceV1VoicesAddPostParams defines parameters for AddVoiceV1VoicesAddPost.
type AddVoiceV1VoicesAddPostParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// DeleteVoiceV1VoicesVoiceIdDeleteParams defines parameters for DeleteVoiceV1VoicesVoiceIdDelete.
type DeleteVoiceV1VoicesVoiceIdDeleteParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetVoiceV1VoicesVoiceIdGetParams defines parameters for GetVoiceV1VoicesVoiceIdGet.
type GetVoiceV1VoicesVoiceIdGetParams struct {
// WithSettings If set will return settings information corresponding to the voice, requires authorization.
WithSettings *bool `form:"with_settings,omitempty" json:"with_settings,omitempty"`
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// EditVoiceV1VoicesVoiceIdEditPostParams defines parameters for EditVoiceV1VoicesVoiceIdEditPost.
type EditVoiceV1VoicesVoiceIdEditPostParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteParams defines parameters for DeleteSampleV1VoicesVoiceIdSamplesSampleIdDelete.
type DeleteSampleV1VoicesVoiceIdSamplesSampleIdDeleteParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetParams defines parameters for GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGet.
type GetAudioFromSampleV1VoicesVoiceIdSamplesSampleIdAudioGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// GetVoiceSettingsV1VoicesVoiceIdSettingsGetParams defines parameters for GetVoiceSettingsV1VoicesVoiceIdSettingsGet.
type GetVoiceSettingsV1VoicesVoiceIdSettingsGetParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONBody defines parameters for EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost.
type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONBody = VoiceSettingsResponseModel
// EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams defines parameters for EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost.
type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostParams struct {
// XiApiKey Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
XiApiKey *string `json:"xi-api-key,omitempty"`
}
// CreatesAudioNativeEnabledProjectV1AudioNativePostMultipartRequestBody defines body for CreatesAudioNativeEnabledProjectV1AudioNativePost for multipart/form-data ContentType.
type CreatesAudioNativeEnabledProjectV1AudioNativePostMultipartRequestBody = BodyCreatesAudioNativeEnabledProjectV1AudioNativePost
// DownloadHistoryItemsV1HistoryDownloadPostJSONRequestBody defines body for DownloadHistoryItemsV1HistoryDownloadPost for application/json ContentType.
type DownloadHistoryItemsV1HistoryDownloadPostJSONRequestBody = BodyDownloadHistoryItemsV1HistoryDownloadPost
// AddProjectV1ProjectsAddPostMultipartRequestBody defines body for AddProjectV1ProjectsAddPost for multipart/form-data ContentType.
type AddProjectV1ProjectsAddPostMultipartRequestBody = BodyAddProjectV1ProjectsAddPost
// UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostJSONRequestBody defines body for UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost for application/json ContentType.
type UpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPostJSONRequestBody = BodyUpdatePronunciationDictionariesV1ProjectsProjectIdUpdatePronunciationDictionariesPost
// AddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePostMultipartRequestBody defines body for AddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost for multipart/form-data ContentType.
type AddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePostMultipartRequestBody = BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost
// TextToSpeechV1TextToSpeechVoiceIdPostJSONRequestBody defines body for TextToSpeechV1TextToSpeechVoiceIdPost for application/json ContentType.
type TextToSpeechV1TextToSpeechVoiceIdPostJSONRequestBody = BodyTextToSpeechV1TextToSpeechVoiceIdPost
// TextToSpeechV1TextToSpeechVoiceIdStreamPostJSONRequestBody defines body for TextToSpeechV1TextToSpeechVoiceIdStreamPost for application/json ContentType.
type TextToSpeechV1TextToSpeechVoiceIdStreamPostJSONRequestBody = BodyTextToSpeechV1TextToSpeechVoiceIdStreamPost
// AddVoiceV1VoicesAddPostMultipartRequestBody defines body for AddVoiceV1VoicesAddPost for multipart/form-data ContentType.
type AddVoiceV1VoicesAddPostMultipartRequestBody = BodyAddVoiceV1VoicesAddPost
// EditVoiceV1VoicesVoiceIdEditPostMultipartRequestBody defines body for EditVoiceV1VoicesVoiceIdEditPost for multipart/form-data ContentType.
type EditVoiceV1VoicesVoiceIdEditPostMultipartRequestBody = BodyEditVoiceV1VoicesVoiceIdEditPost
// EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONRequestBody defines body for EditVoiceSettingsV1VoicesVoiceIdSettingsEditPost for application/json ContentType.
type EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONRequestBody = EditVoiceSettingsV1VoicesVoiceIdSettingsEditPostJSONBody
// AsValidationErrorLoc0 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc0
func (t ValidationError_Loc_Item) AsValidationErrorLoc0() (ValidationErrorLoc0, error) {
var body ValidationErrorLoc0
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromValidationErrorLoc0 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc0
func (t *ValidationError_Loc_Item) FromValidationErrorLoc0(v ValidationErrorLoc0) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergeValidationErrorLoc0 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc0
func (t *ValidationError_Loc_Item) MergeValidationErrorLoc0(v ValidationErrorLoc0) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JsonMerge(t.union, b)
t.union = merged
return err
}
// AsValidationErrorLoc1 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc1