![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
vocalfusion.io
Advanced tools
A comprehensive library suite leveraging Web APIs for Text-to-Speech (TTS) and Speech-To-Text (STT) functionalities. Easily integrate voice synthesis and speech recognition into your web projects with options for customization and seamless browser compatibility.
Install the package via npm:
npm install vocalfusion.io
Feature | Description | Status |
---|---|---|
Customizable | Adjust the rate, pitch, and voice of speech synthesis (TTS). | ✅ Complete |
Promise-Based | Intuitive API design with success and error handling via Promises. | ✅ Complete |
Browser-Friendly | Designed to work seamlessly with modern web browsers. | ✅ Complete |
Lightweight | No external dependencies, uses native Web APIs (TTS & STT). | ✅ Complete |
Error Handling | Provides detailed error messages for invalid or missing inputs. | ✅ Complete |
import { TTS, STT } from "./node_modules/vocalfusion.io/dist/index.esm.js";
// TTS Example
TTS.speak("Hello, World!")
.then(() => console.log("Speech completed"))
.catch(console.error);
// STT Example
const speech = new STT({ lang: "en-US", continuous: true });
speech.start();
speech.onResult((transcript) => {
console.log("Recognized speech:", transcript);
});
speech.onError((err) => console.error("Error:", err));
const { TTS, STT } = require("./node_modules/vocalfusion.io/dist/index.cjs.js");
// TTS Example
TTS.speak("Hello, World!")
.then(() => console.log("Speech completed"))
.catch(console.error);
// STT Example
const speech = new STT({ lang: "en-US", continuous: true });
speech.start();
speech.onResult((transcript) => {
console.log("Recognized speech:", transcript);
});
speech.onError((err) => console.error("Error:", err));
Parameter | Type | Default | Description |
---|---|---|---|
text | string | null | The text to be spoken. |
rate | number | 1 | The speech rate (range: 0.1 to 10 ). |
pitch | number | 1 | The pitch of the voice (range: 0 to 2 ). |
voice | string | null | The name of the voice to use (optional). |
Parameter | Type | Default | Description |
---|---|---|---|
lang | string | en-US | The language for speech recognition. |
interimResults | boolean | true | Enable or disable interim results during recognition. |
continuous | boolean | false | Set whether recognition continues after each phrase. |
TTS.speak("Hello, how are you?")
.then(() => console.log("Speech completed"))
.catch(console.error);
TTS.speak("Custom settings example.", {
rate: 1.5,
pitch: 2,
voice: "Google UK English Male"
})
.then(() => console.log("Speech completed"))
.catch(console.error);
TTS.getVoices()
.then((voices) => console.log("Available voices:", voices))
.catch(console.error);
const speech = new STT({ lang: "en-US", continuous: true });
speech.start();
speech.onResult((transcript) => {
console.log("Recognized speech:", transcript);
});
speech.onError((err) => console.error("Error:", err));
speech.onEnd(() => {
console.log("Recognition ended. Restarting...");
speech.start();
});
speech.stop();
speech.onEnd(() => {
console.log("Speech recognition stopped.");
});
Browser | Supported | Notes |
---|---|---|
Chrome | ✅ Yes | Full support. |
Firefox | ✅ Yes | Full support. |
Safari | ✅ Yes | Full support (macOS/iOS). |
Edge | ✅ Yes | Full support. |
Internet Explorer | ❌ No | Not supported. |
For more details, visit Can I Use - SpeechSynthesis and Can I Use - SpeechRecognition.
We welcome contributions! To contribute:
For questions or suggestions, feel free to email us at ytraj0660@gmail.com
.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
A lightweight Text-to-Speech library.
The npm package vocalfusion.io receives a total of 7 weekly downloads. As such, vocalfusion.io popularity was classified as not popular.
We found that vocalfusion.io demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.