File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed
src/main/java/com/ibm/watson/developer_cloud Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -86,11 +86,27 @@ private HttpMediaType() {
8686 * Field AUDIO_OGG. (value is "audio/ogg; codecs=opus")
8787 */
8888 public static final String AUDIO_OGG = "audio/ogg; codecs=opus" ;
89+
90+ /**
91+ * Field AUDIO_OGG_VORBIS. (value is "audio/ogg; codecs=vorbis")
92+ */
93+ public static final String AUDIO_OGG_VORBIS = "audio/ogg; codecs=vorbis" ;
94+
8995 /**
9096 * Field AUDIO_WAV. (value is "audio/wav")
9197 */
9298 public static final String AUDIO_WAV = "audio/wav" ;
9399
100+ /**
101+ * Field AUDIO_PCM. (value is "audio/l16")
102+ */
103+ public static final String AUDIO_PCM = "audio/l16" ;
104+
105+ /**
106+ * Field AUDIO_BASIC. (value is "audio/basic")
107+ */
108+ public static final String AUDIO_BASIC = "audio/basic" ;
109+
94110 /**
95111 * Field AUDIO_FLAC. (value is "audio/flac")
96112 */
@@ -164,4 +180,5 @@ public static String createAudioRaw(int rate) {
164180 * Field WILDCARD. (value is "*\/*")
165181 */
166182 public static final String WILDCARD = "*/*" ;
183+
167184}
Original file line number Diff line number Diff line change @@ -27,9 +27,18 @@ public enum AudioFormat {
2727 /** OGG format (value is "audio/ogg; codecs=opus"). */
2828 OGG (HttpMediaType .AUDIO_OGG ),
2929
30+ /** OGG_VORBIS format (value is "audio/ogg; codecs=vorbis"). */
31+ OGG_VORBIS (HttpMediaType .AUDIO_OGG_VORBIS ),
32+
3033 /** WAV format (value is "audio/wav"). */
31- WAV (HttpMediaType .AUDIO_WAV );
32-
34+ WAV (HttpMediaType .AUDIO_WAV ),
35+
36+ /** Linear 16-bit Pulse-Code Modulation (PCM) format (value is "audio/l16"). */
37+ PCM (HttpMediaType .AUDIO_PCM ),
38+
39+ /** BASIC format, single-channel audio encoded using 8-bit u-law (or mu-law) data sampled at 8 KHz (value is "audio/basic"). */
40+ BASIC (HttpMediaType .AUDIO_BASIC );
41+
3342 private String mediaType ;
3443
3544 /**
You can’t perform that action at this time.
0 commit comments