Package net.webpdf.wsclient.openapi
Class OperationSoundActionPlaySound
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationSoundActionPlaySound
-
public class OperationSoundActionPlaySound extends Object
When activated, the playSound Element plays the specified audio data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationSoundActionPlaySound.EncodingEnumThe encoding of the audio file.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ENCODINGstatic StringJSON_PROPERTY_MIXstatic StringJSON_PROPERTY_REPEATstatic StringJSON_PROPERTY_SAMPLE_SIZEstatic StringJSON_PROPERTY_SAMPLING_RATEstatic StringJSON_PROPERTY_SOUNDstatic StringJSON_PROPERTY_SOUND_CHANNELSstatic StringJSON_PROPERTY_SYNCHRONOUSstatic StringJSON_PROPERTY_VOLUME
-
Constructor Summary
Constructors Constructor Description OperationSoundActionPlaySound()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationSoundActionPlaySoundaddSoundItem(byte[] soundItem)OperationSoundActionPlaySoundencoding(OperationSoundActionPlaySound.EncodingEnum encoding)booleanequals(Object o)@Nullable OperationSoundActionPlaySound.EncodingEnumgetEncoding()The encoding of the audio file.@Nullable BooleangetMix()If this value is set to true, it will be possible to play the audio track at the same time as other audio tracks.@Nullable BooleangetRepeat()If this value is set to true, the audio track should be repeated endlessly.@Nullable IntegergetSampleSize()The number of bits per sample per audio channel.@Nullable FloatgetSamplingRate()The Sample Rate in Samples per Second.@NotNull List<byte[]>getSound()The audio file that should be played.@Nullable IntegergetSoundChannels()The number of audio channels.@Nullable BooleangetSynchronous()If this value is set to true, the reader program must guarantee that the audio track will be plated in a completely synchronized manner without any interruptions and, accordingly, suppress any user interaction (except for cancelling the audio) while the audio is playing.@Nullable IntegergetVolume()A floating-point number between 100 and -100 that configures the volume for audio playback (as a percentage).inthashCode()OperationSoundActionPlaySoundmix(Boolean mix)OperationSoundActionPlaySoundrepeat(Boolean repeat)OperationSoundActionPlaySoundsampleSize(Integer sampleSize)OperationSoundActionPlaySoundsamplingRate(Float samplingRate)voidsetEncoding(OperationSoundActionPlaySound.EncodingEnum encoding)voidsetMix(Boolean mix)voidsetRepeat(Boolean repeat)voidsetSampleSize(Integer sampleSize)voidsetSamplingRate(Float samplingRate)voidsetSound(List<byte[]> sound)voidsetSoundChannels(Integer soundChannels)voidsetSynchronous(Boolean synchronous)voidsetVolume(Integer volume)OperationSoundActionPlaySoundsound(List<byte[]> sound)OperationSoundActionPlaySoundsoundChannels(Integer soundChannels)OperationSoundActionPlaySoundsynchronous(Boolean synchronous)StringtoString()OperationSoundActionPlaySoundvolume(Integer volume)
-
-
-
Field Detail
-
JSON_PROPERTY_ENCODING
public static final String JSON_PROPERTY_ENCODING
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MIX
public static final String JSON_PROPERTY_MIX
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REPEAT
public static final String JSON_PROPERTY_REPEAT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SAMPLE_SIZE
public static final String JSON_PROPERTY_SAMPLE_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SAMPLING_RATE
public static final String JSON_PROPERTY_SAMPLING_RATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOUND
public static final String JSON_PROPERTY_SOUND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOUND_CHANNELS
public static final String JSON_PROPERTY_SOUND_CHANNELS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SYNCHRONOUS
public static final String JSON_PROPERTY_SYNCHRONOUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VOLUME
public static final String JSON_PROPERTY_VOLUME
- See Also:
- Constant Field Values
-
-
Method Detail
-
encoding
public OperationSoundActionPlaySound encoding(OperationSoundActionPlaySound.EncodingEnum encoding)
-
getEncoding
@Nullable public @Nullable OperationSoundActionPlaySound.EncodingEnum getEncoding()
The encoding of the audio file. Possible values are: * Raw * Signed * muLaw * ALaw- Returns:
- encoding
-
setEncoding
public void setEncoding(OperationSoundActionPlaySound.EncodingEnum encoding)
-
mix
public OperationSoundActionPlaySound mix(Boolean mix)
-
getMix
@Nullable public @Nullable Boolean getMix()
If this value is set to true, it will be possible to play the audio track at the same time as other audio tracks. If it is set to false instead, any audio tracks that were already playing will be stopped previously.- Returns:
- mix
-
setMix
public void setMix(Boolean mix)
-
repeat
public OperationSoundActionPlaySound repeat(Boolean repeat)
-
getRepeat
@Nullable public @Nullable Boolean getRepeat()
If this value is set to true, the audio track should be repeated endlessly.- Returns:
- repeat
-
setRepeat
public void setRepeat(Boolean repeat)
-
sampleSize
public OperationSoundActionPlaySound sampleSize(Integer sampleSize)
-
getSampleSize
@Nullable public @Nullable Integer getSampleSize()
The number of bits per sample per audio channel. minimum: 1- Returns:
- sampleSize
-
setSampleSize
public void setSampleSize(Integer sampleSize)
-
samplingRate
public OperationSoundActionPlaySound samplingRate(Float samplingRate)
-
getSamplingRate
@Nullable public @Nullable Float getSamplingRate()
The Sample Rate in Samples per Second. minimum: 1- Returns:
- samplingRate
-
setSamplingRate
public void setSamplingRate(Float samplingRate)
-
sound
public OperationSoundActionPlaySound sound(List<byte[]> sound)
-
addSoundItem
public OperationSoundActionPlaySound addSoundItem(byte[] soundItem)
-
getSound
@NotNull public @NotNull List<byte[]> getSound()
The audio file that should be played. The file must be encoded as a BASE64 value. The passed file must be completely independent and contain all the information and data required to play it. The AIFF, AIFF-C, RIFF (\\*.wav), snd(\\*.au) audio formats are supported, for example.- Returns:
- sound
-
setSound
public void setSound(List<byte[]> sound)
-
soundChannels
public OperationSoundActionPlaySound soundChannels(Integer soundChannels)
-
getSoundChannels
@Nullable public @Nullable Integer getSoundChannels()
The number of audio channels. minimum: 1- Returns:
- soundChannels
-
setSoundChannels
public void setSoundChannels(Integer soundChannels)
-
synchronous
public OperationSoundActionPlaySound synchronous(Boolean synchronous)
-
getSynchronous
@Nullable public @Nullable Boolean getSynchronous()
If this value is set to true, the reader program must guarantee that the audio track will be plated in a completely synchronized manner without any interruptions and, accordingly, suppress any user interaction (except for cancelling the audio) while the audio is playing.- Returns:
- synchronous
-
setSynchronous
public void setSynchronous(Boolean synchronous)
-
volume
public OperationSoundActionPlaySound volume(Integer volume)
-
getVolume
@Nullable public @Nullable Integer getVolume()
A floating-point number between 100 and -100 that configures the volume for audio playback (as a percentage). minimum: -100 maximum: 100- Returns:
- volume
-
setVolume
public void setVolume(Integer volume)
-
-