Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ce0f91

Browse files
✨ feat: Bump 1.0.0
1 parent 8031da1 commit 9ce0f91

File tree

8 files changed

+54
-280
lines changed

8 files changed

+54
-280
lines changed

CHANGELOG.md

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,3 @@
11
<a name="readme-top"></a>
22

33
# Changelog
4-
5-
## Version 1.0.0
6-
7-
<sup>Released on **2023-11-07**</sup>
8-
9-
#### ✨ Features
10-
11-
- **misc**: Add new files, import modules, configure themes, and update API endpoints, Init.
12-
13-
<br/>
14-
15-
<details>
16-
<summary><kbd>Improvements and Fixes</kbd></summary>
17-
18-
#### What's improved
19-
20-
- **misc**: Add new files, import modules, configure themes, and update API endpoints ([9930472](https://github.com/lobehub/lobe-tts/commit/9930472))
21-
- **misc**: Init ([9961d3a](https://github.com/lobehub/lobe-tts/commit/9961d3a))
22-
23-
</details>
24-
25-
<div align="right">
26-
27-
[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
28-
29-
</div>
30-
31-
## Version 1.0.0
32-
33-
<sup>Released on **2023-11-02**</sup>
34-
35-
#### ✨ Features
36-
37-
- **misc**: Init.
38-
39-
<br/>
40-
41-
<details>
42-
<summary><kbd>Improvements and Fixes</kbd></summary>
43-
44-
#### What's improved
45-
46-
- **misc**: Init ([9961d3a](https://github.com/lobehub/lobe-tts/commit/9961d3a))
47-
48-
</details>
49-
50-
<div align="right">
51-
52-
[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
53-
54-
</div>

README.md

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
A high-quality & reliable TTS React Hooks library
1010

11-
[![][github-release-shield]][github-release-link]
11+
[![][npm-release-shield]][npm-release-link]
1212
[![][github-releasedate-shield]][github-releasedate-link]
1313
[![][github-action-test-shield]][github-action-test-link]
1414
[![][github-action-release-shield]][github-action-release-link]<br/>
@@ -24,6 +24,53 @@ A high-quality & reliable TTS React Hooks library
2424

2525
</div>
2626

27+
<details>
28+
<summary><kbd>Table of contents</kbd></summary>
29+
30+
#### TOC
31+
32+
- [📦 Installation](#-installation)
33+
- [Compile with Next.js](#compile-with-nextjs)
34+
- [🛳 Self Hosting](#-self-hosting)
35+
- [Deploy to Vercel](#deploy-to-vercel)
36+
- [⌨️ Local Development](#️-local-development)
37+
- [🤝 Contributing](#-contributing)
38+
- [🔗 More Products](#-more-products)
39+
40+
####
41+
42+
</details>
43+
44+
## 📦 Installation
45+
46+
> **Important**\
47+
> This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
48+
49+
To install `@lobehub/tts`, run the following command:
50+
51+
[![][bun-shield]][bun-link]
52+
53+
```bash
54+
$ bun add @lobehub/tts
55+
```
56+
57+
### Compile with Next.js
58+
59+
> **Note**\
60+
> By work correct with Next.js SSR, add `transpilePackages: ['@lobehub/tts']` to `next.config.js`. For example:
61+
62+
```js
63+
const nextConfig = {
64+
transpilePackages: ['@lobehub/tts'],
65+
};
66+
```
67+
68+
<div align="right">
69+
70+
[![][back-to-top]](#readme-top)
71+
72+
</div>
73+
2774
## 🛳 Self Hosting
2875

2976
If you want to deploy this service by yourself, you can follow the steps below.
@@ -48,8 +95,6 @@ You can use Github Codespaces for online development:
4895

4996
Or clone it for local development:
5097

51-
[![][bun-shield]][bun-link]
52-
5398
```bash
5499
$ git clone https://github.com/lobehub/lobe-tts.git
55100
$ cd lobe-tts
@@ -114,12 +159,12 @@ This project is [MIT](./LICENSE) licensed.
114159
[github-issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-tts?color=ff80eb&labelColor=black&style=flat-square
115160
[github-license-link]: https://github.com/lobehub/lobe-tts/blob/main/LICENSE
116161
[github-license-shield]: https://img.shields.io/github/license/lobehub/lobe-tts?color=white&labelColor=black&style=flat-square
117-
[github-release-link]: https://github.com/lobehub/lobe-tts/releases
118-
[github-release-shield]: https://img.shields.io/github/v/release/lobehub/lobe-tts?color=369eff&labelColor=black&logo=github&style=flat-square
119162
[github-releasedate-link]: https://github.com/lobehub/lobe-tts/releases
120163
[github-releasedate-shield]: https://img.shields.io/github/release-date/lobehub/lobe-tts?labelColor=black&style=flat-square
121164
[github-stars-link]: https://github.com/lobehub/lobe-tts/network/stargazers
122165
[github-stars-shield]: https://img.shields.io/github/stars/lobehub/lobe-tts?color=ffcb47&labelColor=black&style=flat-square
166+
[npm-release-link]: https://www.npmjs.com/package/@lobehub/tts
167+
[npm-release-shield]: https://img.shields.io/npm/v/@lobehub/tts?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
123168
[pr-welcome-link]: https://github.com/lobehub/lobe-tts/pulls
124169
[pr-welcome-shield]: https://img.shields.io/badge/%F0%9F%A4%AF%20PR%20WELCOME-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
125170
[profile-link]: https://github.com/lobehub

api/cors.ts

Lines changed: 0 additions & 140 deletions
This file was deleted.

api/genSSML.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

api/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import qs from 'query-string';
22

3-
import cors from './cors';
4-
import { SsmlOptions } from './genSSML';
5-
import { postMicrosoftSpeech } from './postMicrosoftSpeech';
3+
import cors from '../lib/cors';
4+
import { SsmlOptions } from '../lib/genSSML';
5+
import { postMicrosoftSpeech } from '../lib/postMicrosoftSpeech';
66

77
export const config = {
88
runtime: 'edge',

api/postMicrosoftSpeech.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@lobehub/tts",
33
"version": "1.0.0",
4-
"private": true,
54
"description": "A high-quality & reliable TTS React Hooks library",
65
"homepage": "https://github.com/lobehub/lobe-tts",
76
"bugs": {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
}
3131
]
3232
},
33-
"include": ["src", "docs", ".dumirc.ts", "api", "**/*.ts", "**/*.d.ts", "**/*.tsx"]
33+
"include": ["src", "docs", "lib", ".dumirc.ts", "api", "**/*.ts", "**/*.d.ts", "**/*.tsx"]
3434
}

0 commit comments

Comments
 (0)