GrokTtsEditor

sexyvoice · ui, tiptap-extension, ai-suggestions, tts-toolbar, editor-toolbar, voice

Tiptap extension providing AI-powered TTS suggestions and editing toolbar.

// Source: https://github.com/gianpaj/sexyvoice | License: Apache-2.0 | Copyright 2023 Vercel, Inc
// Provided via justclaw.it.com; keep this notice with the code.
'use client';

import { Placeholder } from '@tiptap/extensions';
import { TextSelection } from '@tiptap/pm/state';
import { EditorContent, EditorContext, useEditor } from '@tiptap/react';
import StarterKit from '@tiptap/starter-kit';
import { ChevronDown, Crown, Sparkles } from 'lucide-react';
import { useTranslations } from 'next-intl';
import { type MouseEvent, use, useEffect, useRef, useState } from 'react';

import { AutoConvertGrokTags } from '@/components/grok-tts/extensions/auto-convert-grok-tags';
import {
  createWrapperBoundaryNode,
  WrapperBoundary,
} from '@/components/grok-tts/extensions/grok-wrapper-boundary';
imp

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key