Skip to content

Commit 1d13d9c

Browse files
committed
add readme
1 parent 507f9dd commit 1d13d9c

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# native-speech
2+
3+
native-speech是使用手机系统自带的tts功能合成语音的组件,可将输入的文本转为语音播放。
4+
5+
## Install
6+
7+
通过npm安装,并通过react-native-cli将原生组件链接至你的工程。
8+
9+
```
10+
npm install native-speech --save
11+
react-native link
12+
```
13+
14+
## Usage
15+
16+
###用法
17+
18+
```js
19+
import Speech from 'react-native-speech';
20+
21+
Speech.speak('测试语音', () => alert('callback'));
22+
23+
```
24+
25+
##Example
26+
27+
*run demo*
28+
29+
```
30+
cd example
31+
npm install
32+
react-native link
33+
npm start
34+
```
35+
36+
### IOS
37+
38+
打开ios目录下的xcode工程,点击run
39+
40+
### Android
41+
42+
使用Android studio打开Android目录,点击run
43+
44+
## License
45+
46+
native-speech is released under the MIT license.

0 commit comments

Comments
 (0)