@jokio/sdk 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -119,20 +119,21 @@ console.log({
|
|
|
119
119
|
|
|
120
120
|
## Directly in HTML
|
|
121
121
|
|
|
122
|
+
You can use directly into html as well:
|
|
123
|
+
|
|
122
124
|
```html
|
|
123
125
|
<script type="module">
|
|
124
126
|
import { jok } from 'https://esm.run/@jokio/sdk'
|
|
125
127
|
|
|
126
|
-
function
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
} catch (err) {
|
|
132
|
-
alert(err.message)
|
|
128
|
+
function textToAudio() {
|
|
129
|
+
const audio = await jok.tts.getAudio(
|
|
130
|
+
'Hello there, how are you?',
|
|
131
|
+
'en-US-AvaNeural',
|
|
132
|
+
)
|
|
133
133
|
|
|
134
|
-
|
|
135
|
-
}
|
|
134
|
+
audio.play()
|
|
136
135
|
}
|
|
136
|
+
|
|
137
|
+
window.textToAudio = textToAudio
|
|
137
138
|
</script>
|
|
138
139
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jokio/sdk",
|
|
3
3
|
"description": "pure js/ts sdk for building decentralised localfirst web apps. Provides tts ai model integrations, realtime p2p communication & crypto encryptions.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.8",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/jokio.sdk.umd.js",
|
|
7
7
|
"keywords": [
|