SpeechTranslatorResponse.Audio

public final class SpeechTranslatorResponse.Audio implements SpeechTranslatorResponse


Represents a successful audio output result.

Summary

Public constructors

Audio(@NonNull Locale locale, @NonNull byte[] audioBytes)

Public methods

boolean
equals(Object other)
final @NonNull byte[]

the raw audio bytes of the translated audio.

final @NonNull Locale

the Locale of the translated audio.

int

Public constructors

Audio

public Audio(@NonNull Locale locale, @NonNull byte[] audioBytes)

Public methods

equals

public boolean equals(Object other)

getAudioBytes

public final @NonNull byte[] getAudioBytes()

the raw audio bytes of the translated audio.

getLocale

public final @NonNull Locale getLocale()

the Locale of the translated audio.

hashCode

public int hashCode()