TranslationAudio

data class TranslationAudio


Represents an audio packet for the speech translator.

This class is used to wrap raw audio data along with its Locale representing the language of the audio, for sending input audio.

Summary

Public constructors

TranslationAudio(locale: Locale, audioBytes: ByteArray)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

ByteArray

The raw audio data (PCM 16-bit, 16kHz, mono).

Locale

The language of the audio data.

Public constructors

TranslationAudio

TranslationAudio(locale: Locale, audioBytes: ByteArray)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

audioBytes

val audioBytes: ByteArray

The raw audio data (PCM 16-bit, 16kHz, mono).

locale

val locale: Locale

The language of the audio data.