Updated version of vosk for node
Nothing difficult: just changed define a signature and wrapped each call parameter group to tuples.
Updated version of vosk for node
Nothing difficult: just changed define a signature and wrapped each call parameter group to tuples.
| import { useEffect, useState } from "react"; | |
| type UseTextSelectionReturn = { | |
| text: string; | |
| rects: DOMRect[]; | |
| ranges: Range[]; | |
| selection: Selection | null; | |
| }; | |
| const getRangesFromSelection = (selection: Selection): Range[] => { |