public class AudioFormat
extends java.lang.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 |
WAV
WAV format (value is "audio/wav").
|
static AudioFormat |
WEBM
WEBM format (value is "audio/webm").
|
static AudioFormat |
WEBM_OPUS
WEBM format (value is "audio/webm; codecs=opus").
|
static AudioFormat |
WEBM_VORBIS
WEBM format (value is "audio/webm; codecs=vorbis").
|
Constructor and Description |
---|
AudioFormat(java.lang.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").
|
java.lang.String |
toString() |
public static final AudioFormat FLAC
public static final AudioFormat OGG
public static final AudioFormat OGG_VORBIS
public static final AudioFormat WAV
public static final AudioFormat WEBM
public static final AudioFormat WEBM_VORBIS
public static final AudioFormat WEBM_OPUS
public static final AudioFormat BASIC
public AudioFormat(java.lang.String mediaType)
mediaType
- the media typepublic static AudioFormat getPCM(int rate)
rate
- The sampling rate, in Hz.public java.lang.String toString()
toString
in class java.lang.Object