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

react-text-to-speech

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-text-to-speech - npm Package Compare versions

Comparing version 0.6.7 to 0.6.8

3

dist/index.d.ts

@@ -27,3 +27,2 @@ import React, { DetailedHTMLProps, HTMLAttributes, ReactNode } from 'react';

export type { IconProps } from './icons.js';
declare function Speech({ text, pitch, rate, volume, lang, startBtn, pauseBtn, stopBtn, useStopOverPause, onError, children, props }: SpeechProps): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
export default Speech;
export default function Speech({ text, pitch, rate, volume, lang, startBtn, pauseBtn, stopBtn, useStopOverPause, onError, children, props }: SpeechProps): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
import React, { useEffect, useState } from 'react';
import { HiMiniStop, HiVolumeOff, HiVolumeUp } from './icons.js';
function Speech({ text, pitch = 1, rate = 1, volume = 1, lang = '', startBtn = React.createElement(HiVolumeUp, null), pauseBtn = React.createElement(HiVolumeOff, null), stopBtn = React.createElement(HiMiniStop, null), useStopOverPause, onError = () => alert('Browser not supported! Try some other browser.'), children, props = {} }) {
export default function Speech({ text, pitch = 1, rate = 1, volume = 1, lang = '', startBtn = React.createElement(HiVolumeUp, null), pauseBtn = React.createElement(HiVolumeOff, null), stopBtn = React.createElement(HiMiniStop, null), useStopOverPause, onError = () => alert('Browser not supported! Try some other browser.'), children, props = {} }) {
const [speechStatus, setSpeechStatus] = useState('stopped');

@@ -52,2 +52,1 @@ const [useStop, setUseStop] = useState();

}
export default Speech;
{
"name": "react-text-to-speech",
"version": "0.6.7",
"version": "0.6.8",
"description": "An easy to use react component for the Web Speech API.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -33,3 +33,3 @@ # react-text-to-speech

function App() {
export default function App() {
return <Speech text='This library is awesome!' />

@@ -46,3 +46,3 @@ }

function App() {
export default function App() {
// 'news' holds response from some News API

@@ -49,0 +49,0 @@ const news = [

Sorry, the diff of this file is not supported yet

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