React SpeechToText Types

ContentReadyEvent

The argument type in the contentReady event.

import { SpeechToTextTypes } from "devextreme-react/speech-to-text"
Type: SpeechToTextTypes.ContentReadyEvent

CustomSpeechRecognizer

Allows you to implement custom speech recognition engines.

import { SpeechToTextTypes } from "devextreme-react/speech-to-text"
Type: SpeechToTextTypes.CustomSpeechRecognizer

If you want to integrate a custom speech recognition engine, set customSpeechRecognizer.enabled to true. When you implement a custom speech recognizer, SpeechToText no longer does the following:

  • Listen to user speech.
  • Update the component state. Set SpeechToText state manually using the customSpeechRecognizer.isListening property.
  • Call the onResult and onError handlers.

DisposingEvent

The argument type in the disposing event.

import { SpeechToTextTypes } from "devextreme-react/speech-to-text"
Type: SpeechToTextTypes.DisposingEvent

EndEvent

The argument type in the end event.

import { SpeechToTextTypes } from "devextreme-react/speech-to-text"
Type: SpeechToTextTypes.EndEvent

ErrorEvent

The argument type in the error event.

import { SpeechToTextTypes } from "devextreme-react/speech-to-text"
Type: SpeechToTextTypes.ErrorEvent

InitializedEvent

The argument type in the initialized event.

import { SpeechToTextTypes } from "devextreme-react/speech-to-text"
Type: SpeechToTextTypes.InitializedEvent

OptionChangedEvent

The argument type in the optionChanged event.

import { SpeechToTextTypes } from "devextreme-react/speech-to-text"
Type: SpeechToTextTypes.OptionChangedEvent

ResultEvent

The argument type in the result event.

import { SpeechToTextTypes } from "devextreme-react/speech-to-text"
Type: SpeechToTextTypes.ResultEvent

SpeechRecognitionConfig

Configures the Web Speech API (SpeechRecognition properties).

import { SpeechToTextTypes } from "devextreme-react/speech-to-text"
Type: SpeechToTextTypes.SpeechRecognitionConfig

This configuration object allows you to customize SpeechToText functionality.

View Demo

StartClickEvent

The argument type in the startClick event.

import { SpeechToTextTypes } from "devextreme-react/speech-to-text"
Type: SpeechToTextTypes.StartClickEvent

StopClickEvent

The argument type in the stopClick event.

import { SpeechToTextTypes } from "devextreme-react/speech-to-text"
Type: SpeechToTextTypes.StopClickEvent