UNPKG

@sendbird/uikit-react

Version:

Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.

18 lines (17 loc) 589 B
import { VoicePlayerStatusType } from './dux/initialState'; export interface UseVoicePlayerProps { key?: string; channelUrl?: string; audioFile?: File; audioFileUrl?: string; audioFileMimeType?: string; } export interface UseVoicePlayerContext { play: () => void; pause: () => void; stop: (text?: string) => void; playbackTime: number; duration: number; playingStatus: VoicePlayerStatusType; } export declare const useVoicePlayer: ({ key, channelUrl, audioFile, audioFileUrl, audioFileMimeType, }: UseVoicePlayerProps) => UseVoicePlayerContext;