Package Exports
- @lobehub/tts
- @lobehub/tts/package.json
- @lobehub/tts/react
- @lobehub/tts/server
Readme
Lobe TTS
A high-quality & reliable TTS React Hooks library
Changelog Β· Report Bug Β· Request Feature

Table of contents
TOC
π¦ Installation
[!IMPORTANT]
This package is ESM only.
To install @lobehub/tts, run the following command:
$ bun add @lobehub/ttsCompile with Next.js
[!NOTE]
By work correct with Next.js SSR, addtranspilePackages: ['@lobehub/tts']tonext.config.js. For example:
const nextConfig = {
transpilePackages: ['@lobehub/tts'],
};π³ Self Hosting
If you want to deploy this service by yourself, you can follow the steps below.
Deploy to Vercel
Click button below to deploy your private plugins' gateway.
Environment Variable
This project provides some additional configuration items set with environment variables:
| Environment Variable | Description | Default |
|---|---|---|
OPENAI_API_KEY |
This is the API key you apply on the OpenAI account page | sk-xxxxxx...xxxxxx |
OPENAI_BASE_URL |
If you manually configure the OpenAI interface proxy, you can use this configuration item to override the default OpenAI API request base URL | https://api.openai.com/v1 |
β¨οΈ Local Development
You can use Github Codespaces for online development:
Or clone it for local development:
$ git clone https://github.com/lobehub/lobe-tts.git
$ cd lobe-tts
$ bun install
$ bun devπ€ Contributing
Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub Issues to get stuck in to show us what youβre made of.
π More Products
- π€ Lobe Chat - An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application.
- π€― Lobe theme - The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.