Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@speechly/react-ui
Advanced tools
Speechly website | Docs | Blog
# Create a new React app
create-react-app .
# Install the package
npm install --save @speechly/react-ui
# Install peer dependencies
npm install --save @speechly/react-client
npm install --save react-spring
npm install --save styled-components @types/styled-components
Push-to-Talk Button is a React component that enables users to use Speechly voice input while holding the button down.
The Push-to-Talk button is intended to be placed as a floating button at the lower part of the screen so mobile users can react it with ease. Desktop users can control it with an optional keyboard hotkey. Our hotkey recommendation is the spacebar.
Upon launching the app, the component initially displays a "power on" state. Pressing the button in "power on" state initialises Speechly API and may trigger browser microphone permission prompt.
The component has been tested with Chrome on desktop (version 86), Chrome on Android (version 86) and Safari (12) on iOS.
import { SpeechProvider } from "@speechly/react-client";
import { PushToTalkButton, PushToTalkContainer } from "@speechly/react-ui";
function AppView() {
return (
<SpeechProvider appId="speechly-app-id" language="speechly-app-language">
<PushToTalkContainer>
<PushToTalkButton captureKey=" " />
</PushToTalkContainer>
</SpeechProvider>
);
}
size
property. Parameters are in css, e.g. 6rem
.gradientStops
property. Parameter is an array of 2 colors, e.g. ["#","#"].<div className="mic-button">
<button onClick={toggleRecording}>Record</button>
</div>
BigTranscript is a React component that displays the transcribed voice input of a user to provide them with feedback from your Speechly app.
import { SpeechProvider } from "@speechly/react-client";
import { BigTranscript, BigTranscriptContainer } from "@speechly/react-ui";
function AppView() {
return (
<SpeechProvider appId="speechly-app-id" language="speechly-app-language">
<BigTranscriptContainer>
<BigTranscript />
</BigTranscriptContainer>
</SpeechProvider>
);
}
Styling like colors can be assigned to .BigTranscript
container class and to different entity types by using .Entity.<EntityName>
selector. Replace <EntityName>
with the exact entity name defined in your SAL.
.BigTranscript {
color: #fff;
font-family: "Organetto";
font-size: 1.4rem;
line-height: 1.15;
}
.BigTranscript .Entity.room {
color: #1fd3f3;
}
.BigTranscript .Entity.device {
color: #1fd3f3;
}
You can find the detailed API documentation in GitHub repository.
Speechly is a developer tool for building real-time multimodal voice user interfaces. It enables developers and designers to enhance their current touch user interface with voice functionalities for better user experience. Speechly key features:
Example application | Description |
---|---|
Instead of using buttons, input fields and dropdowns, Speechly enables users to interact with the application by using voice. User gets real-time visual feedback on the form as they speak and are encouraged to go on. If there's an error, the user can either correct it by using traditional touch user interface or by voice. |
FAQs
Speechly UI Components
The npm package @speechly/react-ui receives a total of 48 weekly downloads. As such, @speechly/react-ui popularity was classified as not popular.
We found that @speechly/react-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.