/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ /** * The SpeechToTextButton ref. */ export interface SpeechToTextButtonHandle { /** * The `start` event callback that starts the speech recognition service listening to incoming audio with intent to recognize grammars. */ start: () => void; /** * The `stop` event callback that stops the speech recognition service from listening to incoming audio, and attempts to return a result using the audio captured so far. */ stop: () => void; /** * The `abort` event callback that stops the speech recognition service from listening to incoming audio, and doesn't attempt to return a result. */ abort: () => void; /** * The `isActive` event callback that returns boolean value if the SpeechToTextButton is in active state. */ isActive: () => boolean; }