You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/bandwidth/voice/bxml/verbs/Record.java
+73-39Lines changed: 73 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,8 @@ public class Record implements Verb {
17
17
publicstaticfinalStringTYPE_NAME = "Record";
18
18
19
19
/**
20
-
* <i>(optional)</i> A boolean value. If true, the recording will be submitted for transcription upon completion. Defaults to false.
20
+
* <i>(optional)</i> A boolean value. If true, the recording will be submitted
21
+
* for transcription upon completion. Defaults to false.
21
22
*/
22
23
@XmlAttribute
23
24
privatebooleantranscribe;
@@ -37,37 +38,43 @@ public class Record implements Verb {
37
38
privateURItranscriptionAvailableUrl;
38
39
39
40
/**
40
-
* <i>(optional)</i> The HTTP method to use for the request to transcriptionAvailableUrl. GET or POST. Default Value is POST.
41
+
* <i>(optional)</i> The HTTP method to use for the request to
42
+
* transcriptionAvailableUrl. GET or POST. Default Value is POST.
41
43
*/
42
44
@XmlAttribute
43
45
privateMethodtranscriptionAvailableMethod;
44
46
45
47
/**
46
-
* <i>(optional)</i> URL to send the Record Complete event to once it has ended. Accepts BXML.
48
+
* <i>(optional)</i> URL to send the Record Complete event to once it has ended.
49
+
* Accepts BXML.
47
50
*/
48
51
@XmlAttribute
49
52
privateURIrecordCompleteUrl;
50
53
51
54
/**
52
-
* <i>(optional)</i> The HTTP method to use for the request to recordCompleteUrl. GET or POST. Default Value is POST.
55
+
* <i>(optional)</i> The HTTP method to use for the request to
56
+
* recordCompleteUrl. GET or POST. Default Value is POST.
53
57
*/
54
58
@XmlAttribute
55
59
privateMethodrecordCompleteMethod;
56
60
57
61
/**
58
-
* <i>(optional)</i> URL to send the Record Complete event to once it has ended. Accepts BXML.
62
+
* <i>(optional)</i> URL to send the Record Complete event to once it has ended.
63
+
* Accepts BXML.
59
64
*/
60
65
@XmlAttribute
61
66
privateURIrecordingAvailableUrl;
62
67
63
68
/**
64
-
* <i>(optional)</i> The HTTP method to use for the request to recordingAvailableUrl. GET or POST. Default Value is POST.
69
+
* <i>(optional)</i> The HTTP method to use for the request to
70
+
* recordingAvailableUrl. GET or POST. Default Value is POST.
65
71
*/
66
72
@XmlAttribute
67
73
privateMethodrecordingAvailableMethod;
68
74
69
75
/**
70
-
* <i>(optional)</i> A custom string that will be sent with this and all future callbacks unless overwritten by a future tag attribute or cleared.
76
+
* <i>(optional)</i> A custom string that will be sent with this and all future
77
+
* callbacks unless overwritten by a future tag attribute or cleared.
71
78
* <br/>
72
79
* May be cleared by setting tag=""
73
80
* <br/>
@@ -77,36 +84,42 @@ public class Record implements Verb {
77
84
privateStringtag;
78
85
79
86
/**
80
-
* <i>(optional)</i> The username to send in the HTTP request to recordCompleteUrl or recordingAvailableUrl. If specified, the URLs must be TLS-encrypted (i.e., https).
87
+
* <i>(optional)</i> The username to send in the HTTP request to
88
+
* recordCompleteUrl or recordingAvailableUrl. If specified, the URLs must be
89
+
* TLS-encrypted (i.e., https).
81
90
*/
82
91
@XmlAttribute
83
92
protectedStringusername;
84
93
85
94
/**
86
-
* <i>(optional)</i> The password to send in the HTTP request to recordCompleteUrl or recordingAvailableUrl. If specified, the URLs must be TLS-encrypted (i.e., https).
95
+
* <i>(optional)</i> The password to send in the HTTP request to
96
+
* recordCompleteUrl or recordingAvailableUrl. If specified, the URLs must be
97
+
* TLS-encrypted (i.e., https).
87
98
*/
88
99
@XmlAttribute
89
100
protectedStringpassword;
90
101
91
102
/**
92
-
* <i>(optional)</i> When pressed, this digit will terminate the recording. Default value is “#”.
103
+
* <i>(optional)</i> When pressed, this digit will terminate the recording.
104
+
* Default value is “#”.
93
105
*/
94
106
@XmlAttribute
95
107
protectedStringterminatingDigits;
96
108
97
109
/**
98
-
* <i>(optional)</i> Maximum length of recording (in seconds). Max 10800 (3 hours). Default value is 60.
110
+
* <i>(optional)</i> Maximum length of recording (in seconds). Max 10800 (3
111
+
* hours). Default value is 60.
99
112
*/
100
113
@XmlAttribute
101
114
protectedIntegermaxDuration;
102
115
103
116
/**
104
-
* <i>(optional)</i> The audio format that the recording will be saved as: mp3 or wav. Default value is wav.
117
+
* <i>(optional)</i> The audio format that the recording will be saved as: mp3
118
+
* or wav. Default value is wav.
105
119
*/
106
120
@XmlAttribute
107
121
protectedStringfileFormat;
108
122
109
-
110
123
@XmlAttribute
111
124
protectedStringfallbackUsername;
112
125
@@ -119,114 +132,135 @@ public class Record implements Verb {
119
132
@XmlAttribute
120
133
protectedMethodrecordCompleteFallbackMethod;
121
134
135
+
/**
136
+
* <i>(optional)</i> A boolean value to indicate that the recording may not be
137
+
* in English, and the transcription service will need to detect the dominant
138
+
* language the recording is in and transcribe accordingly.
139
+
* Current supported languages are English, French, and Spanish.
140
+
*/
141
+
@XmlAttribute
142
+
protectedBooleandetectLanguage;
122
143
123
144
publicstaticclassRecordBuilder {
124
145
125
146
/**
126
147
* <b>(required)</b> URL to send the transcriptionAvailable event to.
* <i>(optional)</i> The HTTP method to use for the request to transcriptionAvailableUrl. GET or POST. Default Value is POST. Converts String to Method using Method.fromValue(method)
180
+
* <i>(optional)</i> The HTTP method to use for the request to
181
+
* transcriptionAvailableUrl. GET or POST. Default Value is POST. Converts
* <i>(optional)</i> The HTTP method to use for the request to recordCompleteUrl. GET or POST. Default Value is POST. Converts String to Method using Method.fromValue(method)
224
+
* <i>(optional)</i> The HTTP method to use for the request to
225
+
* recordCompleteUrl. GET or POST. Default Value is POST. Converts String to
* <i>(optional)</i> The HTTP method to use for the request to recordingAvailableUrl. GET or POST. Default Value is POST. Converts String to Method using Method.fromValue(method)
259
+
* <i>(optional)</i> The HTTP method to use for the request to
260
+
* recordingAvailableUrl. GET or POST. Default Value is POST. Converts String to
0 commit comments