---
updatedAt: 2026-08-18T01:46:20.000Z
---

Fetch the complete documentation index at: https://docs.apptek.com/llms.txt. Use this file to discover all available pages before exploring further.

# Interfaces

# Interfaces & Data Models

A complete reference for all interface configurations, data payloads, and callback types.

## Quick Index

* [AppTekSDKCallbacks](#appteksdkcallbacks)
* [AudioMetrics](#audiometrics)
* [ClientAuth](#clientauth)
* [Language](#language)
* [MicrophoneConfig](#microphoneconfig)
* [NetworkStatsResponse](#networkstatsresponse)
* [PingResponse](#pingresponse)
* [Recognize2AudioConfig](#recognize2audioconfig)
* [Recognize2AvailableResponse](#recognize2availableresponse)
* [Recognize2DiarizationInformation](#recognize2diarizationinformation)
* [Recognize2DiarizationSpeakerSection](#recognize2diarizationspeakersection)
* [Recognize2DiarizerConfig](#recognize2diarizerconfig)
* [Recognize2PCTranscription](#recognize2pctranscription)
* [Recognize2Progress](#recognize2progress)
* [Recognize2Segment](#recognize2segment)
* [Recognize2SegmenterConfig](#recognize2segmenterconfig)
* [Recognize2SpeechConfig](#recognize2speechconfig)
* [Recognize2StreamConfig](#recognize2streamconfig)
* [Recognize2StreamResponse](#recognize2streamresponse)
* [Recognize2TimedTranscription](#recognize2timedtranscription)
* [Recognize2Transcription](#recognize2transcription)
* [Recognize2TranslateConfig](#recognize2translateconfig)
* [Recognize2Translation](#recognize2translation)
* [RecognizeAvailable](#recognizeavailable)
* [RoomActivatedStatus](#roomactivatedstatus)
* [RoomActivationMessage](#roomactivationmessage)
* [RoomListResponse](#roomlistresponse)
* [RoomResponse](#roomresponse)
* [TranslateAvailable](#translateavailable)
* [TranslateAvailableResponse](#translateavailableresponse)
* [TranslateGlossaryOptions](#translateglossaryoptions)
* [TranslateTextMetaOptions](#translatetextmetaoptions)

***

## <a id="appteksdkcallbacks"></a> AppTekSDKCallbacks

### Properties

| Property                                          | Type                  | Description                                                                                                               |
| ------------------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| <a id="onaudiometrics"></a> `onAudioMetrics?`     | (`metrics`) => `void` | Optional callback that receives real-time audio quality metrics.                                                          |
| <a id="ondata"></a> `onData`                      | (`data`) => `void`    | Called when data receives from the server. The data object contains fields like transcription, segment, translation, etc. |
| <a id="onerror"></a> `onError`                    | (`err`) => `void`     | -                                                                                                                         |
| <a id="onmicrophonedata"></a> `onMicrophoneData?` | (`data`) => `void`    | Optional callback receives raw microphone input (Float32Array) for visualization.                                         |
| <a id="onstatuschange"></a> `onStatusChange?`     | (`status`) => `void`  | -                                                                                                                         |

***

## <a id="audiometrics"></a> AudioMetrics

### Properties

| Property                                 | Type                                     | Description                                                                                                     |          |            |
| ---------------------------------------- | ---------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -------- | ---------- |
| <a id="isclipping"></a> `isClipping`     | `boolean`                                | Boolean indicating if the signal is clipping (amplitude near maximum, causing distortion)                       |          |            |
| <a id="noisefloordb"></a> `noiseFloorDb` | `number`                                 | Estimated background noise floor in dB FS (based on a rolling minimum of signal level)                          |          |            |
| <a id="peak"></a> `peak`                 | `number`                                 | Maximum absolute peak amplitude in the current frame (0.0 to 1.0)                                               |          |            |
| <a id="snrdb"></a> `snrDb`               | `number`                                 | Estimated Signal-to-Noise Ratio (SNR) in dB. High is good (e.g. >25dB), low indicates noisy speech (e.g. <15dB) |          |            |
| <a id="status"></a> `status`             | `"silent"` \| `"normal"` \| `"clipping"` | Text representation of audio state: 'silent'                                                                    | 'normal' | 'clipping' |
| <a id="volume"></a> `volume`             | `number`                                 | Root Mean Square (RMS) volume level, normalized between 0.0 (silence) and 1.0 (max amplitude)                   |          |            |
| <a id="volumedb"></a> `volumeDb`         | `number`                                 | Volume level represented in Decibels (dB FS), ranging from -100 (silence) to 0 (maximum level)                  |          |            |

***

## <a id="clientauth"></a> ClientAuth

### Properties

| Property                             | Type     |
| ------------------------------------ | -------- |
| <a id="licensekey"></a> `licenseKey` | `string` |

***

## <a id="language"></a> Language

### Properties

| Property                               | Type     |
| -------------------------------------- | -------- |
| <a id="direction"></a> `direction`     | `number` |
| <a id="englishname"></a> `englishName` | `string` |
| <a id="langcode"></a> `langCode`       | `string` |
| <a id="nativename"></a> `nativeName`   | `string` |

***

## <a id="microphoneconfig"></a> MicrophoneConfig

### Properties

| Property                                          | Type                  | Description                                                                                                                                                                                                                                                                          |
| ------------------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <a id="mediastream"></a> `mediaStream?`           | `MediaStream`         | Optional MediaStream to use instead of requesting user media. Useful for processing audio from video elements or other sources.                                                                                                                                                      |
| <a id="onaudiometrics"></a> `onAudioMetrics?`     | (`metrics`) => `void` | Optional callback that receives real-time audio quality metrics.                                                                                                                                                                                                                     |
| <a id="ondata"></a> `onData`                      | (`data`) => `void`    | Callback function that receives chunks of Int16 PCM audio data.                                                                                                                                                                                                                      |
| <a id="onmicrophonedata"></a> `onMicrophoneData?` | (`data`) => `void`    | Optional callback for raw microphone data (Float32Array), useful for visualization.                                                                                                                                                                                                  |
| <a id="samplerate"></a> `sampleRate?`             | `number`              | Desired sample rate (default 16000).                                                                                                                                                                                                                                                 |
| <a id="workleturl"></a> `workletUrl?`             | `string`              | Optional URL to load the AudioWorklet processor from. If not provided, an inline Blob will be used. Use this if your Content Security Policy (CSP) blocks 'blob:' workers. You will need to serve the processor code (available as 'dist/pcm-processor.js' in the package) yourself. |

***

## <a id="networkstatsresponse"></a> NetworkStatsResponse

### Properties

| Property                           | Type        |
| ---------------------------------- | ----------- |
| <a id="pings"></a> `pings`         | `object`\[] |
| <a id="rttavg"></a> `rttAvg`       | `number`    |
| <a id="rttjitter"></a> `rttJitter` | `number`    |
| <a id="rttmax"></a> `rttMax`       | `number`    |
| <a id="rttmin"></a> `rttMin`       | `number`    |

***

## <a id="pingresponse"></a> PingResponse

### Properties

| Property                                         | Type     |
| ------------------------------------------------ | -------- |
| <a id="rtt"></a> `rtt`                           | `number` |
| <a id="servertime"></a> `serverTime`             | `number` |
| <a id="servertimeoffset"></a> `serverTimeOffset` | `number` |

***

## <a id="recognize2audioconfig"></a> Recognize2AudioConfig

### Properties

| Property                                 | Type                                   |
| ---------------------------------------- | -------------------------------------- |
| <a id="channels"></a> `channels`         | `number`                               |
| <a id="sampleratehz"></a> `sampleRateHz` | `number`                               |
| <a id="sampletype"></a> `sampleType`     | `0` \| `"INT16"` \| `"FLOAT32"` \| `1` |

***

## <a id="recognize2availableresponse"></a> Recognize2AvailableResponse

### Properties

| Property                 | Type                                             |
| ------------------------ | ------------------------------------------------ |
| <a id="list"></a> `list` | [`RecognizeAvailable`](RecognizeAvailable.md)\[] |

***

## <a id="recognize2diarizationinformation"></a> Recognize2DiarizationInformation

### Properties

| Property                                | Type     |
| --------------------------------------- | -------- |
| <a id="speakerid"></a> `speakerId`      | `string` |
| <a id="speakername"></a> `speakerName?` | `string` |

***

## <a id="recognize2diarizationspeakersection"></a> Recognize2DiarizationSpeakerSection

### Properties

| Property                                   | Type     |
| ------------------------------------------ | -------- |
| <a id="orth"></a> `orth`                   | `string` |
| <a id="postprocessed"></a> `postprocessed` | `string` |
| <a id="speaker"></a> `speaker`             | `string` |
| <a id="starttimems"></a> `startTimeMs`     | `number` |
| <a id="stoptimems"></a> `stopTimeMs`       | `number` |
| <a id="translation"></a> `translation`     | `string` |

***

## <a id="recognize2diarizerconfig"></a> Recognize2DiarizerConfig

### Properties

| Property                     | Type      |
| ---------------------------- | --------- |
| <a id="enable"></a> `enable` | `boolean` |

***

## <a id="recognize2pctranscription"></a> Recognize2PCTranscription

### Properties

| Property                                                | Type                                                              |
| ------------------------------------------------------- | ----------------------------------------------------------------- |
| <a id="isattachedleft"></a> `isAttachedLeft`            | `boolean`                                                         |
| <a id="issentenceend"></a> `isSentenceEnd`              | `boolean`                                                         |
| <a id="stabletranscription"></a> `stableTranscription?` | [`Recognize2TimedTranscription`](Recognize2TimedTranscription.md) |
| <a id="text"></a> `text`                                | `string`                                                          |

***

## <a id="recognize2progress"></a> Recognize2Progress

### Properties

| Property                           | Type     |
| ---------------------------------- | -------- |
| <a id="timestamp"></a> `timestamp` | `string` |

***

## <a id="recognize2segment"></a> Recognize2Segment

### Properties

| Property                                                | Type                                                                      |
| ------------------------------------------------------- | ------------------------------------------------------------------------- |
| <a id="diarizerinfo"></a> `diarizerInfo?`               | [`Recognize2DiarizationInformation`](Recognize2DiarizationInformation.md) |
| <a id="start"></a> `start?`                             | `string`                                                                  |
| <a id="stop"></a> `stop?`                               | `string`                                                                  |
| <a id="text"></a> `text`                                | `string`                                                                  |
| <a id="timedtranscriptions"></a> `timedTranscriptions?` | [`Recognize2TimedTranscription`](Recognize2TimedTranscription.md)\[]      |

***

## <a id="recognize2segmenterconfig"></a> Recognize2SegmenterConfig

### Properties

| Property                                                            | Type     |
| ------------------------------------------------------------------- | -------- |
| <a id="sentenceendtokenthreshold"></a> `sentenceEndTokenThreshold?` | `number` |

***

## <a id="recognize2speechconfig"></a> Recognize2SpeechConfig

### Properties

| Property                         | Type     |
| -------------------------------- | -------- |
| <a id="domain"></a> `domain?`    | `string` |
| <a id="langcode"></a> `langCode` | `string` |

***

## <a id="recognize2streamconfig"></a> Recognize2StreamConfig

### Properties

| Property                                                        | Type                                                           | Description                                      |
| --------------------------------------------------------------- | -------------------------------------------------------------- | ------------------------------------------------ |
| <a id="audioconfiguration"></a> `audioConfiguration`            | [`Recognize2AudioConfig`](Recognize2AudioConfig.md)            | -                                                |
| <a id="diarizerconfiguration"></a> `diarizerConfiguration?`     | [`Recognize2DiarizerConfig`](Recognize2DiarizerConfig.md)      | -                                                |
| <a id="room_id"></a> `room_id?`                                 | `string`                                                       | Optional Room ID to broadcast transcriptions to. |
| <a id="segmenterconfiguration"></a> `segmenterConfiguration?`   | [`Recognize2SegmenterConfig`](Recognize2SegmenterConfig.md)    | -                                                |
| <a id="speechconfiguration"></a> `speechConfiguration`          | [`Recognize2SpeechConfig`](Recognize2SpeechConfig.md)          | -                                                |
| <a id="translateconfigurations"></a> `translateConfigurations?` | [`Recognize2TranslateConfig`](Recognize2TranslateConfig.md)\[] | -                                                |

***

## <a id="recognize2streamresponse"></a> Recognize2StreamResponse

### Properties

| Property                                        | Type                                                        |
| ----------------------------------------------- | ----------------------------------------------------------- |
| <a id="pctranscription"></a> `pcTranscription?` | [`Recognize2PCTranscription`](Recognize2PCTranscription.md) |
| <a id="progress"></a> `progress?`               | [`Recognize2Progress`](Recognize2Progress.md)               |
| <a id="segment"></a> `segment?`                 | [`Recognize2Segment`](Recognize2Segment.md)                 |
| <a id="transcription"></a> `transcription?`     | [`Recognize2Transcription`](Recognize2Transcription.md)     |
| <a id="translation"></a> `translation?`         | [`Recognize2Translation`](Recognize2Translation.md)         |

***

## <a id="recognize2timedtranscription"></a> Recognize2TimedTranscription

### Properties

| Property                             | Type     |
| ------------------------------------ | -------- |
| <a id="confidence"></a> `confidence` | `number` |
| <a id="langcode"></a> `langCode?`    | `string` |
| <a id="start"></a> `start?`          | `string` |
| <a id="stop"></a> `stop?`            | `string` |
| <a id="text"></a> `text`             | `string` |

***

## <a id="recognize2transcription"></a> Recognize2Transcription

### Properties

| Property                                                      | Type                                                                 |
| ------------------------------------------------------------- | -------------------------------------------------------------------- |
| <a id="stabletranscriptions"></a> `stableTranscriptions?`     | [`Recognize2TimedTranscription`](Recognize2TimedTranscription.md)\[] |
| <a id="unstabletranscriptions"></a> `unstableTranscriptions?` | [`Recognize2TimedTranscription`](Recognize2TimedTranscription.md)\[] |

***

## <a id="recognize2translateconfig"></a> Recognize2TranslateConfig

### Properties

| Property                                        | Type                                                      |
| ----------------------------------------------- | --------------------------------------------------------- |
| <a id="domain"></a> `domain`                    | `string`                                                  |
| <a id="glossaryoptions"></a> `glossaryOptions?` | [`TranslateGlossaryOptions`](TranslateGlossaryOptions.md) |
| <a id="metaoptions"></a> `metaOptions?`         | [`TranslateTextMetaOptions`](TranslateTextMetaOptions.md) |
| <a id="targetlangcode"></a> `targetLangCode`    | `string`                                                  |

***

## <a id="recognize2translation"></a> Recognize2Translation

### Properties

| Property                          | Type     |
| --------------------------------- | -------- |
| <a id="domain"></a> `domain?`     | `string` |
| <a id="langcode"></a> `langCode?` | `string` |
| <a id="start"></a> `start?`       | `string` |
| <a id="stop"></a> `stop?`         | `string` |
| <a id="text"></a> `text`          | `string` |

***

## <a id="recognizeavailable"></a> RecognizeAvailable

### Properties

| Property                                           | Type                         |
| -------------------------------------------------- | ---------------------------- |
| <a id="diarization"></a> `diarization`             | `boolean`                    |
| <a id="domain"></a> `domain`                       | `string`                     |
| <a id="language"></a> `language`                   | [`Language`](Language.md)    |
| <a id="mttargetlanguages"></a> `mtTargetLanguages` | [`Language`](Language.md)\[] |
| <a id="sampleratehz"></a> `sampleRateHz`           | `number`                     |

***

## <a id="roomactivatedstatus"></a> RoomActivatedStatus

Status message from the server confirming a room has been activated for broadcasting.

### Properties

| Property                       | Type               |
| ------------------------------ | ------------------ |
| <a id="room_id"></a> `room_id` | `string`           |
| <a id="status"></a> `status`   | `"room_activated"` |

***

## <a id="roomactivationmessage"></a> RoomActivationMessage

Message sent to the server to dynamically create/activate a room mid-session.

### Properties

| Property                       | Type            | Description                                  |
| ------------------------------ | --------------- | -------------------------------------------- |
| <a id="action"></a> `action`   | `"create_room"` | -                                            |
| <a id="room_id"></a> `room_id` | `string`        | The ID of the room to activate/broadcast to. |

***

## <a id="roomlistresponse"></a> RoomListResponse

Response returned when listing rooms associated with a license key.

### Properties

| Property                   | Type        | Description                  |
| -------------------------- | ----------- | ---------------------------- |
| <a id="rooms"></a> `rooms` | `string`\[] | An array of active room IDs. |

***

## <a id="roomresponse"></a> RoomResponse

Response returned when a new room is created.

### Properties

| Property                       | Type     | Description                                 |
| ------------------------------ | -------- | ------------------------------------------- |
| <a id="room_id"></a> `room_id` | `string` | The unique identifier for the created room. |

***

## <a id="translateavailable"></a> TranslateAvailable

### Properties

| Property                                           | Type                      |
| -------------------------------------------------- | ------------------------- |
| <a id="computeconfidence"></a> `computeConfidence` | `boolean`                 |
| <a id="domain"></a> `domain`                       | `string`                  |
| <a id="extendedcontext"></a> `extendedContext`     | `boolean`                 |
| <a id="formats"></a> `formats`                     | `number`\[]               |
| <a id="gendercodes"></a> `genderCodes`             | `string`\[]               |
| <a id="genrecodes"></a> `genreCodes`               | `string`\[]               |
| <a id="glossary"></a> `glossary`                   | `boolean`                 |
| <a id="lengthcodes"></a> `lengthCodes`             | `string`\[]               |
| <a id="sourcelanguage"></a> `sourceLanguage`       | [`Language`](Language.md) |
| <a id="stylecodes"></a> `styleCodes`               | `string`\[]               |
| <a id="targetlanguage"></a> `targetLanguage`       | [`Language`](Language.md) |
| <a id="topiccodes"></a> `topicCodes`               | `string`\[]               |

***

## <a id="translateavailableresponse"></a> TranslateAvailableResponse

### Properties

| Property                 | Type                                             |
| ------------------------ | ------------------------------------------------ |
| <a id="list"></a> `list` | [`TranslateAvailable`](TranslateAvailable.md)\[] |

***

## <a id="translateglossaryoptions"></a> TranslateGlossaryOptions

### Properties

| Property                                               | Type      |
| ------------------------------------------------------ | --------- |
| <a id="enablenumbertagging"></a> `enableNumberTagging` | `boolean` |
| <a id="glossaryid"></a> `glossaryId`                   | `string`  |

***

## <a id="translatetextmetaoptions"></a> TranslateTextMetaOptions

### Properties

| Property                              | Type     |
| ------------------------------------- | -------- |
| <a id="gendercode"></a> `genderCode?` | `string` |
| <a id="genrecode"></a> `genreCode?`   | `string` |
| <a id="lengthcode"></a> `lengthCode?` | `string` |
| <a id="stylecode"></a> `styleCode?`   | `string` |
| <a id="topiccode"></a> `topicCode?`   | `string` |