assemblyai 2.0.1-beta → 2.0.1
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 +3 -3
- package/package.json +11 -6
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<img src="https://github.com/AssemblyAI/assemblyai-
|
|
1
|
+
<img src="https://github.com/AssemblyAI/assemblyai-node-sdk/blob/main/assemblyai.png?raw=true" width="500"/>
|
|
2
2
|
|
|
3
3
|
---
|
|
4
4
|
|
|
@@ -173,7 +173,7 @@ const service = client.realtime.createService({
|
|
|
173
173
|
You can also generate a temporary auth token for real-time.
|
|
174
174
|
|
|
175
175
|
```typescript
|
|
176
|
-
const token = await client.realtime.createTemporaryToken({expires_in = 60});
|
|
176
|
+
const token = await client.realtime.createTemporaryToken({ expires_in = 60 });
|
|
177
177
|
const rt = client.realtime.createService({
|
|
178
178
|
token: token
|
|
179
179
|
});
|
|
@@ -212,7 +212,7 @@ getAudio((chunk) => {
|
|
|
212
212
|
Close the connection when you're finished.
|
|
213
213
|
|
|
214
214
|
```typescript
|
|
215
|
-
rt.close();
|
|
215
|
+
await rt.close();
|
|
216
216
|
```
|
|
217
217
|
|
|
218
218
|
# Tests
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assemblyai",
|
|
3
|
-
"version": "2.0.1
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "The AssemblyAI Node.js SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"typings": "dist/index.d.ts",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/AssemblyAI/assemblyai-
|
|
11
|
+
"url": "git+https://github.com/AssemblyAI/assemblyai-node-sdk.git"
|
|
12
12
|
},
|
|
13
13
|
"publishConfig": {
|
|
14
|
-
"tag": "
|
|
14
|
+
"tag": "latest",
|
|
15
15
|
"access": "public",
|
|
16
16
|
"registry": "https://registry.npmjs.org/"
|
|
17
17
|
},
|
|
@@ -21,12 +21,17 @@
|
|
|
21
21
|
"lint": "tslint -p tsconfig.json",
|
|
22
22
|
"test": "pnpm lint && pnpm test:unit",
|
|
23
23
|
"test:unit": "jest --config jest.config.rollup.ts",
|
|
24
|
-
"
|
|
25
|
-
"generate-types": "tsx ./scripts/generate-types.ts && pnpm
|
|
24
|
+
"format": "prettier --write 'src/**/*.ts'",
|
|
25
|
+
"generate-types": "tsx ./scripts/generate-types.ts && pnpm format",
|
|
26
|
+
"copybara:dry-run": "./copybara.sh dry_run --init-history",
|
|
27
|
+
"copybara:pr": "./copybara.sh sync_out --init-history"
|
|
26
28
|
},
|
|
27
29
|
"keywords": [
|
|
28
30
|
"AssemblyAI",
|
|
29
|
-
"Speech-to-text"
|
|
31
|
+
"Speech-to-text",
|
|
32
|
+
"Transcription",
|
|
33
|
+
"Audio",
|
|
34
|
+
"LLM"
|
|
30
35
|
],
|
|
31
36
|
"author": "AssemblyAI (https://www.assemblyai.com)",
|
|
32
37
|
"license": "MIT",
|