public class AudioFormat extends Object
TextToSpeech
service.Modifier and Type | Field and Description |
---|---|
static AudioFormat |
BASIC
BASIC format, single-channel audio encoded using 8-bit u-law (or mu-law) data sampled at 8 KHz (value is
"audio/basic").
|
static AudioFormat |
FLAC
FLAC format (value is "audio/flac").
|
static AudioFormat |
OGG
OGG format (value is "audio/ogg; codecs=opus").
|
static AudioFormat |
OGG_VORBIS
OGG_VORBIS format (value is "audio/ogg; codecs=vorbis").
|
static AudioFormat |
PCM
Deprecated.
|
static AudioFormat |
WAV
WAV format (value is "audio/wav").
|
Constructor and Description |
---|
AudioFormat(String mediaType)
Instantiates a new audio format.
|
Modifier and Type | Method and Description |
---|---|
static AudioFormat |
getPCM(int rate)
Linear 16-bit Pulse-Code Modulation (PCM) format (value is "audio/l16").
|
String |
toString() |
public static final AudioFormat FLAC
public static final AudioFormat OGG
public static final AudioFormat OGG_VORBIS
public static final AudioFormat WAV
@Deprecated public static final AudioFormat PCM
#getPCM()
.public static final AudioFormat BASIC
public AudioFormat(String mediaType)
mediaType
- the media typepublic static AudioFormat getPCM(int rate)
rate
- The sampling rate, in Hz.Copyright © 2015–2016 IBM Watson. All rights reserved.