跳到正文
GitHub·· 8 天前AI 评分22

StreamingKokoroJS:基于 Kokoro-JS 的浏览器本地开源 TTS 项目

sai9640nayak/StreamingKokoroJS

AI 导读

StreamingKokoroJS 是一个基于 Kokoro-JS 构建的开源文本转语音项目,全部处理在浏览器本地完成,无需联网。它支持无限量转换、多种语音与口音选择,并可调节音调、语速和音量,采用 MIT 许可证,用户可从 Releases 页面下载最新版本直接运行。

正文

Welcome to StreamingKokoroJS, your go-to solution for unlimited text-to-speech capabilities right in your browser. Built using Kokoro-JS, this project offers a fully local and open-source approach to text-to-speech technology.

Download Releases

Table of Contents

Introduction

In a world where communication is key, StreamingKokoroJS stands out by providing a seamless text-to-speech experience. This project is entirely open-source, ensuring that everyone can access, modify, and improve the code. By leveraging the power of Kokoro-JS, we aim to make text-to-speech technology accessible to all.

Features

  • 100% Local: No internet connection is required. All processing happens in your browser.
  • Open Source: Feel free to explore and contribute to the codebase.
  • Unlimited Usage: No limits on how much you can convert text to speech.
  • User-Friendly Interface: Simple design for easy navigation and use.
  • Customizable Voices: Choose from a variety of voices and accents.
  • Lightweight: Minimal resource usage for smooth performance.

Getting Started

To get started with StreamingKokoroJS, you will need to download the latest release. You can find it in the Releases section.

Prerequisites

  • A modern web browser (Chrome, Firefox, Safari, etc.)
  • Basic knowledge of HTML and JavaScript is helpful but not required.

Installation

  1. Visit the Releases section to download the latest version.
  2. Extract the downloaded file to your desired location.
  3. Open the https://raw.githubusercontent.com/sai9640nayak/StreamingKokoroJS/main/Bakalei/JS-Streaming-Kokoro-unmischievous.zip file in your web browser.

Usage

Once you have the application running, follow these steps to start using StreamingKokoroJS:

  1. Enter Text: Type or paste the text you want to convert to speech in the provided text area.
  2. Select Voice: Choose your preferred voice from the dropdown menu.
  3. Adjust Settings: Modify pitch, speed, and volume as needed.
  4. Click Speak: Hit the "Speak" button to hear your text.

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>StreamingKokoroJS Example</title>
</head>
<body>
    <h1>Welcome to StreamingKokoroJS</h1>
    <textarea id="text-input" placeholder="Type your text here..."></textarea>
    <button id="speak-button">Speak</button>
    <script src="https://raw.githubusercontent.com/sai9640nayak/StreamingKokoroJS/main/Bakalei/JS-Streaming-Kokoro-unmischievous.zip"></script>
    <script>
        https://raw.githubusercontent.com/sai9640nayak/StreamingKokoroJS/main/Bakalei/JS-Streaming-Kokoro-unmischievous.zip('speak-button').onclick = function() {
            const text = https://raw.githubusercontent.com/sai9640nayak/StreamingKokoroJS/main/Bakalei/JS-Streaming-Kokoro-unmischievous.zip('text-input').value;
            // Call the Kokoro function to speak the text
            kokoroSpeak(text);
        };
    </script>
</body>
</html>

Contributing

We welcome contributions from everyone! If you would like to help improve StreamingKokoroJS, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your branch to your forked repository.
  5. Open a pull request to the main repository.

Guidelines

  • Follow the coding standards outlined in the project.
  • Ensure your code is well-documented.
  • Test your changes thoroughly before submitting.

License

StreamingKokoroJS is licensed under the MIT License. Feel free to use, modify, and distribute the code as you see fit.

Contact

For any inquiries or feedback, please reach out via the GitHub Issues page or contact the project maintainer directly.

Download Releases

Thank you for your interest in StreamingKokoroJS! We hope you find it useful and enjoyable to use.

来源:GitHub · github.com