@lakshmiprasanth/react-voice-to-text
Version:
A modern React package for voice-to-text conversion with real-time speech recognition and file upload support
37 lines • 1.07 kB
TypeScript
import { BrowserSupport } from '../types';
/**
* Check browser support for speech recognition and related APIs
*/
export declare function getBrowserSupport(): BrowserSupport;
/**
* Get the SpeechRecognition constructor for the current browser
*/
export declare function getSpeechRecognition(): any | null;
/**
* Check if speech recognition is supported in the current browser
*/
export declare function isSpeechRecognitionSupported(): boolean;
/**
* Get available audio input devices
*/
export declare function getAudioDevices(): Promise<MediaDeviceInfo[]>;
/**
* Request microphone permission
*/
export declare function requestMicrophonePermission(): Promise<boolean>;
/**
* Check if the current environment is a browser
*/
export declare function isBrowser(): boolean;
/**
* Check if the current environment is a secure context (HTTPS)
*/
export declare function isSecureContext(): boolean;
/**
* Get browser name and version
*/
export declare function getBrowserInfo(): {
name: string;
version: string;
};
//# sourceMappingURL=browser.d.ts.map