UNPKG

@lobehub/tts

Version:

A high-quality & reliable TTS React Hooks library

16 lines (15 loc) 478 B
import { RefObject } from 'react'; import { AudioProps } from "../AudioPlayer"; export interface AudioPlayerResponse extends AudioProps { arrayBuffers: ArrayBuffer[]; download: () => void; isLoading?: boolean; ref: RefObject<HTMLAudioElement>; reset: () => void; url: string; } export interface AudioPlayerOptions { src?: string; type?: string; } export declare const useAudioPlayer: ({ src, type, }?: AudioPlayerOptions) => AudioPlayerResponse;