# Speech Recognizer

## Properties

`Default Language`: Set component to recognize text and speak in this language. Can be changed in blocks.

## Blocks

### Functions

#### Listen

![](/files/-MYde3980WbyD9Lx2ej5)

Outputs

| Name  | Data Type | Data                                          |
| ----- | --------- | --------------------------------------------- |
| error | text      | if error, returns error; else, returns `null` |
| value | text      | text of speech that was recognized            |

#### Listen with Partial Result

![](/files/-MYdeDLNS-62kZLBiAHL)

Outputs

| Name           | Data Type | Data                                          |
| -------------- | --------- | --------------------------------------------- |
| error          | text      | if error, returns error; else, returns `null` |
| partial result | text      | text of speech that was recognized            |

### Properties

#### Set/Get Default Language

Set default language to item from drop-down menu. Can also use [Text](/snap-to-place/text.md) block or [variable](/snap-to-place/variables.md) to set language.

Get current language of Speech Recognizer component.

![](/files/-MYdeLnF_u9KFW2jgAmm)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thunkable.com/snap-to-place/speech-recognizer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
