New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More โ†’
Socket
Sign inDemoInstall
Socket

react-native-voicekit

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-voicekit

๐ŸŽ™๏ธ Recognize and transcribe speech using React Native

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-16.67%
Maintainers
0
Weekly downloads
ย 
Created
Source

๐ŸŽ™๏ธ react-native-voicekit

VoiceKit is a powerful speech recognition library for React Native that enables voice transcription across platforms. It provides direct access to native speech recognition APIs for optimal performance and aligns the API behavior between the different platforms.

npm bundle size GitHub GitHub last commit

[!WARNING] This project is still considered unstable and under active development. The API might change drastically in new versions. Please proceed with caution.

  • โšก Real-time speech-to-text transcription
  • ๐Ÿ“ฑ iOS and Android support using native speech recognition APIs
  • ๐Ÿงช Fully compatible with Expo
  • โšก iOS and Android APIs aligned for consistent behavior and superior developer experience
  • ๐ŸŽ›๏ธ Single and continuous recognition modes
  • ๐ŸŽจ Simple and intuitive React Hooks API
  • ๐Ÿ’ช TypeScript support out of the box
  • ๐Ÿ‘Œ Lightweight with zero dependencies

Installation

React Native

npm install react-native-voicekit
cd ios && pod install

Expo

npx expo install react-native-voicekit

Afterwards, add the config plugin to the plugins section of your app.json:

{
  "plugins": [
    [
      "react-native-voicekit",
      {
        "speechRecognitionPermission": "Custom iOS speech recognition permission message (optional)",
        "microphonePermission": "Custom iOS microphone permission message (optional)"
      }
    ]
  ]
}

Finally, expo prebuild or rebuild your development client.

Quick Start

import React from 'react';
import { View, Text, Button } from 'react-native';
import { useVoice, VoiceMode } from 'react-native-voicekit';

const App = () => {
  const { available, listening, transcript, startListening, stopListening } = useVoice({
    locale: 'en-US',
    mode: VoiceMode.Continuous,
    enablePartialResults: true,
  });

  return (
    <View>
      {available ? (
        <>
          <Text>Is listening: {listening ? 'Yes' : 'No'}</Text>
          <Text>Transcript: {transcript}</Text>
          <Button onPress={startListening} title="Start Listening" />
          <Button onPress={stopListening} title="Stop Listening" />
        </>
      ) : (
        <Text>Speech recognition is not available on this device.</Text>
      )}
    </View>
  );
};

Documentation

A documentation is work in progress.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Keywords

FAQs

Package last updated on 22 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc