use-voice
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

use-voice

use-voice is a developer-oriented open-source platform for building voice AI chatbots. It abstracts away the complexities of creating speech-to-speech pipelines, allowing you to focus on building the best voice AI applications.

With the use-voice react npm package, you can add a voice chatbot to your website in < 10 lines of code.

Getting started

First, create a chatbot. You will need an account to do this. Sign up here.

In the chatbot dashboard, complete all the required config fields. This is where you define your chatbot's pipeline and behavior. Then, generate a public access token in the deploy tab.

Next, add the use-voice npm package to your project.

pnpm add use-voice

Finally, import use-voice and call start. Done!

import { useVoice } from "use-voice";

export default function Example() {
  const { start } = useVoice({
    accessToken: "INSERT CHATBOT PUBLIC ACCESS TOKEN HERE",
  });

  return <button onClick={start}>start</button>;
}

Supported Providers

use-voice currently supports 10 providers:

Type Company Model
STT Deepgram Nova-2
LLM OpenAI GPT-4o
LLM OpenAI GPT-4o mini
LLM Anthropic Claude 3.5 Sonnet
LLM Anthropic Claude 3 Haiku
TTS ElevenLabs Turbo v2.5
TTS ElevenLabs Multilingual v2
TTS OpenAI tts-1
TTS OpenAI tts-1-hd
TTS Cartesia Sonic English

Readme

Keywords

none

Package Sidebar

Install

npm i use-voice

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

17.6 kB

Total Files

8

Last publish

Collaborators

  • sshkeda