We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 507f9dd commit 1d13d9cCopy full SHA for 1d13d9c
README.md
@@ -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
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