This repository was archived by the owner on Apr 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathshorthand.go
106 lines (84 loc) · 3.89 KB
/
shorthand.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
// Code generated by cmd/codegen/main.go; DO NOT EDIT.
// Run 'go generate' after adding new methods with a 'Client' pointer receiver.
package elevenlabs
import "io"
// TextToSpeech calls the TextToSpeech method on the default client.
func TextToSpeech(voiceID string, ttsReq TextToSpeechRequest, queries ...QueryFunc) ([]byte, error) {
return getDefaultClient().TextToSpeech(voiceID, ttsReq, queries...)
}
// TextToSpeechStream calls the TextToSpeechStream method on the default client.
func TextToSpeechStream(streamWriter io.Writer, voiceID string, ttsReq TextToSpeechRequest, queries ...QueryFunc) error {
return getDefaultClient().TextToSpeechStream(streamWriter, voiceID, ttsReq, queries...)
}
// GetModels calls the GetModels method on the default client.
func GetModels() ([]Model, error) {
return getDefaultClient().GetModels()
}
// GetVoices calls the GetVoices method on the default client.
func GetVoices() ([]Voice, error) {
return getDefaultClient().GetVoices()
}
// GetDefaultVoiceSettings calls the GetDefaultVoiceSettings method on the default client.
func GetDefaultVoiceSettings() (VoiceSettings, error) {
return getDefaultClient().GetDefaultVoiceSettings()
}
// GetVoiceSettings calls the GetVoiceSettings method on the default client.
func GetVoiceSettings(voiceId string) (VoiceSettings, error) {
return getDefaultClient().GetVoiceSettings(voiceId)
}
// GetVoice calls the GetVoice method on the default client.
func GetVoice(voiceId string, queries ...QueryFunc) (Voice, error) {
return getDefaultClient().GetVoice(voiceId, queries...)
}
// DeleteVoice calls the DeleteVoice method on the default client.
func DeleteVoice(voiceId string) error {
return getDefaultClient().DeleteVoice(voiceId)
}
// EditVoiceSettings calls the EditVoiceSettings method on the default client.
func EditVoiceSettings(voiceId string, settings VoiceSettings) error {
return getDefaultClient().EditVoiceSettings(voiceId, settings)
}
// AddVoice calls the AddVoice method on the default client.
func AddVoice(voiceReq AddEditVoiceRequest) (string, error) {
return getDefaultClient().AddVoice(voiceReq)
}
// EditVoice calls the EditVoice method on the default client.
func EditVoice(voiceId string, voiceReq AddEditVoiceRequest) error {
return getDefaultClient().EditVoice(voiceId, voiceReq)
}
// DeleteSample calls the DeleteSample method on the default client.
func DeleteSample(voiceId, sampleId string) error {
return getDefaultClient().DeleteSample(voiceId, sampleId)
}
// GetSampleAudio calls the GetSampleAudio method on the default client.
func GetSampleAudio(voiceId, sampleId string) ([]byte, error) {
return getDefaultClient().GetSampleAudio(voiceId, sampleId)
}
// GetHistory calls the GetHistory method on the default client.
func GetHistory(queries ...QueryFunc) (GetHistoryResponse, NextHistoryPageFunc, error) {
return getDefaultClient().GetHistory(queries...)
}
// GetHistoryItem calls the GetHistoryItem method on the default client.
func GetHistoryItem(itemId string) (HistoryItem, error) {
return getDefaultClient().GetHistoryItem(itemId)
}
// DeleteHistoryItem calls the DeleteHistoryItem method on the default client.
func DeleteHistoryItem(itemId string) error {
return getDefaultClient().DeleteHistoryItem(itemId)
}
// GetHistoryItemAudio calls the GetHistoryItemAudio method on the default client.
func GetHistoryItemAudio(itemId string) ([]byte, error) {
return getDefaultClient().GetHistoryItemAudio(itemId)
}
// DownloadHistoryAudio calls the DownloadHistoryAudio method on the default client.
func DownloadHistoryAudio(dlReq DownloadHistoryRequest) ([]byte, error) {
return getDefaultClient().DownloadHistoryAudio(dlReq)
}
// GetSubscription calls the GetSubscription method on the default client.
func GetSubscription() (Subscription, error) {
return getDefaultClient().GetSubscription()
}
// GetUser calls the GetUser method on the default client.
func GetUser() (User, error) {
return getDefaultClient().GetUser()
}