Utility functions for browser speech recognition handling and transcript normalization.
// Source: https://github.com/bytedance/deer-flow | License: MIT | Copyright 2025 Bytedance Ltd. and/or its affiliates
// Provided via justclaw.it.com; keep this notice with the code.
export type SpeechRecognitionErrorCode =
| "aborted"
| "audio-capture"
| "bad-grammar"
| "language-not-supported"
| "network"
| "no-speech"
| "not-allowed"
| "phrases-not-supported"
| "service-not-allowed";
export type SpeechRecognitionErrorKind =
| "cancelled"
| "microphone_unavailable"
| "permission_denied"
| "unsupported_language"
| "network"
| "no_speech"
| "unknown";
export type SpeechRecognitionConstructor = new () => BrowserSpeechRecognition;
export type SpeechRecognitionEventLike = {
results: SpeechRecognitionResultListLike;
};
export type SpeechRecognitionErrorEv
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key