This extension enables voice transcription on the TipTap text editor
The language set for voice transcription
Type: string
Default: fr-FR
The tone set for voice transcription
Type: number
Default: 1
import { Editor } from "@tiptap/core";
import SpeechSynthesis from 'path/to/extension';
new Editor({
extensions: [
SpeechSynthesis.configure({
lang: 'fr-FR',
pitch: 1
}),
],
})
editor.commands.startSpeechSynthesis()
editor.commands.stopSpeechSynthesis()