UNPKG

speechly

Version:

A React component for text-to-speech functionality using the Speechify API

18 lines (17 loc) 558 B
import React from 'react'; interface SpeechlyReadButtonProps { position: { x: number; y: number; } | null; onRead: (text: string) => void; onPause?: () => void; onResume?: () => void; onStop?: () => void; selectedText: string; isLoading?: boolean; isPlaying?: boolean; isPaused?: boolean; } declare const SpeechlyReadButton: ({ position, onRead, onPause, onResume, onStop, selectedText, isLoading, isPlaying, isPaused, }: SpeechlyReadButtonProps) => React.ReactNode; export default SpeechlyReadButton;