1.0.83 • Published 5 months ago

@hoosei/voxweave-react v1.0.83

Weekly downloads
-
License
SEE LICENSE IN ./...
Repository
github
Last release
5 months ago

Voxweave React

Voxweave is a customizable and interactive voice UI component for React applications. It provides a visually appealing interface for voice interactions, perfect for AI assistants, voice commands, or any audio-based user interface.

Features

  • 🎨 Customizable appearance and animations
  • 🌓 Light and dark mode support
  • 📱 Responsive design
  • 🎵 Real-time audio visualization
  • ⚡️ Optimized performance
  • 🔒 Type-safe
  • 🎮 Multiple positioning options

Installation

You can install Voxweave using npm, pnpm, or bun:

# Using npm
npm install @hoosei/voxweave-react

# Using pnpm
pnpm add @hoosei/voxweave-react

# Using bun
bun add @hoosei/voxweave-react

Quick Start

  1. First, wrap your application with the VoxweaveProvider:
import { VoxweaveProvider } from '@hoosei/voxweave-react'

function App() {
  return (
    <VoxweaveProvider 
      config={{
        licenseKey: process.env.NEXT_PUBLIC_VOXWEAVE_LICENSE_KEY!,
        apiUrl: process.env.NEXT_PUBLIC_VOXWEAVE_API_URL!,
        development: process.env.NODE_ENV === 'development'
      }}
    >
      <YourApp />
    </VoxweaveProvider>
  )
}
  1. Then use the Voxweave component in your application:
import { Voxweave } from '@hoosei/voxweave-react'

function YourComponent() {
  return (
    <Voxweave
      size={64}
      darkMode={false}
      position="bottom-right"
      isVertical={false}
      containerStyle="bottom"
      onStartCall={() => {
        // Handle call start
      }}
      onClose={() => {
        // Handle close
      }}
    />
  )
}

Configuration Options

VoxweaveProvider Props

PropTypeDescription
config.licenseKeystringYour Voxweave license key
config.apiUrlstringVoxweave API endpoint
config.developmentbooleanEnable development mode

Voxweave Component Props

PropTypeDefaultDescription
sizenumber64Size of the component in pixels
darkModebooleanfalseEnable dark mode
position'left' | 'right' | 'bottom-left' | 'bottom-right''bottom-right'Position of the component
isVerticalbooleanfalseEnable vertical layout
containerStyle'bottom' | 'center''bottom'Container positioning style
isVisiblebooleantrueControl component visibility
isAnimatedbooleantrueEnable animations
backgroundColorstring-Custom background color
disableBackgroundbooleanfalseRemove background
disableShadowbooleanfalseRemove shadow effect
onStartCall() => void-Callback when call starts
onClose() => void-Callback when component closes

Styling

Voxweave uses Tailwind CSS with a custom prefix to avoid conflicts. You can override styles using the className prop:

<Voxweave
  className="custom-class"
  // other props...
/>

Development

For local development, the provider automatically uses development credentials:

<VoxweaveProvider
  config={{
    development: true, // Uses development credentials
    apiUrl: 'http://localhost:4200/api'
  }}
>
  {/* Your app */}
</VoxweaveProvider>

License

This project is proprietary software owned by Hoosei Limited. See the LICENSE.md file in the root directory for details.

Hoosei® is a registered trademark, No. UK00003747539 of Hoosei Limited, 10 Upper Grosvenor Road, Tunbridge Wells, England, TN1 2EP. Registered England & Wales Company No. 13834192.

For licensing inquiries or permissions, please contact Hoosei Limited.

Importing

You can import the Voxweave components and functions as follows:

```javascript // Client-side imports import { Voxweave, useVoxweaveAuth } from ' @hoosei/voxweave-react';

// Server-side imports import { vox } from ' @hoosei/voxweave-react/server'; ```

For TypeScript users, you can also import types:

```typescript import type { AuthStatus, VoxweaveAuthOptions } from ' @hoosei/voxweave-react/server'; ```

1.0.83

5 months ago

1.0.82

5 months ago

1.0.81

5 months ago

1.0.79

6 months ago

1.0.78

6 months ago

1.0.77

6 months ago

1.0.76

6 months ago

1.0.75

6 months ago

1.0.74

6 months ago

1.0.73

8 months ago

1.0.72

8 months ago

1.0.71

8 months ago

1.0.70

8 months ago

1.0.69

8 months ago

1.0.68

8 months ago

1.0.67

8 months ago

1.0.66

8 months ago

1.0.64

8 months ago

1.0.63

8 months ago

1.0.61

8 months ago

1.0.60

8 months ago

1.0.59

9 months ago

1.0.58

9 months ago

1.0.57

9 months ago

1.0.56

9 months ago

1.0.55

9 months ago

1.0.54

9 months ago

1.0.53

9 months ago

1.0.52

9 months ago

1.0.51

9 months ago

1.0.50

9 months ago

1.0.49

9 months ago

1.0.48

9 months ago

1.0.47

9 months ago

1.0.46

9 months ago

1.0.45

9 months ago

1.0.44

9 months ago

1.0.43

9 months ago

1.0.42

9 months ago

1.0.41

9 months ago

1.0.40

9 months ago

1.0.39

9 months ago

1.0.38

9 months ago

1.0.37

9 months ago

1.0.36

9 months ago

1.0.35

9 months ago

1.0.34

9 months ago

1.0.33

9 months ago

1.0.32

9 months ago

1.0.31

9 months ago

1.0.30

9 months ago

1.0.29

9 months ago

1.0.28

9 months ago

1.0.27

9 months ago

1.0.26

9 months ago

1.0.25

9 months ago

1.0.24

9 months ago

1.0.23

9 months ago

1.0.22

9 months ago

1.0.21

9 months ago

1.0.20

9 months ago

1.0.19

9 months ago

1.0.18

9 months ago

1.0.17

9 months ago

1.0.15

9 months ago

1.0.14

9 months ago

1.0.13

9 months ago

1.0.12

9 months ago

1.0.11

9 months ago

1.0.10

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago