public enum AudioFormat extends Enum<AudioFormat>
TextToSpeech
service.Enum Constant and Description |
---|
BASIC
BASIC format, single-channel audio encoded using 8-bit u-law (or mu-law) data sampled at 8 KHz (value is "audio/basic").
|
FLAC
FLAC format (value is "audio/flac").
|
OGG
OGG format (value is "audio/ogg; codecs=opus").
|
OGG_VORBIS
OGG_VORBIS format (value is "audio/ogg; codecs=vorbis").
|
PCM
Linear 16-bit Pulse-Code Modulation (PCM) format (value is "audio/l16").
|
WAV
WAV format (value is "audio/wav").
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static AudioFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AudioFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 PCM
public static final AudioFormat BASIC
public static AudioFormat[] values()
for (AudioFormat c : AudioFormat.values()) System.out.println(c);
public static AudioFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<AudioFormat>
Copyright © 2015–2016. All rights reserved.