Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

speech-rule-engine

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

speech-rule-engine

A standalone speech rule engine for XML structures, based on the original engine from ChromeVox.

  • 4.1.0-beta.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
117K
decreased by-4.89%
Maintainers
1
Weekly downloads
 
Created

What is speech-rule-engine?

The speech-rule-engine npm package is a tool designed to convert mathematical expressions into spoken text. It is particularly useful for accessibility purposes, enabling visually impaired users to understand mathematical content through speech.

What are speech-rule-engine's main functionalities?

Convert MathML to Speech

This feature allows you to convert MathML (Mathematical Markup Language) into spoken text. The code sample demonstrates how to set up the speech-rule-engine and convert a simple MathML expression into speech.

const sre = require('speech-rule-engine');
sre.setupEngine({locale: 'en'});
const mathml = '<math><mrow><mi>x</mi><mo>=</mo><mn>5</mn></mrow></math>';
const speech = sre.toSpeech(mathml);
console.log(speech); // Outputs: 'x equals 5'

Convert LaTeX to Speech

This feature allows you to convert LaTeX expressions into spoken text. The code sample shows how to set up the engine and convert a LaTeX expression into speech.

const sre = require('speech-rule-engine');
sre.setupEngine({locale: 'en'});
const latex = 'x = 5';
const speech = sre.toSpeech(latex, {input: 'latex'});
console.log(speech); // Outputs: 'x equals 5'

Convert ASCII Math to Speech

This feature allows you to convert ASCII Math expressions into spoken text. The code sample demonstrates how to set up the engine and convert an ASCII Math expression into speech.

const sre = require('speech-rule-engine');
sre.setupEngine({locale: 'en'});
const asciiMath = 'x = 5';
const speech = sre.toSpeech(asciiMath, {input: 'ascii'});
console.log(speech); // Outputs: 'x equals 5'

Other packages similar to speech-rule-engine

Keywords

FAQs

Package last updated on 01 Jul 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