---
source_path: "api/setting-keys/values.md"
canonical_url: "https://doc.sensory.com/tnl/7.8/api/setting-keys/values/"
---

# Values

These are string constants that define [task-types](https://doc.sensory.com/tnl/7.8/api/setting-keys/configuration.md#task-type) used with [require](https://doc.sensory.com/tnl/7.8/api/inference.md#require),
or that identify template [slots](https://doc.sensory.com/tnl/7.8/api/setting-keys/configuration.md#slot).

<!-- Setting-key page conventions: shared admonition for all docs/api/setting-keys/*.md pages. -->
### Details: Page conventions

Settings are grouped by concern. Within each group they're listed
alphabetically. A setting that serves more than one concern appears once
under its primary group; secondary groups link to it.

The code tabs on each setting show one paste-able call site per language.
Adapt the placeholder names (`s` for the [Session](https://doc.sensory.com/tnl/7.8/api/inference.md#session), plus `value`,
`stream`, `on_event`, or `on_item` for the operand) to your code. Each
example assumes the language's standard prelude:

<!-- tab: c -->

**C/C++**

```c
#include <snsr.h>
```
<!-- /tab -->

<!-- tab: java -->

**Java**

```java
import com.sensory.speech.snsr.Snsr;
import com.sensory.speech.snsr.SnsrSession;
```
<!-- /tab -->

<!-- tab: py -->

**Python**

```python
import snsr
```
<!-- /tab -->

For the full Session lifecycle (`snsrNew`, `new SnsrSession()`,
`snsr.Session(...)`) see [Your first program](https://doc.sensory.com/tnl/7.8/getting-started/your-first-program.md#your-first-program).

## enroll
- value
- string
- read-only

<!-- tab: c -->

**C/C++**

```c
snsrRequire(s, SNSR_TASK_TYPE, SNSR_ENROLL);
```
<!-- /tab -->

<!-- tab: java -->

**Java**

```java
s.require(Snsr.TASK_TYPE, Snsr.ENROLL);
```
<!-- /tab -->

<!-- tab: py -->

**Python**

```python
s.require(snsr.TASK_TYPE, snsr.ENROLL)
```
<!-- /tab -->

Phrase spotter enrollment task type.

**Also see these related items:** [require](https://doc.sensory.com/tnl/7.8/api/inference.md#require), [task-type](https://doc.sensory.com/tnl/7.8/api/setting-keys/configuration.md#task-type)

## feature
- value
- string
- read-only
- pre-release
<!-- tab: c -->

**C/C++**

```c
snsrRequire(s, SNSR_TASK_TYPE, SNSR_FEATURE);
```
<!-- /tab -->

<!-- tab: java -->

**Java**

```java
s.require(Snsr.TASK_TYPE, Snsr.FEATURE);
```
<!-- /tab -->

<!-- tab: py -->

**Python**

```python
s.require(snsr.TASK_TYPE, snsr.FEATURE)
```
<!-- /tab -->

Feature extractor task type.

**Pre-release:**

This is an experimental feature. Do not use unless recommended by Sensory.

**Also see these related items:** [require](https://doc.sensory.com/tnl/7.8/api/inference.md#require), [task-type](https://doc.sensory.com/tnl/7.8/api/setting-keys/configuration.md#task-type)

## feature-lvcsr
- value
- string
- read-only
_(TrulyNatural only)_ _(pre-release)_
<!-- tab: c -->

**C/C++**

```c
snsrRequire(s, SNSR_TASK_TYPE, SNSR_FEATURE_LVCSR);
```
<!-- /tab -->

<!-- tab: java -->

**Java**

```java
s.require(Snsr.TASK_TYPE, Snsr.FEATURE_LVCSR);
```
<!-- /tab -->

<!-- tab: py -->

**Python**

```python
s.require(snsr.TASK_TYPE, snsr.FEATURE_LVCSR)
```
<!-- /tab -->

LVCSR recognizer from feature stream task type.

**Pre-release:**

This is an experimental feature. Do not use unless recommended by Sensory.

**Also see these related items:** [require](https://doc.sensory.com/tnl/7.8/api/inference.md#require), [task-type](https://doc.sensory.com/tnl/7.8/api/setting-keys/configuration.md#task-type)

## feature-phrasespot
- value
- string
- read-only
- pre-release
<!-- tab: c -->

**C/C++**

```c
snsrRequire(s, SNSR_TASK_TYPE, SNSR_FEATURE_PHRASESPOT);
```
<!-- /tab -->

<!-- tab: java -->

**Java**

```java
s.require(Snsr.TASK_TYPE, Snsr.FEATURE_PHRASESPOT);
```
<!-- /tab -->

<!-- tab: py -->

**Python**

```python
s.require(snsr.TASK_TYPE, snsr.FEATURE_PHRASESPOT)
```
<!-- /tab -->

Phrase spotter from feature stream task type.

**Pre-release:**

This is an experimental feature. Do not use unless recommended by Sensory.

**Also see these related items:** [require](https://doc.sensory.com/tnl/7.8/api/inference.md#require), [task-type](https://doc.sensory.com/tnl/7.8/api/setting-keys/configuration.md#task-type)

## feature-vad
- value
- string
- read-only
- pre-release
<!-- tab: c -->

**C/C++**

```c
snsrRequire(s, SNSR_TASK_TYPE, SNSR_FEATURE_VAD);
```
<!-- /tab -->

<!-- tab: java -->

**Java**

```java
s.require(Snsr.TASK_TYPE, Snsr.FEATURE_VAD);
```
<!-- /tab -->

<!-- tab: py -->

**Python**

```python
s.require(snsr.TASK_TYPE, snsr.FEATURE_VAD)
```
<!-- /tab -->

VAD from feature stream task type.

**Pre-release:**

This is an experimental feature. Do not use unless recommended by Sensory.

**Also see these related items:** [require](https://doc.sensory.com/tnl/7.8/api/inference.md#require), [task-type](https://doc.sensory.com/tnl/7.8/api/setting-keys/configuration.md#task-type)

## lvcsr
- value
- string
- read-only
- TrulyNatural only
<!-- tab: c -->

**C/C++**

```c
snsrRequire(s, SNSR_TASK_TYPE, SNSR_LVCSR);
```
<!-- /tab -->

<!-- tab: java -->

**Java**

```java
s.require(Snsr.TASK_TYPE, Snsr.LVCSR);
```
<!-- /tab -->

<!-- tab: py -->

**Python**

```python
s.require(snsr.TASK_TYPE, snsr.LVCSR)
```
<!-- /tab -->

LVCSR and STT recognizer task type.

**Also see these related items:** [require](https://doc.sensory.com/tnl/7.8/api/inference.md#require), [task-type](https://doc.sensory.com/tnl/7.8/api/setting-keys/configuration.md#task-type), [LVCSR models](https://doc.sensory.com/tnl/7.8/models/index.md#lvcsr-models), [STT models](https://doc.sensory.com/tnl/7.8/models/index.md#stt-models)

## phrasespot
- value
- string
- read-only

<!-- tab: c -->

**C/C++**

```c
snsrRequire(s, SNSR_TASK_TYPE, SNSR_PHRASESPOT);
```
<!-- /tab -->

<!-- tab: java -->

**Java**

```java
s.require(Snsr.TASK_TYPE, Snsr.PHRASESPOT);
```
<!-- /tab -->

<!-- tab: py -->

**Python**

```python
s.require(snsr.TASK_TYPE, snsr.PHRASESPOT)
```
<!-- /tab -->

Phrase spotter task type.

Also known as wake words, key word spotting, and spotted command sets.

**Also see these related items:** [require](https://doc.sensory.com/tnl/7.8/api/inference.md#require), [task-type](https://doc.sensory.com/tnl/7.8/api/setting-keys/configuration.md#task-type), [wake word models](https://doc.sensory.com/tnl/7.8/models/index.md#wake-word-models)

## phrasespot-vad
- value
- string
- read-only

<!-- tab: c -->

**C/C++**

```c
snsrRequire(s, SNSR_TASK_TYPE, SNSR_PHRASESPOT_VAD);
```
<!-- /tab -->

<!-- tab: java -->

**Java**

```java
s.require(Snsr.TASK_TYPE, Snsr.PHRASESPOT_VAD);
```
<!-- /tab -->

<!-- tab: py -->

**Python**

```python
s.require(snsr.TASK_TYPE, snsr.PHRASESPOT_VAD)
```
<!-- /tab -->

Phrase Spotter VAD task type.

**Also see these related items:** [require](https://doc.sensory.com/tnl/7.8/api/inference.md#require), [task-type](https://doc.sensory.com/tnl/7.8/api/setting-keys/configuration.md#task-type), [tpl-spot-vad](https://doc.sensory.com/tnl/7.8/models/tpl/tpl-spot-vad.md#tpl-spot-vad-type)

## vad
- value
- string
- read-only

<!-- tab: c -->

**C/C++**

```c
snsrRequire(s, SNSR_TASK_TYPE, SNSR_VAD);
```
<!-- /tab -->

<!-- tab: java -->

**Java**

```java
s.require(Snsr.TASK_TYPE, Snsr.VAD);
```
<!-- /tab -->

<!-- tab: py -->

**Python**

```python
s.require(snsr.TASK_TYPE, snsr.VAD)
```
<!-- /tab -->

VAD task type.

**Also see these related items:** [require](https://doc.sensory.com/tnl/7.8/api/inference.md#require), [task-type](https://doc.sensory.com/tnl/7.8/api/setting-keys/configuration.md#task-type), [VAD models](https://doc.sensory.com/tnl/7.8/models/index.md#vad-models)

<!-- Abbreviation definitions from includes/abbreviations.md -->
*[API]: Application Programming Interface
*[LVCSR]: Large Vocabulary Continuous Speech Recognition model, feed-forward neural net acoustic model with FST decoder
*[STT]: Speech To Text: transformers with language model and CTC decoding
*[TNL]: TrulyNatural, Sensory's large-vocabulary speech recognition technology
*[VAD]: Voice Activity Detector
